Skip to content

Commit 200116d

Browse files
committed
Add python/manylinux build script
1 parent fe6dde2 commit 200116d

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

build-wheels.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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/*

0 commit comments

Comments
 (0)