From db335e1e44d5d60ade988bc1d8605830dc6388f2 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 16 Mar 2022 17:52:34 +0100 Subject: [PATCH] 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. --- selftest/parallel.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selftest/parallel.sh b/selftest/parallel.sh index 49ec458..14b6e95 100755 --- a/selftest/parallel.sh +++ b/selftest/parallel.sh @@ -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