-
-
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
Rely on session context when building sdist and wheel #3060
Conversation
48f463f
to
26652b4
Compare
Aha. I did some searching and found this article, which looks suspiciously similar, so I suspect its where the inspiration was drawn from, and confirms my misunderstanding about session fixtures. They're not automatically synchronized across workers in xdist, so each worker attempts to generate their own. |
I distilled the two issues I found with that article. |
26652b4
to
588c322
Compare
588c322
to
253ecb0
Compare
Hi @jaraco, thank you very much for the deep investigation. I understand that this PR will solve the problem if Does it make sense / is it worthy to manually remove the created directory after the setuptools/setuptools/tests/contexts.py Lines 120 to 125 in 253ecb0
and transform |
Yes. That's right. As I was investigating, I learned that
Originally, I was concerned, but once I figured out the basedir mismatch and also learned that pytest normally leaves files behind to clean them up in the future, so I'm okay with it now that it gets cleaned up with or without xdist. |
Summary of changes
Closes #3059
Pull Request Checklist
changelog.d/
.(See documentation for details)