Skip to content
Permalink
Browse files

Merge pull request #559 from Thrameos/wheels

Support for building manylinux1 wheels
  • Loading branch information
Thrameos committed Jan 8, 2020
2 parents 17263a6 + e2ac3b3 commit 915374d3b4a6f7ae8ccc6c66df41c85b85d00316
Showing with 35 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 docker/README
  3. +6 −0 docker/build.sh
  4. +1 −0 docker/dev-requirements.txt
  5. +23 −0 docker/run.sh
@@ -67,3 +67,5 @@ target/
tmp
doc/html
native/jars
docker/*.tar.gz
docker/wheelhouse
@@ -0,0 +1,3 @@
Build the sdist using "python setup.py sdist"
Copy the distribution from dist to docker
Execute run.sh
@@ -0,0 +1,6 @@
#!/bin/bash
set -e -x
echo ====== $PY $VER
PYBIN=/opt/python/$PY/bin
"${PYBIN}/pip" install -r /io/dev-requirements.txt
"${PYBIN}/pip" wheel /io/JPype1-$VER.tar.gz -w /io/wheelhouse
@@ -0,0 +1 @@
numpy
@@ -0,0 +1,23 @@
# Pull the required images
#docker pull quay.io/pypa/manylinux1_x86_64
#docker pull quay.io/pypa/manylinux1_i686

# Available in manylinux
# cp27-cp27m
# cp27-cp27mu
# cp34-cp34m
# cp35-cp35m
# cp36-cp36m
# cp37-cp37m
# cp38-cp38

# Build each wheel
VER=0.7.1
for PLAT in manylinux1_x86_64 manylinux1_i686
do
DOCKER_IMAGE=quay.io/pypa/$PLAT
for PY in cp35-cp35m cp36-cp36m cp37-cp37m
do
docker run --rm -e VER=$VER -e PY=$PY -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/build.sh
done
done

0 comments on commit 915374d

Please sign in to comment.
You can’t perform that action at this time.