A tiny bit more

This commit is contained in:
Armen 2021-09-09 16:42:03 -04:00
parent de4fe1ea4b
commit e8ddb29c2d

View File

@ -54,10 +54,8 @@ if [[ $(uname -m) != 'arm64' ]]; then
fi fi
cp ${wheeldir}/*.whl ${distdir} cp ${wheeldir}/*.whl ${distdir}
# XXX: Move this code into a test script
if [[ $(uname -m) != 'arm64' ]]; then
# kill the libpq to make sure tests don't depend on it # kill the libpq to make sure tests don't depend on it
mv "$LIBPQ" "${LIBPQ}-bye" [[ -z "${LIBPQ:-}" ]] && mv "$LIBPQ" "${LIBPQ}-bye"
# Install and test the built wheel # Install and test the built wheel
pip install ${PACKAGE_NAME:-psycopg2} --no-index -f "$distdir" pip install ${PACKAGE_NAME:-psycopg2} --no-index -f "$distdir"
@ -76,5 +74,4 @@ if [[ $(uname -m) != 'arm64' ]]; then
python -c "import tests; tests.unittest.main(defaultTest='tests.test_suite')" python -c "import tests; tests.unittest.main(defaultTest='tests.test_suite')"
# just because I'm a boy scout # just because I'm a boy scout
mv "${LIBPQ}-bye" "$LIBPQ" [[ -z "${LIBPQ:-}" ]] && mv "${LIBPQ}-bye" "$LIBPQ"
fi