bpo-45188: Windows now regenerates frozen modules at the start of build instead of late#28322
bpo-45188: Windows now regenerates frozen modules at the start of build instead of late#28322zooba merged 4 commits intopython:mainfrom
Conversation
…ld instead of late
|
I haven't looked at how much slower this makes the build, but it ought to be a minute or so. It'd be possible to make the freeze_module project share a temp directory with pythoncore, which would speed it up, but that's going to hurt reliability so I'd rather not. |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
LGTM
Thanks for doing this!
|
I think you can also drop the special-case in |
Potentially, but I'll leave that one to you ;) In case it breaks other things |
Tools/scripts/freeze_modules.py
Outdated
| pyfile = os.path.relpath(src.pyfile, ROOT_DIR).replace('/', '\\') | ||
| header = os.path.relpath(src.frozenfile, ROOT_DIR).replace('/', '\\') | ||
| intfile = header.split('\\')[-1].strip('.h') + '.g.h' | ||
| intfile = os.path.splitext(os.path.basename(header))[0] + '.g.h' |
There was a problem hiding this comment.
FYI @ericsnowcurrently I fixed a bug in your script here (should've been removesuffix('.h') rather than strip, but better to stick with os.path when dealing with paths anyway).
There was a problem hiding this comment.
Thanks for fixing this. I was going to suggest using ntpath explicitly here, but in this case it really should be os.path. 🙂
|
Thanks again for doing this, @zooba! |
https://bugs.python.org/issue45188