Commit e367ae74 authored by Jason Madden's avatar Jason Madden

Build 3.7 manylinux wheels.

parent 77a21373
#!/bin/bash #!/bin/bash
# Initially based on a snippet from the greenlet project. # Initially based on a snippet from the greenlet project.
# This needs to be run from the root of the project. # This needs to be run from the root of the project.
# To update: docker pull quay.io/pypa/manylinux1_x86_64
set -e set -e
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
...@@ -10,18 +11,20 @@ if [ -d /gevent -a -d /opt/python ]; then ...@@ -10,18 +11,20 @@ if [ -d /gevent -a -d /opt/python ]; then
yum -y install libffi-devel yum -y install libffi-devel
cd /gevent cd /gevent
rm -rf wheelhouse rm -rf wheelhouse
mkdir wheelhouse mkdir wheelhouse
for variant in `ls -d /opt/python/cp{27,34,35,36}*`; do for variant in `ls -d /opt/python/cp{37,27,34,35,36}*`; do
echo "Building $variant"
mkdir /tmp/build mkdir /tmp/build
cd /tmp/build cd /tmp/build
git clone /gevent gevent git clone /gevent gevent
cd gevent cd gevent
$variant/bin/pip install -U -r ci-requirements.txt $variant/bin/pip install -U -r ci-requirements.txt
# manylinux 1 is too old to build libuv, don't even try.
GEVENT_NO_LIBUV_BUILD=1 PATH=$variant/bin:$PATH $variant/bin/python setup.py bdist_wheel GEVENT_NO_LIBUV_BUILD=1 PATH=$variant/bin:$PATH $variant/bin/python setup.py bdist_wheel
auditwheel repair dist/*.whl auditwheel repair dist/*.whl
cp wheelhouse/*.whl /gevent/wheelhouse cp wheelhouse/*.whl /gevent/wheelhouse
cd /gevent cd /gevent
rm -rf /tmp/build rm -rf /tmp/build
done done
rm -rf dist build *.egg-info rm -rf dist build *.egg-info
exit 0 exit 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment