Python 3.8 compatibility (#7754)

This commit is contained in:
mehrdadn
2020-04-01 10:03:23 -07:00
committed by GitHub
parent 24bf6ad607
commit 65054a2c7c
9 changed files with 87 additions and 46 deletions
+8 -4
View File
@@ -15,17 +15,21 @@ DOWNLOAD_DIR=python_downloads
PY_VERSIONS=("3.5.3"
"3.6.1"
"3.7.0")
"3.7.0"
"3.8.2")
PY_INSTS=("python-3.5.3-macosx10.6.pkg"
"python-3.6.1-macosx10.6.pkg"
"python-3.7.0-macosx10.6.pkg")
"python-3.7.0-macosx10.6.pkg"
"python-3.8.2-macosx10.9.pkg")
PY_MMS=("3.5"
"3.6"
"3.7")
"3.7"
"3.8")
# The minimum supported numpy version is 1.14, see
# https://issues.apache.org/jira/browse/ARROW-3141
NUMPY_VERSIONS=("1.14.5"
"1.14.5"
"1.14.5"
"1.14.5")
@@ -76,7 +80,7 @@ for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do
$PIP_CMD install -q setuptools_scm==3.1.0
# Fix the numpy version because this will be the oldest numpy version we can
# support.
$PIP_CMD install -q numpy==$NUMPY_VERSION cython==0.29.0
$PIP_CMD install -q numpy==$NUMPY_VERSION cython==0.29.15
# Install wheel to avoid the error "invalid command 'bdist_wheel'".
$PIP_CMD install -q wheel
# Set the commit SHA in __init__.py.