Skip to content

Commit 760348c

Browse files
committed
exp(pypi): enable pipstar by default on bzlmod
DO NOT MERGE: this is still a test
1 parent 6046e9e commit 760348c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ END_UNRELEASED_TEMPLATE
6161

6262
{#v0-0-0-changed}
6363
### Changed
64-
* Nothing changed.
64+
* (pypi) `pipstar` flag has been flipped to be enabled by default for bzlmod
65+
([#2949](https://github.com/bazel-contrib/rules_python/issues/2949)).
6566

6667
{#v0-0-0-fixed}
6768
### Fixed

python/private/internal_config_repo.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ settings for rules to later use.
2020

2121
load(":repo_utils.bzl", "repo_utils")
2222

23+
_BZLMOD_ENABLED = "@@" in str(Label("//:unused"))
2324
_ENABLE_PIPSTAR_ENVVAR_NAME = "RULES_PYTHON_ENABLE_PIPSTAR"
24-
_ENABLE_PIPSTAR_DEFAULT = "0"
25+
_ENABLE_PIPSTAR_DEFAULT = "1" if _BZLMOD_ENABLED else "0"
2526
_ENABLE_PYSTAR_ENVVAR_NAME = "RULES_PYTHON_ENABLE_PYSTAR"
2627
_ENABLE_PYSTAR_DEFAULT = "1"
2728
_ENABLE_DEPRECATION_WARNINGS_ENVVAR_NAME = "RULES_PYTHON_DEPRECATION_WARNINGS"

0 commit comments

Comments
 (0)