-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore #110108
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
Conversation
I didn't expect that finding the location of the Python source code and checking if it's actually available or not would be so complicated! At least, it's good, we are finding and fixing issues :-) For now, I'm ok to keep the code in test_freeze and test_venv copy the stdlib. test_venv only cares about Python code, whereas test_freeze wants the C code. |
Oh. How did you notice that? Is Azure Pipelines running tests which such use cases, or did you discover the issue manually? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your PR now includes unrelated change. Is it on purpose?
Yeah, there's a reason I listed this on my wishlist for a new build system. Would be great if we just always built an install-like layout, rather than trying to intermingle it with the source tree. The |
Nope. That's what I get for trying to fix OpenSSL stuff 😆 |
It should, but they seem to have been passing for some reason. I haven't looked closely, but possibly they got disabled recently because people want to move to GHA. I also run my own daily tests at work, and it was found in the "layout test", which generates an install layout ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @zooba, I could not cleanly backport this to |
GH-110110 is a backport of this pull request to the 3.11 branch. |
…src_ignore (pythonGH-110108) (cherry picked from commit 20bc5f7) Co-authored-by: Steve Dower <[email protected]>
I'm guessing 3.12 has conflicts because the earlier PRs haven't been merged yet? I'll wait until that's done and then trigger it again |
Last days, I gave up on backports since 3.12 is blocked. I plan to try to backport my Tests and Docs changes once 3.12 will be reopened again next week. Until that, it's a backport nightmare :-( |
…nore (GH-110108) (cherry picked from commit 20bc5f7) Co-authored-by: Steve Dower <[email protected]>
…src_ignore (pythonGH-110108) (cherry picked from commit 20bc5f7)
…#110340) * gh-109615: Fix support test_copy_python_src_ignore() (#109958) Fix the test when run on an installed Python: use "abs_srcdir" of sysconfig, and skip the test if the Python source code cannot be found. * Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and Lib/test/libregrtest/utils.py now first try to get "abs_srcdir" from sysconfig, before getting "srcdir" from sysconfig. * test.pythoninfo logs sysconfig "abs_srcdir". (cherry picked from commit b89ed9d) * gh-109615: Fix support test_copy_python_src_ignore() on WASM (#109970) Not only check if src_dir exists, but look also for Lib/os.py landmark. (cherry picked from commit cc54bcf) * gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108) (cherry picked from commit 20bc5f7) * gh-109748: Fix again venv test_zippath_from_non_installed_posix() (#110149) Call also copy_python_src_ignore() on listdir() names. shutil.copytree(): replace set() with an empty tuple. An empty tuple becomes a constant in the compiler and checking if an item is in an empty tuple is cheap. (cherry picked from commit 0def8c7) --------- Co-authored-by: Steve Dower <[email protected]>
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @zooba, I could not cleanly backport this to
|
Ah, this fix was backported to 3.12 as part of larger backport: commit 80f9585. |
Uh oh!
There was an error while loading. Please reload this page.