proof of concept manylinux1 build
[sfpy.git] / docker-build-wheels.sh
diff --git a/docker-build-wheels.sh b/docker-build-wheels.sh
new file mode 100755 (executable)
index 0000000..d328c08
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e -x
+cd /io/
+ls
+
+(cd SoftPosit/build/Linux-x86_64-GCC; make clean; make)
+(cd berkeley-softfloat-3/build/Linux-x86_64-GCC; make clean; make)
+
+for PYBIN in /opt/python/*/bin; do
+    "${PYBIN}/pip" wheel . -w wheelhouse/
+done
+
+for whl in wheelhouse/*.whl; do
+    auditwheel repair "$whl" -w wheelhouse/
+done
+
+rm wheelhouse/*linux_x86_64.whl
+
+(cd SoftPosit/build/Linux-x86_64-GCC; make clean)
+(cd berkeley-softfloat-3/build/Linux-x86_64-GCC; make clean)