Skip to content

gh-113258: Write frozen modules to the build tree on Windows#113303

Merged
zooba merged 8 commits into
python:mainfrom
itamaro:gh-113258-windows-frozen-intdir
Jan 3, 2024
Merged

gh-113258: Write frozen modules to the build tree on Windows#113303
zooba merged 8 commits into
python:mainfrom
itamaro:gh-113258-windows-frozen-intdir

Conversation

@itamaro

@itamaro itamaro commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

Move generated frozen modules out of the source tree and into the build tree on Windows build

@itamaro itamaro changed the title gh-113258: Write frozen modules to IntDir gh-113258: Write frozen modules to the build tree on Windows Dec 22, 2023
@itamaro
itamaro requested a review from zooba December 22, 2023 00:02
@itamaro itamaro added OS-windows build The build process and cross-build labels Dec 22, 2023
@itamaro

itamaro commented Dec 22, 2023

Copy link
Copy Markdown
Contributor Author

@zooba this seems to be working now (except for the seemingly unrelated pythoninfo failure) . please take a look. I can incorporate further feedback in a polish pass (adding NEWS and whatnot, assuming this is NEWS-worthy)

@itamaro
itamaro marked this pull request as ready for review December 22, 2023 00:04
@itamaro
itamaro requested a review from a team as a code owner December 22, 2023 00:04

@zooba zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and seems to not affect POSIX builds, which is good.

I think we should have a NEWS item, but put it in the Build section (not Windows) and just specify that it changed the Windows build.

Comment thread PCbuild/pyproject.props Outdated
@zooba
zooba merged commit 178919c into python:main Jan 3, 2024
@zooba

zooba commented Jan 3, 2024

Copy link
Copy Markdown
Member

Thanks for all the work on this!

@itamaro
itamaro deleted the gh-113258-windows-frozen-intdir branch January 3, 2024 18:32
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…ythonGH-113303)

This ensures the source directory is not modified at build time, and different builds (e.g. different versions or GIL vs no-GIL) do not have conflicts.
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…ythonGH-113303)

This ensures the source directory is not modified at build time, and different builds (e.g. different versions or GIL vs no-GIL) do not have conflicts.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…ythonGH-113303)

This ensures the source directory is not modified at build time, and different builds (e.g. different versions or GIL vs no-GIL) do not have conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build OS-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants