##// END OF EJS Templates
packaging: move linux-wheel-centos5-blacklist to contrib/packaging/...
Gregory Szorc -
r38031:6f5b4cee default
parent child Browse files
Show More
@@ -1,34 +1,34 b''
1 #!/bin/bash
1 #!/bin/bash
2 # This file is directly inspired by
2 # This file is directly inspired by
3 # https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh
3 # https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh
4 set -e -x
4 set -e -x
5
5
6 PYTHON_TARGETS=$(ls -d /opt/python/cp27*/bin)
6 PYTHON_TARGETS=$(ls -d /opt/python/cp27*/bin)
7
7
8 # Create an user for the tests
8 # Create an user for the tests
9 useradd hgbuilder
9 useradd hgbuilder
10
10
11 # Bypass uid/gid problems
11 # Bypass uid/gid problems
12 cp -R /src /io && chown -R hgbuilder:hgbuilder /io
12 cp -R /src /io && chown -R hgbuilder:hgbuilder /io
13
13
14 # Compile wheels for Python 2.X
14 # Compile wheels for Python 2.X
15 for PYBIN in $PYTHON_TARGETS; do
15 for PYBIN in $PYTHON_TARGETS; do
16 "${PYBIN}/pip" wheel /io/ -w wheelhouse/
16 "${PYBIN}/pip" wheel /io/ -w wheelhouse/
17 done
17 done
18
18
19 # Bundle external shared libraries into the wheels with
19 # Bundle external shared libraries into the wheels with
20 # auditwheel (https://github.com/pypa/auditwheel) repair.
20 # auditwheel (https://github.com/pypa/auditwheel) repair.
21 # It also fix the ABI tag on the wheel making it pip installable.
21 # It also fix the ABI tag on the wheel making it pip installable.
22 for whl in wheelhouse/*.whl; do
22 for whl in wheelhouse/*.whl; do
23 auditwheel repair "$whl" -w /src/wheelhouse/
23 auditwheel repair "$whl" -w /src/wheelhouse/
24 done
24 done
25
25
26 # Install packages and run the tests for all Python versions
26 # Install packages and run the tests for all Python versions
27 cd /io/tests/
27 cd /io/tests/
28
28
29 for PYBIN in $PYTHON_TARGETS; do
29 for PYBIN in $PYTHON_TARGETS; do
30 # Install mercurial wheel as root
30 # Install mercurial wheel as root
31 "${PYBIN}/pip" install mercurial --no-index -f /src/wheelhouse
31 "${PYBIN}/pip" install mercurial --no-index -f /src/wheelhouse
32 # But run tests as hgbuilder user (non-root)
32 # But run tests as hgbuilder user (non-root)
33 su hgbuilder -c "\"${PYBIN}/python\" /io/tests/run-tests.py --with-hg=\"${PYBIN}/hg\" --blacklist=/io/contrib/linux-wheel-centos5-blacklist"
33 su hgbuilder -c "\"${PYBIN}/python\" /io/tests/run-tests.py --with-hg=\"${PYBIN}/hg\" --blacklist=/io/contrib/packaging/linux-wheel-centos5-blacklist"
34 done
34 done
1 NO CONTENT: file renamed from contrib/linux-wheel-centos5-blacklist to contrib/packaging/linux-wheel-centos5-blacklist
NO CONTENT: file renamed from contrib/linux-wheel-centos5-blacklist to contrib/packaging/linux-wheel-centos5-blacklist
General Comments 0
You need to be logged in to leave comments. Login now