Explicitly declare the usage of distutils from Python stdlib for tests

setuptools 60+ bundles distutils which then have an impact on the test
environment, causing test_with_pip to fail.
This commit is contained in:
Karolina Surma 2022-03-16 17:52:34 +01:00
commit db335e1e44

View file

@ -23,5 +23,10 @@ export OPENSSL_CONF=/non-existing-file
# https://bugs.python.org/issue35045
# https://bugs.python.org/issue38815
# setuptools 60+ uses its own copy of distutils by default
# this setting must be overriden with the environment variable for
# Python tests to use the standard library's distutils
export SETUPTOOLS_USE_DISTUTILS=stdlib
$PYTHON -m test.pythoninfo
$PYTHON -m test -wW -j$JOBS $X