File: linux-wheels.sh

package info (click to toggle)
gemmi 0.7.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,644 kB
  • sloc: cpp: 64,445; python: 5,425; ansic: 4,545; sh: 374; makefile: 112; javascript: 86; f90: 42
file content (36 lines) | stat: -rwxr-xr-x 896 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
# NOTE: this script is not used anymore. We use cibuildwheel now.
#
# based on
# https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh
set -e -u -x


function repair_wheel {
    wheel="$1"
    if ! auditwheel show "$wheel"; then
        echo "Skipping non-platform wheel $wheel"
    else
        auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
    fi
}

#yum install -y zlib-devel

# Compile wheels
#for PYBIN in /opt/python/cp38*/bin; do
for PYBIN in /opt/python/*/bin; do
    "${PYBIN}/pip" wheel -v /io/ --no-deps -w wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
    repair_wheel "$whl"
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    "${PYBIN}/pip" install gemmi --no-index -f /io/wheelhouse
    "${PYBIN}/python" -m unittest discover -v -s /io/tests/
done