From 6d82d17344a56cd8432fb9b62cf350f5ed18e0ec Mon Sep 17 00:00:00 2001 From: prangana Date: Sun, 18 Jun 2023 06:37:16 -0400 Subject: [PATCH] Update python scripts to use python3 Most python scripts use EOL python2. This commit updates the scripts to use python3 Change-Id: Iab35f8e21ac1aad918c796560ad3f7b5d826e893 --- CMakeLists.txt | 7 ++++++- build/flatten-headers.py | 2 +- src/aocl_dtl/etrace_decoder.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dec90e736..ccec416dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}" diff --git a/build/flatten-headers.py b/build/flatten-headers.py index 563725a7e..7446db00a 100755 --- a/build/flatten-headers.py +++ b/build/flatten-headers.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # BLIS # An object-based framework for developing high-performance BLAS-like diff --git a/src/aocl_dtl/etrace_decoder.py b/src/aocl_dtl/etrace_decoder.py index 1a24f00cc..495c15255 100755 --- a/src/aocl_dtl/etrace_decoder.py +++ b/src/aocl_dtl/etrace_decoder.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """