File: build-wheels.sh

package info (click to toggle)
spglib 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,712 kB
  • sloc: ansic: 27,746; python: 5,784; ruby: 792; f90: 716; makefile: 97; sh: 69
file content (44 lines) | stat: -rwxr-xr-x 1,098 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
37
38
39
40
41
42
43
44
#!/bin/bash
set -e -x

# Install a system package required by our library
yum install -y numpy

ls /opt/python

# Compile wheels
for PYBIN in /opt/python/cp27*/bin; do
    # "${PYBIN}/pip" install --no-binary numpy
    "${PYBIN}/pip" wheel /io/ -w wheelhouse/
done

for PYBIN in /opt/python/cp35*/bin; do
    # "${PYBIN}/pip" install --no-binary numpy
    "${PYBIN}/pip" wheel /io/ -w wheelhouse/
done

for PYBIN in /opt/python/cp36*/bin; do
    # "${PYBIN}/pip" install --no-binary numpy
    "${PYBIN}/pip" wheel /io/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
ls wheelhouse/*.whl
for whl in wheelhouse/spglib*.whl; do
    auditwheel repair "$whl" -w /io/wheelhouse/
done

cp wheelhouse/numpy*whl /io/wheelhouse/

# Install packages and test
for PYBIN in /opt/python/cp27*/bin/; do
    "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
done

for PYBIN in /opt/python/cp35*/bin/; do
    "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
done

for PYBIN in /opt/python/cp36*/bin/; do
    "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
done