summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Houghton <alastair@alastairs-place.net>2018-02-12 14:52:00 +0000
committerAlastair Houghton <alastair@alastairs-place.net>2018-02-12 14:52:00 +0000
commitbcc3132ced7bf20626ccbfee82931e8453faf59c (patch)
tree60fe70715573c8862875351dfe4ae455a17db220
parentfe45705bc587ade090e64916d0dd07de1cc1164f (diff)
downloadnetifaces-git-bcc3132ced7bf20626ccbfee82931e8453faf59c.tar.gz
Added some build scripts for macOS and Linux wheels.
-rw-r--r--.gitignore11
-rwxr-xr-xbuild-manylinux15
-rwxr-xr-xbuild-osx17
-rwxr-xr-xmakewheels.sh9
4 files changed, 42 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..99574f1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+*.pyc
+*~
+.cache
+.eggs
+*.egg-info
+*.egg
+*#
+.#*
+dist
+build
+wheelhouse
diff --git a/build-manylinux1 b/build-manylinux1
new file mode 100755
index 0000000..5c17029
--- /dev/null
+++ b/build-manylinux1
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+docker run --rm -v `pwd`:/netifaces quay.io/pypa/manylinux1_x86_64 /netifaces/makewheels.sh
+docker run --rm -v `pwd`:/netifaces quay.io/pypa/manylinux1_i686 /netifaces/makewheels.sh
+ls wheelhouse/
diff --git a/build-osx b/build-osx
new file mode 100755
index 0000000..35da8dd
--- /dev/null
+++ b/build-osx
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if [ `uname` != "Darwin" ]; then
+ echo "You must run this on macOS"
+ exit
+fi
+
+eval "$(pyenv init -)"
+
+VERSIONS="2.7.10 3.6.2"
+
+for version in $VERSIONS; do
+ pyenv install -s "$version"
+ pyenv shell "$version"
+ pip install wheel
+ pip wheel . -w wheelhouse/
+done
diff --git a/makewheels.sh b/makewheels.sh
new file mode 100755
index 0000000..bacf92d
--- /dev/null
+++ b/makewheels.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+for bindir in /opt/python/*/bin; do
+ "$bindir/pip" wheel /netifaces/ -w wheelhouse/
+done
+
+for whl in wheelhouse/*.whl; do
+ auditwheel repair "$whl" -w /netifaces/wheelhouse/
+done