-
-
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
In ensure_local_distutils, re-use DistutilsMetaFinder #2907
Conversation
…ule. Avoids race conditions when _distutils_system_mod is employed and fixes #2906.
1f26aaa
to
485fa84
Compare
I'm unable to replicate the test failures on my local macOS machine. And when I try to test on a Linux machine, I'm stumbling on an issue failing to build pytest-virtualenv from source (oh, right, because it doesn't build under PEP 517 (man-group/pytest-plugins#190)). After getting the build to run, I'm still unable to replicate the failures happening in CI. Maybe I'm unable to replicate the failures because I'm selectively running the tests. Nope, running the full test suite still passes for me on macOS and Linux. I'm unsure what factor is relevant to these failures. I'm now attempting to troubleshoot the issue by pushing troubleshooting code to CI. |
a3b6904
to
f436a22
Compare
f436a22
to
34defd4
Compare
I put an assertion in the code and that assertion gives some hint as to what's going on:
It seems that indeed the setuptools/setuptools/sandbox.py Lines 231 to 243 in 34defd4
|
Ultimately, I punted on the failing test. It's just one failing test in a deprecated part of the code (test command), so I've adapted the test to assuming that the output could change. Especially since the distutils hacks are temporary, it's more important to ensure compatibility and to unblock the platforms. |
Summary of changes
Closes #2906.
Pull Request Checklist
changelog.d/
.(See documentation for details)