forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,4 @@ libglpk.a | |
.DS_Store | ||
.eggs/ | ||
*\.swp | ||
manylinux_builder/wheelhouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |