Skip to content

Commit

Permalink
Update python scripts to use python3
Browse files Browse the repository at this point in the history
Most python scripts use EOL python2. This commit
updates the scripts to use python3

Change-Id: Iab35f8e21ac1aad918c796560ad3f7b5d826e893
  • Loading branch information
pradeeptrgit committed Jul 4, 2023
1 parent 38545b1 commit 6d82d17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,12 @@ file(MAKE_DIRECTORY ${BASE_INC_PATH})
set (BLIS1_TARGET_PATH "${CMAKE_SOURCE_DIR}/${BASE_INC_PATH}/blis1.h")
set (BLIS1__H_SRC_PATH "${CMAKE_SOURCE_DIR}/src/base/flamec/blis/include/blis1.h" )
set (BLIS_FLATTEN_HEADER "${CMAKE_SOURCE_DIR}/build/flatten-headers.py")
set (PYTHON_EXE "python")

if(WIN32)
set (PYTHON_EXE "python")
else()
set (PYTHON_EXE "python3")
endif()

execute_process(
COMMAND ${PYTHON_EXE} ${BLIS_FLATTEN_HEADER} "${C_COMMENT}" "${VERBOSE}"
Expand Down
2 changes: 1 addition & 1 deletion build/flatten-headers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# BLIS
# An object-based framework for developing high-performance BLAS-like
Expand Down
2 changes: 1 addition & 1 deletion src/aocl_dtl/etrace_decoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3

"""
Expand Down

0 comments on commit 6d82d17

Please sign in to comment.