diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-05 11:09:53 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-05 11:09:53 +0100 |
| commit | caa5f01539f8d0fa0ab32d3c2b3aa1c442f419d1 (patch) | |
| tree | d95ef18218a5384b46be362258ce7f652055a508 | |
| parent | 9863637f309e1e89523007c40e9dcdde69f60bc0 (diff) | |
| download | psycopg2-manylinux-dist.tar.gz | |
Build fixed wheels into the 'dist' directorymanylinux-dist
| -rwxr-xr-x | scripts/build-manylinux.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build-manylinux.sh b/scripts/build-manylinux.sh index e1bdd91..cd7e6d6 100755 --- a/scripts/build-manylinux.sh +++ b/scripts/build-manylinux.sh @@ -25,16 +25,16 @@ export PATH="$PGPATH:$PATH" # Find psycopg version export VERSION=$(grep -e ^PSYCOPG_VERSION /psycopg2/setup.py | sed "s/.*'\(.*\)'/\1/") -export WHEELSDIR="/psycopg2/wheels/psycopg2-$VERSION" +export DISTDIR="/psycopg2/dist/psycopg2-$VERSION" # Create the wheel packages for PYBIN in /opt/python/*/bin; do - "${PYBIN}/pip" wheel /psycopg2/ -w "$WHEELSDIR" + "${PYBIN}/pip" wheel /psycopg2/ -w /psycopg2/wheels/ done # Bundle external shared libraries into the wheels -for WHL in "$WHEELSDIR"/*.whl; do - auditwheel repair "$WHL" -w "$WHEELSDIR" +for WHL in /psycopg2/wheels/*.whl; do + auditwheel repair "$WHL" -w "$DISTDIR" done # Make sure libpq is not in the system @@ -45,6 +45,6 @@ export PSYCOPG2_TESTDB_HOST=$(ip route show | awk '/default/ {print $3}') # Install packages and test for PYBIN in /opt/python/*/bin; do - "${PYBIN}/pip" install psycopg2 --no-index -f "$WHEELSDIR" + "${PYBIN}/pip" install psycopg2 --no-index -f "$DISTDIR" "${PYBIN}/python" -c "from psycopg2 import tests; tests.unittest.main(defaultTest='tests.test_suite')" done |
