-
-
Notifications
You must be signed in to change notification settings - Fork 639
feat(pipstar): parse entry_points without Python #3429
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
base: main
Are you sure you want to change the base?
feat(pipstar): parse entry_points without Python #3429
Conversation
Summary of ChangesHello @aignas, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly advances the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
7703671 to
1619825
Compare
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.
Code Review
This pull request introduces a Starlark-based parser for entry_points.txt to avoid shelling out to Python, which is a great improvement for performance and hermeticity. The changes are primarily in whl_metadata.bzl with corresponding updates in whl_library.bzl and tests.
I've found a critical issue where a change in wheel_installer.py will cause failures in whl_library.bzl due to a leftover call. I've also identified a bug in the new entry points parser logic and a minor inaccuracy in a docstring. My review includes suggestions to fix these issues.
This is a small utility function to get us Python free when wheels are extracted in the repository phase. Remaining bits are: - [ ] Extract the wheel using `repository_ctx.extract`. - [ ] Patch the wheel after extracting.
1619825 to
6461690
Compare
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This is a small utility function to get us Python free when wheels are
extracted in the repository phase.
Next is to extract the wheel using
repository_ctx.extract(#3430).Whereas patching the wheel after extracting is more involved to be done
without Python because we need to rezip the wheel and that has to be done
with Python for a few reasons (to stay sane). If we want to remove this,
then we would have to create a
whlfile in the build phase, which couldwork, but will need to be an exercise for the reader.
Nevertheless, this moves us towards removing any side-effects from Python
interpreter, so changing the default interpreter would not cause us to
refetch everything.