-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-80789: Implement build-time pip bundling in ensurepip
#12791
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c31bdca
👷Implement build-time pip bundling @ `ensurepip`
webknjaz abe7339
Resolve file path @ `test_get_packages_with_dir`
webknjaz d2ae980
Download ensurepip pip dist @ ASAN GHA job
webknjaz 5bf0cda
Run ensurepip bundle generation @ Win on GHA
webknjaz 388113b
Expose TLS trust store to ASAN build @ GHA
webknjaz 6edef14
Call `ensurepip.bundle` @ win build script
webknjaz 7be49ec
Invoke ensurepip.bundle via built Python @ Win
webknjaz ae92ab9
Depend on dynamic default target @ make
webknjaz 0178658
Update the equality check with `==` @ Win build
webknjaz 00c761f
Revert "Run ensurepip bundle generation @ Win on GHA"
webknjaz f4bf361
Use case-insensitive comparison @ win build script
webknjaz 2615fe8
In download pip into ensurepip @ Azure Pipelines
webknjaz 2ed185f
Rename make target to `download-ensurepip-blobs`
webknjaz 8d1ddcb
Call built Python via `python.bat` @ win build
webknjaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use case-insensitive comparison @ win build script
- Loading branch information
commit f4bf361c42ae67cb59566f75c466617f56995df1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a handy
"%dir%\..\python.bat"
that you can use instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it guaranteed to locate the built interpreter version? I was a bit lost and haven't found how this file is generated to check it myself..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes; see
cpython/PCbuild/python.vcxproj
Lines 134 to 150 in 4116592
(Note that
%dir%\..\python.bat
and%dir%\find_python.bat
are very different :). You want the former, which is also used in the PGO section several lines up.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applied the suggested change. Marking this thread as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zware could you take a look at https://dev.azure.com/Python/cpython/_build/results?buildId=136036&view=logs&j=91c152bd-7320-5194-b252-1404e56e2478&t=c7e99cd8-4756-5292-d34b-246ff5fc615f&l=764 — any idea why it might be failing? I don't see how it might be related to the PR, but OTOH, it doesn't crash on
main
…There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That particular build is apparently trying to run an
arm64
build on what is apparently anamd64
runner, which isn't going to work out well :)