Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipatests: azure: Use distro's setuptools
setuptools 60+ switched to bundled version of distutils (stdlib's one will be removed in the future): pypa/setuptools#2143 pypa/packaging-problems#127 ALT patches stdlib's version of distutils but not the setuptools's one yet. For example, if the system's setuptools replace distutils with its bundled one but the virtualenv's setuptools (bundled wheel) doesn't do it (for example, setuptools < 60), then the behaviour will be inconsistent: ``` [builder@localhost freeipa-4.9.8]$ python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix='/usr'))" /usr/lib/python3.9/site-packages ``` ``` [builder@localhost freeipa-4.9.8]$ export SETUPTOOLS_USE_DISTUTILS=stdlib [builder@localhost freeipa-4.9.8]$ python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_python_lib(prefix='/usr'))" /usr/lib/python3/site-packages ``` This happens in FreeIPA CI: ``` [1394] /__w/1/s$ /__w/1/s/.tox-install.sh wheel_bundle .tox/pylint3/bin/python /__w/1/s/.tox/pylint3/lib/python3.9/site-packages 'ipaclient[otptoken_yubikey,ldap]' pylint + FLAVOR=wheel_bundle ++ realpath -s .tox/pylint3/bin/python + ENVPYTHON=/__w/1/s/.tox/pylint3/bin/python ++ realpath -s /__w/1/s/.tox/pylint3/lib/python3.9/site-packages + ENVSITEPACKAGESDIR=/__w/1/s/.tox/pylint3/lib/python3.9/site-packages + shift 3 +++ dirname /__w/1/s/.tox-install.sh ++ cd /__w/1/s ++ pwd + TOXINIDIR=/__w/1/s + '[' '!' -x /__w/1/s/.tox/pylint3/bin/python ']' + '[' '!' -d /__w/1/s/.tox/pylint3/lib/python3.9/site-packages ']' + echo '/__w/1/s/.tox/pylint3/lib/python3.9/site-packages: no such directory' /__w/1/s/.tox/pylint3/lib/python3.9/site-packages: no such directory + exit 2 ERROR: invocation failed (exit code 2) ```
- Loading branch information