Skip to content
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
merged 2,861 commits into from
Jul 3, 2020
Merged

Adopt distutils #2143

merged 2,861 commits into from
Jul 3, 2020

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented May 25, 2020

As discussed in #417, this change brings in the distutils code base with the following behaviors:

  • This local copy of distutils is used exclusively when Setuptools is imported. The stdlib version is ignored completely.
  • As a result, when pip imports setuptools before building legacy (pre pep517) packages, those distutils-only packages will continue to get the setuptools treatment.
  • Setuptools will refuse to import when distutils has been previously imported.
  • If stdlib removes distutils or a downstream packager removes distutils from the standard library, the distutils supplied by setuptools becomes the default.
  • If setuptools is not imported, the stdlib behavior is available.
  • Removing the line from setuptools.__init__ will disable the patch-by-default behavior but allow explicit patching (this behavior may require moving distutils_patch outside of the setuptools namespace.

I believe this behavior honors the objectives that Nick outlined and furthermore enables the following future enhancements:

  • Setuptools can merge implementations of shared functionality, either by pushing patches from setuptools into distutils or by hosting the functionality natively in Setuptools but reflecting (importing) that functionality in the distutils namespace.
  • Monkeypatching of distutils can be replaced by the unified implementation.

Tests are passing locally. There are some failures on Windows, likely due to the distutils code being older.

Questions:

  • What use-cases does this approach break?
  • Is there another approach that would be break fewer things?
  • How can we minimize breakage and adopt something suitable?

Pull Request Checklist

  • [n/a] Changes have tests
  • News fragment added in changelog.d. See documentation for details

zooba and others added 30 commits August 7, 2015 19:48
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.
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.