File: build_wheel.sh

package info (click to toggle)
sorted-nearest 0.0.39%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 215; sh: 20; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# need to create a requirements file before starting docker
# pip install pipreqs
# pipreqs --force . # --ignore=(ls | grep egg.info) . # creating requirements .txt
# sed -i '' '/\.egg==info/d' requirements.txt

# docker pull quay.io/pypa/manylinux1_x86_64
# # or docker pull quay.io/pypa/manylinux1_i686
# docker run -it -v (pwd):/io quay.io/pypa/manylinux1_x86_64

# yum install zlib-devel

for PYBIN in /opt/python/*3[5-7]*/bin; do
    "${PYBIN}/pip" install cython  # install these requirements first
    # "${PYBIN}/pip" install -r /io/requirements.txt
    "${PYBIN}/pip" wheel /io/ -w wheelhouse/
done

for whl in wheelhouse/*.whl; do
    auditwheel repair "$whl" -w /io/wheelhouse/
done