From 00284f449840c3de7fa11e999a3bbfa50dfcd1b5 Mon Sep 17 00:00:00 2001 From: KumaTea Date: Tue, 30 Mar 2021 23:09:32 +0800 Subject: [PATCH] numpy 1.20.2 for armv7l --- build.bat | 8 ++++---- docker/build-wheels.sh | 11 ++++++++++- whl/stable.html | 3 +++ 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/build.bat b/build.bat index 1c76f3f..a4ff578 100644 --- a/build.bat +++ b/build.bat @@ -1,8 +1,8 @@ cd docker -REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py39 -f py39/Dockerfile . -REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py38 -f py38/Dockerfile . -REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py37 -f py37/Dockerfile . -REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py36 -f py36/Dockerfile . +docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py39 -f py39/Dockerfile . +docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py38 -f py38/Dockerfile . +docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py37 -f py37/Dockerfile . +docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py36 -f py36/Dockerfile . REM docker image prune diff --git a/docker/build-wheels.sh b/docker/build-wheels.sh index cf6c26b..dfd4dff 100644 --- a/docker/build-wheels.sh +++ b/docker/build-wheels.sh @@ -3,7 +3,16 @@ set -ex # pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple + +if [ $(uname -m) = 'armv7l' ]; then + sed -i 's/scikit-learn//g' /root/packages-stdln.txt +fi + pip install -U -v -r /root/packages-stdln.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html -pip install -U -v -r /root/packages-deps.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html + +if [ $(uname -m) = 'aarch64' ]; then + pip install -U -v -r /root/packages-deps.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html +fi + mkdir /root/whl cp -a $(find /root/.cache/pip | grep whl | tr '\n' ' ') /root/whl/ || echo "No new whl is built!" diff --git a/whl/stable.html b/whl/stable.html index 2743679..9ffe7af 100644 --- a/whl/stable.html +++ b/whl/stable.html @@ -1,3 +1,6 @@ +numpy-1.20.2-cp37-cp37m-linux_armv7l.whl
+numpy-1.20.2-cp38-cp38-linux_armv7l.whl
+numpy-1.20.2-cp39-cp39-linux_armv7l.whl
argon2_cffi-20.1.0-cp36-abi3-linux_aarch64.whl
argon2_cffi-20.1.0-cp37-abi3-linux_aarch64.whl
argon2_cffi-20.1.0-cp38-abi3-linux_aarch64.whl