forked from matthew-brett/manylinux-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_skimages.sh
executable file
·49 lines (42 loc) · 1.47 KB
/
build_skimages.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
42
43
44
45
46
47
48
49
#!/bin/bash
set -e
# Manylinux, openblas version, lex_ver
source /io/common_vars.sh
if [ -z "$SCIKIT_IMAGE_VERSIONS" ]; then
SCIKIT_IMAGE_VERSIONS="0.12.3"
fi
CYTHON_VERSION=0.23.4
source /io/library_builders.sh
build_jpeg
build_freetype
# Directory to store wheels
rm_mkdir unfixed_wheels
# Compile wheels
for PYTHON in ${PYTHON_VERSIONS}; do
PIP="$(cpython_path $PYTHON)/bin/pip"
for SCIKIT_IMAGE in ${SCIKIT_IMAGE_VERSIONS}; do
if [ $(lex_ver $PYTHON) -ge $(lex_ver 3.5) ] ; then
NUMPY_VERSION=1.9.1
SCIPY_VERSION=0.16.0
elif [ $(lex_ver $PYTHON) -ge $(lex_ver 3) ] ; then
NUMPY_VERSION=1.7.2
SCIPY_VERSION=0.12.0
else
NUMPY_VERSION=1.7.2
SCIPY_VERSION=0.9.0
fi
echo "Building scikit-image $SCIKIT_IMAGE for Python $PYTHON"
# Put numpy and scipy into the wheelhouse to avoid rebuilding
$PIP wheel -f $WHEELHOUSE -f $MANYLINUX_URL -w tmp \
"numpy==$NUMPY_VERSION" "scipy==$SCIPY_VERSION"
$PIP install -f tmp "numpy==$NUMPY_VERSION" "scipy==$SCIPY_VERSION"
# Add numpy and scipy to requirements to avoid upgrading
$PIP wheel -f tmp -w unfixed_wheels \
--no-binary scikit-image \
"numpy==$NUMPY_VERSION" \
"scipy==$SCIPY_VERSION" \
"scikit-image==$SCIKIT_IMAGE"
done
done
# Bundle external shared libraries into the wheels
repair_wheelhouse unfixed_wheels $WHEELHOUSE