forked from dedupeio/dedupe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.manylinux-install.sh
More file actions
executable file
·43 lines (38 loc) · 1.36 KB
/
Copy path.manylinux-install.sh
File metadata and controls
executable file
·43 lines (38 loc) · 1.36 KB
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
#!/usr/bin/env bash
set -e -x
# Compile wheels
for PYBIN in /opt/python/*/bin; do
if [[ "${PYBIN}" == *"cp27"* ]] || [[ "${PYBIN}" == *"cp34"* ]] || [[ "${PYBIN}" == *"cp35"* ]]; then
"${PYBIN}/pip" install "numpy>=1.9.2"
"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" install coveralls
"${PYBIN}/cython" /io/src/*.pyx
"${PYBIN}/pip" install -e /io/
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
fi
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/dedupe*.whl; do
if [[ "${whl}" != *"dedupe_hcluster"* ]]; then
auditwheel repair "$whl" -w /io/wheelhouse/
fi
done
# Install packages and test
for PYBIN in /opt/python/*/bin; do
if [[ "${PYBIN}" == *"cp27"* ]] || [[ "${PYBIN}" == *"cp34"* ]] || [[ "${PYBIN}" == *"cp35"* ]]; then
"${PYBIN}/pip" uninstall -y dedupe
"${PYBIN}/pip" install dedupe --no-index -f /io/wheelhouse
"${PYBIN}/pytest" /io/tests --cov dedupe
cd /io/
"${PYBIN}/python" tests/canonical.py -vv
rm canonical_learned_settings
cd /
fi
done
# If everything works, upload wheels to PyPi
travis=$( cat /io/.travis_tag )
PYBIN34="/opt/python/cp34-cp34m/bin"
if [[ $travis ]]; then
"${PYBIN34}/pip" install twine;
"${PYBIN34}/twine" upload --config-file /io/.pypirc /io/wheelhouse/dedupe*.whl;
fi