Skip to content
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

Resolve verstamp bootstraping problem #2349

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jul 30, 2024

Removes the --skip-verstamp flag by making it obsolete by resolving the bootstraping (aka chicken & egg) problem.
This is done by using a pure python implementation rather than relying on pywin32 itself. The implementation was originally pulled from https://github.com/enthought/pywin32-ctypes/blob/main/win32ctypes/win32api.py , then adapted, simplified and typed.

I also fixed the bulkstamp script enough that it can at least run (but I haven't yet properly tested it)
I considered moving win32/Lib/win32verstamp.py to win32/scripts/VersionStamp/verstamp.py, but someone downstream might be using win32verstamp to stamp their own executables, so I left it there. (maybe it should be moved, with a deprecated alias left in win32/Lib)

Closes #2306 and addresses one of the points in #2208 by removing the flag entirely.


I left in the make_all.bat / build_all.bat scripts for now. But the release process can now be simplified to just downloading the artefacts on the CI instead of rebuilding everything locally.

@Avasam Avasam force-pushed the resolve-verstamp-bootstraping-problem branch 4 times, most recently from 01610b3 to 19e99ff Compare July 30, 2024 21:43
@Avasam Avasam requested a review from mhammond July 30, 2024 21:43
@Avasam Avasam force-pushed the resolve-verstamp-bootstraping-problem branch from 19e99ff to 804968a Compare July 30, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to install directly from Git via pip
1 participant