mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Clarify numpy version requirement (#537)
* update packaging numpy version to 1.15.0 * update version in numpy version in linux * Install numpy 1.15.0 * Finish up numpy requirement after test * Try fix * Fix ci script
This commit is contained in:
parent
7aba5fe523
commit
f5dfbba655
4 changed files with 6 additions and 4 deletions
1
setup.py
1
setup.py
|
|
@ -71,6 +71,7 @@ setup(
|
|||
},
|
||||
extras_require={
|
||||
'backend': ['onnx>=1.2.3'],
|
||||
'numpy': ['numpy>=1.15.0']
|
||||
},
|
||||
entry_points= {
|
||||
'console_scripts': [
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ def install_ubuntu_deps(args):
|
|||
raise BuildError("Error setting up required APT packages. {}".format(str(e)))
|
||||
|
||||
def install_python_deps():
|
||||
dep_packages = ['setuptools', 'wheel', 'numpy']
|
||||
dep_packages = ['setuptools', 'wheel', 'numpy==1.15.0']
|
||||
run_subprocess([sys.executable, '-m', 'pip', 'install', '--trusted-host', 'files.pythonhosted.org'] + dep_packages)
|
||||
|
||||
def check_md5(filename, expected_md5):
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ jobs:
|
|||
cleanEnvironment: true
|
||||
|
||||
- script: |
|
||||
sudo python -m pip install numpy
|
||||
sudo python -m pip install numpy==1.15.0
|
||||
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
|
||||
./build.sh --config Release --skip_submodule_sync --parallel --use_openmp --build_wheel
|
||||
displayName: 'Command Line Script'
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ p) PYTHON_VER=${OPTARG};;
|
|||
esac
|
||||
done
|
||||
|
||||
PYTHON_VER=${PYTHON_VER:=3.5}
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get update && apt-get install -y software-properties-common
|
||||
|
|
@ -52,16 +53,16 @@ apt-get update
|
|||
apt-get install -y dotnet-sdk-2.2
|
||||
rm -rf /tmp/dotnet || true
|
||||
|
||||
if [ $PYTHON_VER != "3.5" ]; then
|
||||
if [ $PYTHON_VER!="3.5" ]; then
|
||||
apt-get install -y --no-install-recommends \
|
||||
python${PYTHON_VER} \
|
||||
python${PYTHON_VER}-dev
|
||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VER} 1
|
||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 2
|
||||
update-alternatives --set python3 /usr/bin/python${PYTHON_VER}
|
||||
/usr/bin/python${PYTHON_VER} -m pip install --upgrade --force-reinstall numpy
|
||||
fi
|
||||
|
||||
/usr/bin/python${PYTHON_VER} -m pip install --upgrade --force-reinstall numpy==1.15.0
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
mkdir -p /tmp/azcopy
|
||||
|
|
|
|||
Loading…
Reference in a new issue