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 | Allow GitHub installs #2349

Merged
merged 7 commits into from
Oct 12, 2024

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, fixes #2386 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
@Avasam Avasam changed the title Resolve verstamp bootstraping problem Resolve verstamp bootstraping problem | Allow GitHub installs Oct 11, 2024
Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

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

Thanks!

@mhammond mhammond merged commit 6125a61 into mhammond:main Oct 12, 2024
31 checks passed
@Avasam Avasam deleted the resolve-verstamp-bootstraping-problem branch October 12, 2024 19:11
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.

Product version info is missing in 307 Unable to install directly from Git via pip
2 participants