Skip to content

Commit b2f8086

Browse files
committed
update scripts
1 parent 863c445 commit b2f8086

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

build.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cd docker
2+
REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py39 -f py39/Dockerfile .
3+
REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py38 -f py38/Dockerfile .
4+
REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py37 -f py37/Dockerfile .
5+
REM docker buildx build --pull --load --platform linux/arm/v7 -t kumatea/ext:py36 -f py36/Dockerfile .
6+
7+
REM docker image prune
8+
9+
docker run -it --name py39e kumatea/ext:py39 bash /root/build-wheels.sh
10+
docker cp py39e:/root/whl .
11+
docker rm py39e
12+
13+
docker run -it --name py38e kumatea/ext:py38 bash /root/build-wheels.sh
14+
docker cp py38e:/root/whl .
15+
docker rm py38e
16+
17+
docker run -it --name py37e kumatea/ext:py37 bash /root/build-wheels.sh
18+
docker cp py37e:/root/whl .
19+
docker rm py37e
20+
21+
docker run -it --name py36e kumatea/ext:py36 bash /root/build-wheels.sh
22+
docker cp py36e:/root/whl .
23+
docker rm py36e

docker/build-wheels.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
# pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple
6-
pip install -U -r /root/packages-stdln.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html
7-
pip install -U -r /root/packages-deps.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html
5+
# pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple
6+
pip install -U -v -r /root/packages-stdln.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html
7+
pip install -U -v -r /root/packages-deps.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html
88
mkdir /root/whl
99
cp -a $(find /root/.cache/pip | grep whl | tr '\n' ' ') /root/whl/ || echo "No new whl is built!"

docker/py36/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.6
22

33
RUN set -ex \
44
\
5-
&& pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \
5+
&& pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \
66
&& python3 -m pip install -U pip setuptools wheel \
77
&& rm -rf /root/.cache/*
88

docker/py37/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.7
22

33
RUN set -ex \
44
\
5-
&& pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \
5+
&& pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \
66
&& python3 -m pip install -U pip setuptools wheel \
77
&& rm -rf /root/.cache/*
88

docker/py38/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.8
22

33
RUN set -ex \
44
\
5-
&& pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \
5+
&& pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \
66
&& python3 -m pip install -U pip setuptools wheel \
77
&& rm -rf /root/.cache/*
88

docker/py39/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.9
22

33
RUN set -ex \
44
\
5-
&& pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \
5+
&& pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \
66
&& python3 -m pip install -U pip setuptools wheel \
77
&& rm -rf /root/.cache/*
88

0 commit comments

Comments
 (0)