Skip to content

Commit

Permalink
add manylinux building scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aebrahim committed Jul 15, 2016
1 parent 00df979 commit 2a420db
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ libglpk.a
.DS_Store
.eggs/
*\.swp
manylinux_builder/wheelhouse
6 changes: 6 additions & 0 deletions manylinux_builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM quay.io/pypa/manylinux1_x86_64

ENV GLPK_VER="4.60"
RUN wget http://ftp.gnu.org/gnu/glpk/glpk-${GLPK_VER}.tar.gz -O - | tar xz
WORKDIR glpk-${GLPK_VER}
RUN ./configure && make install
5 changes: 5 additions & 0 deletions manylinux_builder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This script uses docker to build manylinux wheels for cobrapy. It only
requires a working docker installation.

To build manylinux wheels, run ```./run_cobrapy_builder.sh```. The
built wheels will then be placed in the ```wheelhouse``` folder.
11 changes: 11 additions & 0 deletions manylinux_builder/build_cobrapy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

for PYBIN in /opt/python/*/bin; do
${PYBIN}/pip wheel cobra --pre
done

# Bundle external shared libraries into the wheels
for whl in cobra*.whl; do
auditwheel repair $whl -w /io/wheelhouse/
done

2 changes: 2 additions & 0 deletions manylinux_builder/run_cobrapy_builder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t cobrapy_builder .
docker run --rm -v `pwd`:/io cobrapy_builder /io/build_cobrapy.sh

0 comments on commit 2a420db

Please sign in to comment.