Skip to content

Apache DataFusion SQL Query Engine

ARROW-9261: [Python] Fix CA certificate lookup with S3 filesystem on manylinux

Antoine Pitrou601787adc0de
diff --git a/dev/tasks/python-wheels/manylinux-test.sh b/dev/tasks/python-wheels/manylinux-test.sh
index 2c67e1137d..e1a6659a4f 100755
--- a/dev/tasks/python-wheels/manylinux-test.sh
+++ b/dev/tasks/python-wheels/manylinux-test.sh
@@ -25,15 +25,16 @@ export PYARROW_TEST_CYTHON=OFF
python --version
# Install built wheel
pip install -q /arrow/python/$WHEEL_DIR/dist/*.whl
-# Install test dependencies (pip won't work after removing system zlib)
+# Install test dependencies
pip install -q -r /arrow/python/requirements-wheel-test.txt
# Run pyarrow tests
pytest -rs --pyargs pyarrow
if [[ "$1" == "--remove-system-libs" ]]; then
# Run import tests after removing the bundled dependencies from the system
+ # (be careful not to remove libz.so, required for some Python stdlib modules)
echo "Removing the following libraries to fail loudly if they are bundled incorrectly:"
- ldconfig -p | grep "lib\(lz4\|z\|boost\)" | awk -F'> ' '{print $2}' | xargs rm -v -f
+ ldconfig -p | grep "lib\(bz2\|lz4\|z[^.]\|boost\)" | awk -F'> ' '{print $2}' | sort | xargs rm -v -f
fi
# Test import and optional dependencies