summaryrefslogtreecommitdiffstats
path: root/build-wheels.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-05 10:38:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-05 10:38:34 +0000
commite3bdad36cc3a1a00c1e6772ca1c1898085ab73e0 (patch)
tree34512072a667ae716fd262e7b37e733e60fe4d89 /build-wheels.sh
parentAdding upstream version 2.1.2. (diff)
downloadpendulum-e3bdad36cc3a1a00c1e6772ca1c1898085ab73e0.tar.xz
pendulum-e3bdad36cc3a1a00c1e6772ca1c1898085ab73e0.zip
Adding upstream version 3.0.0~a1.upstream/3.0.0_a1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-wheels.sh')
-rwxr-xr-xbuild-wheels.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/build-wheels.sh b/build-wheels.sh
new file mode 100755
index 0000000..1c8f1cb
--- /dev/null
+++ b/build-wheels.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e -x
+
+cd $(dirname $0)
+
+export PATH=/opt/python/cp38-cp38/bin/:$PATH
+
+curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
+/opt/python/cp38-cp38/bin/python get-poetry.py --preview -y
+rm get-poetry.py
+
+for PYBIN in /opt/python/cp3*/bin; do
+ if [ "$PYBIN" == "/opt/python/cp34-cp34m/bin" ]; then
+ continue
+ fi
+ if [ "$PYBIN" == "/opt/python/cp35-cp35m/bin" ]; then
+ continue
+ fi
+ rm -rf build
+ "${PYBIN}/python" $HOME/.poetry/bin/poetry build -vvv
+done
+
+cd dist
+for whl in *.whl; do
+ auditwheel repair "$whl"
+ rm "$whl"
+done