File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ Build manylinux1 wheels
2
+ -----------------------------
3
+
4
+ .. code-block :: bash
5
+
6
+ docker run --rm -v ` pwd` :/io quay.io/pypa/manylinux1_x86_64 /io/build-wheels.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e -x
3
+
4
+ mkdir ~ /rust-installer
5
+ curl -sL https://static.rust-lang.org/rustup.sh -o ~ /rust-installer/rustup.sh
6
+ sh ~ /rust-installer/rustup.sh --prefix=~ /rust --spec=nightly -y --disable-sudo
7
+ export PATH=" $HOME /rust/bin:$PATH "
8
+ export LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$HOME /rust/lib"
9
+
10
+ # Compile wheels
11
+ for PYBIN in /opt/python/cp{27,35,36}* /bin; do
12
+ export PYTHON_LIB=$( ${PYBIN} /python -c " import sysconfig; print(sysconfig.get_config_var('LIBDIR'))" )
13
+ export LIBRARY_PATH=" $LIBRARY_PATH :$PYTHON_LIB "
14
+ export LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$PYTHON_LIB "
15
+ " ${PYBIN} /pip" install -U setuptools setuptools-rust wheel
16
+ " ${PYBIN} /pip" wheel /io/ -w /io/dist/
17
+ done
18
+
19
+ # Bundle external shared libraries into the wheels
20
+ for whl in /io/dist/* .whl; do
21
+ auditwheel repair " $whl " -w /io/dist/
22
+ done
23
+
24
+ # Install packages and test
25
+ for PYBIN in /opt/python/cp{27,35,36}* /bin/; do
26
+ " ${PYBIN} /pip" install hello-rust --no-index -f /io/dist/
27
+ done
You can’t perform that action at this time.
0 commit comments