Skip to content

Commit

Permalink
use manylinux build
Browse files Browse the repository at this point in the history
  • Loading branch information
m-unkel committed May 24, 2023
1 parent bfb5731 commit 814ff70
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bin/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

DIR=$(dirname "$(dirname "$(realpath "$0")")")

CMD="
CMD1="
mkdir -p /opt/c104/dist ; \
rm -rf /opt/c104/build/*linux-x86_64* ; \
rm -rf /opt/c104/dist/*manylinux*.whl ; \
/opt/python/cp36-cp36m/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp37-cp37m/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp38-cp38/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp39-cp39/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp310-cp310/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp311-cp311/bin/python3 -m pip wheel /opt/c104 ; \
auditwheel repair ./c104-*-linux_x86_64.whl ; \
mv ./wheelhouse/* /opt/c104/dist/
"

docker run -it --rm -v "$DIR:/opt/c104" -w /opt/c104 quay.io/pypa/manylinux_2_28_x86_64 /bin/bash -c "$CMD"
docker run -it --rm -v "$DIR:/opt/c104" quay.io/pypa/manylinux_2_28_x86_64 /bin/bash -c "$CMD1"

CMD2="
/opt/python/cp36-cp36m/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp37-cp37m/bin/python3 -m pip wheel /opt/c104 ; \
/opt/python/cp38-cp38/bin/python3 -m pip wheel /opt/c104 ; \
auditwheel repair ./c104-*-linux_x86_64.whl ; \
mv ./wheelhouse/* /opt/c104/dist/
"

docker run -it --rm -v "$DIR:/opt/c104" quay.io/pypa/manylinux2014_x86_64 /bin/bash -c "$CMD2"

0 comments on commit 814ff70

Please sign in to comment.