Skip to content

Commit 94681ca

Browse files
committed
[CI] Update the Python version of pyxir
Currently the CMake file for pyxir is looking for things in Python3.6, so it needs to be upgraded to use 3.7 now that we have moved to use 3.7. Otherwise the build fails since the 3.6 can't find the pyxir packages which have moved to 3.7. Additionally, there seems to be a problem with the newer version of setuptools installing the pyxir libraries, so reverting these versions to the previous versions as a workaraound.
1 parent 9ca2139 commit 94681ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/modules/contrib/VitisAI.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
if(USE_VITIS_AI)
1919
set(PYXIR_SHARED_LIB libpyxir.so)
20-
find_package(PythonInterp 3.6 REQUIRED)
20+
find_package(PythonInterp 3.7 REQUIRED)
2121
if(NOT PYTHON)
22-
find_program(PYTHON NAMES python3 python3.6)
22+
find_program(PYTHON NAMES python3 python3.7)
2323
endif()
2424
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
2525
"import pyxir as px; print(px.get_include_dir()); print(px.get_lib_dir());"

docker/install/ubuntu1804_install_python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
4040
# $ pip download <package>==<version>
4141
# $ pip hash --algorithm sha512 <package>.whl
4242
cat <<EOF > base-requirements.txt
43-
pip==22.0.3 --hash=sha512:12ca75130a1ce9807060a66dd2341afc7c7e663357ca4b937868dbc733634e11bae49ffff96acb0f5f3fb16cb14f680b9b6d185155a711c6098eda5cfbf2f8f5
44-
setuptools==60.9.1 --hash=sha512:24c21006f0650209e6a934a5366614e32a98fbdf11bc0e941419731aa3c8cb6d217e486608b4834b8f89c14dc36b3bafa30e795c87b58705be2b156f78acc3c5
43+
pip==19.3.1 --hash=sha256:6917c65fc3769ecdc61405d3dfd97afdedd75808d200b2838d7d961cebc0c2c7
44+
setuptools==58.4.0 --hash=sha256:e8b1d3127a0441fb99a130bcc3c2bf256c2d3ead3aba8fd400e5cbbaf788e036
4545
EOF
4646
pip3 install -r base-requirements.txt

0 commit comments

Comments
 (0)