Skip to content

Commit

Permalink
Minor fixes to python modules (#5350)
Browse files Browse the repository at this point in the history
* Obtain python version from sys module

* tensorflow is incompatible with python 3.12
  • Loading branch information
martenole authored Feb 12, 2024
1 parent 9fb49de commit 1975ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python-modules-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ env:

tensorflow == 1.13.1; python_version < '3.8'
tensorflow == 2.4.1; python_version == '3.8'
tensorflow == 2.13.1; python_version >= '3.11'
tensorflow == 2.13.1; python_version == '3.11'

# See version compatibility table at https://pypi.org/project/tensorflow-metal/
tensorflow-metal == 1.0.0; sys_platform == 'darwin' and python_version >= '3.11'
tensorflow-metal == 1.0.0; sys_platform == 'darwin' and python_version == '3.11'

xgboost == 0.82; python_version < '3.8'
xgboost == 1.3.3; python_version == '3.8'
Expand Down
2 changes: 1 addition & 1 deletion python-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ python3 -m venv --copies "$INSTALLROOT"
# install packages into the venv.

# Major.minor version of Python, needed for PYTHONPATH.
pyver=$(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_version())')
pyver="$(python3 -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))')"

# Install pinned basic requirements for python infrastructure
echo "$PIP_BASE_REQUIREMENTS" > base-requirements.txt
Expand Down

0 comments on commit 1975ab6

Please sign in to comment.