Skip to content

Commit

Permalink
numpy 1.20.2 for armv7l
Browse files Browse the repository at this point in the history
  • Loading branch information
KumaTea committed Mar 30, 2021
1 parent b2f8086 commit 00284f4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.bat
Original file line number Diff line number Diff line change
@@ -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

Expand Down
11 changes: 10 additions & 1 deletion docker/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
3 changes: 3 additions & 0 deletions whl/stable.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<a href="https://github.com/KumaTea/ext-whl/releases/download/210330/numpy-1.20.2-cp37-cp37m-linux_armv7l.whl">numpy-1.20.2-cp37-cp37m-linux_armv7l.whl</a><br>
<a href="https://github.com/KumaTea/ext-whl/releases/download/210330/numpy-1.20.2-cp38-cp38-linux_armv7l.whl">numpy-1.20.2-cp38-cp38-linux_armv7l.whl</a><br>
<a href="https://github.com/KumaTea/ext-whl/releases/download/210330/numpy-1.20.2-cp39-cp39-linux_armv7l.whl">numpy-1.20.2-cp39-cp39-linux_armv7l.whl</a><br>
<a href="https://github.com/KumaTea/ext-whl/releases/download/210321/argon2_cffi-20.1.0-cp36-abi3-linux_aarch64.whl">argon2_cffi-20.1.0-cp36-abi3-linux_aarch64.whl</a><br>
<a href="https://github.com/KumaTea/ext-whl/releases/download/210321/argon2_cffi-20.1.0-cp37-abi3-linux_aarch64.whl">argon2_cffi-20.1.0-cp37-abi3-linux_aarch64.whl</a><br>
<a href="https://github.com/KumaTea/ext-whl/releases/download/210321/argon2_cffi-20.1.0-cp38-abi3-linux_aarch64.whl">argon2_cffi-20.1.0-cp38-abi3-linux_aarch64.whl</a><br>
Expand Down

0 comments on commit 00284f4

Please sign in to comment.