Skip to content

chore: make pipstar non-switchable#3737

Merged
aignas merged 14 commits intobazel-contrib:mainfrom
aignas:aignas.chore.cleanup-legacy-pip-code
Apr 27, 2026
Merged

chore: make pipstar non-switchable#3737
aignas merged 14 commits intobazel-contrib:mainfrom
aignas:aignas.chore.cleanup-legacy-pip-code

Conversation

@aignas
Copy link
Copy Markdown
Collaborator

@aignas aignas commented Apr 24, 2026

The pipstar code has been there for some time and might be stable enough to not
have a fallback anymore.

Related #2949

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 removes the RULES_PYTHON_ENABLE_PIPSTAR and RULES_PYTHON_ENABLE_PYSTAR environment variables and their associated logic, effectively making the Starlark implementations the default. It also removes the legacy entry point generation mechanism in favor of py_console_script_binary. Feedback was provided regarding a potential breaking change in the whl_library_targets macro signature, where retaining the entry_points parameter is recommended for backward compatibility with vendored files. Additionally, a null check was suggested for the whl_metadata result in whl_library.bzl to prevent potential crashes if the metadata file is missing.

Comment thread python/private/pypi/whl_library_targets.bzl
Comment thread python/private/pypi/whl_library.bzl
At the same time cleanup pystar env var docs. Also cleanup dead code.
@aignas aignas force-pushed the aignas.chore.cleanup-legacy-pip-code branch from 116019e to 4f78a8c Compare April 24, 2026 15:34
@aignas aignas marked this pull request as ready for review April 27, 2026 13:00
@aignas aignas enabled auto-merge April 27, 2026 13:04
@aignas aignas added this pull request to the merge queue Apr 27, 2026
Merged via the queue into bazel-contrib:main with commit 2e8aa91 Apr 27, 2026
1 of 3 checks passed
@aignas aignas deleted the aignas.chore.cleanup-legacy-pip-code branch April 27, 2026 13:23
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.

2 participants