From d0e1340903c0d83493df12cce4b394fa0a07c615 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 8 Jan 2024 15:11:42 -0800 Subject: [PATCH] Update build_linux_wheel.sh --- build_linux_wheel.sh | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/build_linux_wheel.sh b/build_linux_wheel.sh index bf20671..b1c6f62 100644 --- a/build_linux_wheel.sh +++ b/build_linux_wheel.sh @@ -3,6 +3,26 @@ # exit on first error set -e +curl https://pyenv.run | bash +exec $SHELL +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" +eval "$(pyenv virtualenv-init -)" + +echo "pyenv install 3.7.10" +pyenv install 3.7.10 +pyenv global 3.7.10 + +python --version +python3.7 --version +python3.7 -m pip install --upgrade pip +python3.7 -m pip install setuptools wheel auditwheel +python3.7 -m pip install numpy +python3.7 /github/workspace/setup.py bdist_wheel + + + # manylinux2014_x86_64 # yum update -y # yum install -y centos-release-scl @@ -39,22 +59,6 @@ set -e # python3.9 -m pip install numpy # python3.9 /github/workspace/setup.py bdist_wheel -curl https://pyenv.run | bash -exec $SHELL -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" - -pyenv install 3.7.x -pyenv global 3.7.x - -python --version -python3.7 --version -python3.7 -m pip install --upgrade pip -python3.7 -m pip install setuptools wheel auditwheel -python3.7 -m pip install numpy -python3.7 /github/workspace/setup.py bdist_wheel - # yum list python* # yum install -y python3 python3-devel python3-pip # python3 -m pip install --upgrade pip