Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory#103213
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory#103213
Uh oh!
There was an error while loading.Please reload this page.
Conversation
instead of fetching from intermediate instance. As "make clean" is calledagainst the intermediate instance, the build directory is cleared and theconfig arguments lookup fails with a ModuleNotFoundError
bedevere-bot commentedApr 3, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
TabLand commentedApr 3, 2023
Hello@erlend-aasland: I saw you worked on a similar change recently, would appreciate any feedback. Hello freeze experts: There is probably another way to capture the same info from the intermediate instance as long as we do so before "make clean" is called - but that solution felt messy. Please let me know whether I should have a go at improving the variable naming here as SRCDIR (original), srcdir (intermediate) and builddir (frozen) could cause confusion... |
arhadthedev commentedApr 3, 2023
@terryjreedy (as a participant of the parent issue) |
TabLand commentedApr 3, 2023
The following new exception for missing make file in the intermediate python instance is passing on all platforms except Ubuntu as part of the Github CI pipeline builds: I'm happy to remove this, as technically the existence of the Makefile depends on ./configure being run successfully first? |
It depends on ./configure
bedevere-bot commentedApr 4, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
arhadthedev commentedApr 6, 2023
Closing as a duplicate ofgh-102152. |
erlend-aasland commentedApr 6, 2023
This is not a duplicate ofgh-102152, which fetched CONFIG_ARGS from the copied source directory instead of from the build directory. This PR fetches CONFIG_ARGS from the original source directory, so it is slightly different, and possibly more correct; I don't have the bandwidth to look at this right now. I'll definitely be able to review it around the summit in a couple of weeks. |
TabLand commentedJul 8, 2023
Hi@erlend-aasland /@terryjreedy, |
terryjreedy commentedJul 10, 2023
This PR involves things beyond my knowledge. Erland, if you cannot finish this, can you suggest another reviewer? |
erlend-aasland commentedJul 11, 2023
@kumaraditya303, should we backport this to 3.12? |
kumaraditya303 commentedJul 12, 2023
Yes |
miss-islington commentedJul 12, 2023
Thanks@TabLand for the PR, and@erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
bedevere-bot commentedJul 12, 2023
GH-106667 is a backport of this pull request to the3.12 branch. |
…l source directory (pythonGH-103213)Fetch CONFIG_ARGS from the original source directory, instead of fromthe copied source tree. When "make clean" is executed in the copiedsource tree, the build directory is cleared and the configure argumentlookup fails. However, the original source directory still contains thisinformation.(cherry picked from commitde82732)Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
…al source directory (GH-103213) (#106667)gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory (GH-103213)Fetch CONFIG_ARGS from the original source directory, instead of fromthe copied source tree. When "make clean" is executed in the copiedsource tree, the build directory is cleared and the configure argumentlookup fails. However, the original source directory still contains thisinformation.(cherry picked from commitde82732)Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
Uh oh!
There was an error while loading.Please reload this page.
instead of fetching from intermediate instance. As "make clean" is called against the intermediate instance, the build directory is cleared and the config arguments lookup fails with a ModuleNotFoundError:
More context here:#103186 (comment)