-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt distutils #2143
Merged
Adopt distutils #2143
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…140.dll to Windows installation.
Patch by TAKASE Arihiro.
…tion as found in setuptools.
…rom Setuptools 7ce820d524db.
…ror when MSVC is not installed.
…ror when MSVC is not installed.
This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
…ests that parse command line arguments.
…ests that parse command line arguments.
…ests that parse command line arguments.
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 27, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 29, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Aug 23, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Aug 26, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Sep 20, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Oct 11, 2022
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 23, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 31, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 31, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Feb 27, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Mar 31, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 7, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 7, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 8, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 9, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Nov 23, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Dec 15, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Dec 15, 2023
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 10, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 15, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 16, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jan 26, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
May 8, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 10, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 10, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jun 10, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Jul 29, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Aug 20, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Aug 22, 2024
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) ```
stanislavlevin
added a commit
to stanislavlevin/freeipa
that referenced
this pull request
Aug 23, 2024
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) ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #417, this change brings in the distutils code base with the following behaviors:
setuptools.__init__
will disable the patch-by-default behavior but allow explicit patching (this behavior may require movingdistutils_patch
outside of thesetuptools
namespace.I believe this behavior honors the objectives that Nick outlined and furthermore enables the following future enhancements:
Tests are passing locally. There are some failures on Windows, likely due to the distutils code being older.
Questions:
Pull Request Checklist