From b2f8086b84731010e2109452c76cce6b1f4e6106 Mon Sep 17 00:00:00 2001 From: KumaTea Date: Tue, 30 Mar 2021 13:18:12 +0800 Subject: [PATCH] update scripts --- build.bat | 23 +++++++++++++++++++++++ docker/build-wheels.sh | 6 +++--- docker/py36/Dockerfile | 2 +- docker/py37/Dockerfile | 2 +- docker/py38/Dockerfile | 2 +- docker/py39/Dockerfile | 2 +- 6 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 build.bat diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..1c76f3f --- /dev/null +++ b/build.bat @@ -0,0 +1,23 @@ +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 . + +REM docker image prune + +docker run -it --name py39e kumatea/ext:py39 bash /root/build-wheels.sh +docker cp py39e:/root/whl . +docker rm py39e + +docker run -it --name py38e kumatea/ext:py38 bash /root/build-wheels.sh +docker cp py38e:/root/whl . +docker rm py38e + +docker run -it --name py37e kumatea/ext:py37 bash /root/build-wheels.sh +docker cp py37e:/root/whl . +docker rm py37e + +docker run -it --name py36e kumatea/ext:py36 bash /root/build-wheels.sh +docker cp py36e:/root/whl . +docker rm py36e diff --git a/docker/build-wheels.sh b/docker/build-wheels.sh index c17ae5a..cf6c26b 100644 --- a/docker/build-wheels.sh +++ b/docker/build-wheels.sh @@ -2,8 +2,8 @@ set -ex -# pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple -pip install -U -r /root/packages-stdln.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html -pip install -U -r /root/packages-deps.txt -f https://ext.maku.ml/wheels.html -f https://torch.maku.ml/whl/stable.html +# pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple +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 mkdir /root/whl cp -a $(find /root/.cache/pip | grep whl | tr '\n' ' ') /root/whl/ || echo "No new whl is built!" diff --git a/docker/py36/Dockerfile b/docker/py36/Dockerfile index 8ba0e82..070c1f3 100644 --- a/docker/py36/Dockerfile +++ b/docker/py36/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.6 RUN set -ex \ \ - && pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \ + && pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \ && python3 -m pip install -U pip setuptools wheel \ && rm -rf /root/.cache/* diff --git a/docker/py37/Dockerfile b/docker/py37/Dockerfile index 7a83ba7..4d3d809 100644 --- a/docker/py37/Dockerfile +++ b/docker/py37/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.7 RUN set -ex \ \ - && pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \ + && pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \ && python3 -m pip install -U pip setuptools wheel \ && rm -rf /root/.cache/* diff --git a/docker/py38/Dockerfile b/docker/py38/Dockerfile index b0f351b..693e408 100644 --- a/docker/py38/Dockerfile +++ b/docker/py38/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.8 RUN set -ex \ \ - && pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \ + && pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \ && python3 -m pip install -U pip setuptools wheel \ && rm -rf /root/.cache/* diff --git a/docker/py39/Dockerfile b/docker/py39/Dockerfile index 0b443c8..f4bb196 100644 --- a/docker/py39/Dockerfile +++ b/docker/py39/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.9 RUN set -ex \ \ - && pip config set global.index-url https://mirrors.matrix.moe/pypi/web/simple \ + && pip config set global.index-url https://mirrors.vmatrix.org.cn/pypi/web/simple \ && python3 -m pip install -U pip setuptools wheel \ && rm -rf /root/.cache/*