forked from matthew-brett/manylinux-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_misc.sh
executable file
·41 lines (36 loc) · 1.19 KB
/
build_misc.sh
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
#!/bin/bash
# Build a miscellaneous collection of wheels
# These wheels do not depend on numpy or any external library.
# Wheels to build listed in "misc_requirements.txt"
#
# Run with:
# docker run --rm -v $PWD:/io quay.io/pypa/manylinux1_x86_64 /io/build_misc.sh
# or something like:
# docker run --rm -e PYTHON_VERSIONS=2.7 -v $PWD:/io quay.io/pypa/manylinux1_x86_64 /io/build_misc.sh
set -e
# Manylinux, openblas version, lex_ver, Python versions
source /io/common_vars.sh
# Add manylinux and local repo to pip config
mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
find-links = $WHEELHOUSE
find-links = $MANYLINUX_URL
EOF
# Directory to store wheels
rm_mkdir unfixed_wheels
# Compile wheels
for PYTHON in ${PYTHON_VERSIONS}; do
PIP="$(cpython_path $PYTHON)/bin/pip"
# To satisfy packages depending on numpy distutils in
# setup.py
$PIP install numpy
echo "Building for $PYTHON"
while read req_line; do
echo "Building $req_line"
echo $req_line > requirements.txt
$PIP wheel -w ../unfixed_wheels -r requirements.txt
done < /io/misc_requirements.txt
done
# Bundle external shared libraries into the wheels
repair_wheelhouse unfixed_wheels $WHEELHOUSE