File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This script builds python/manylinux wheels
4+
5+ # Usage:
6+ # git clone --recursive https://github.com/Fluorescence-Tools/LabelLib.git
7+ # docker run --rm -v `pwd`/LabelLib:/io:rw quay.io/pypa/manylinux1_x86_64 /io/build-wheels.sh
8+
9+ PYBIN=/opt/python/cp37-cp37m/bin
10+ " ${PYBIN} /pip" install cmake
11+ ln -s /opt/_internal/* /bin/cmake /usr/bin/cmake
12+ # "${PYBIN}/pip" install twine
13+
14+ # Compile wheels
15+ for PYBIN in /opt/python/* /bin; do
16+ " ${PYBIN} /pip" install numpy
17+ " ${PYBIN} /pip" wheel /io/ -w wheelhouse/
18+ done
19+
20+ # Bundle external shared libraries into the wheels
21+ for whl in wheelhouse/* .whl; do
22+ auditwheel repair " $whl " -w /io/wheelhouse/
23+ done
24+
25+ # cat << EOF > ~/.pypirc
26+ # [distutils]
27+ # index-servers =
28+ # pypi
29+ #
30+ # [pypi]
31+ # repository: https://upload.pypi.org/legacy/
32+ # username: $PYPI_USER
33+ # password: $PYPI_PASS
34+ # EOF
35+ # /opt/_internal/*/bin/twine upload /io/wheelhouse/*
You can’t perform that action at this time.
0 commit comments