Skip to content

Commit 5db852b

Browse files
committed
fix rules_python_config repo in module
1 parent 5262a9f commit 5db852b

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

MODULE.bazel

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,8 @@ use_repo(
3737
rules_python_config = use_extension(
3838
"//python/extensions:config.bzl",
3939
"rules_python_config",
40-
dev_dependency = True,
4140
)
4241
use_repo(rules_python_config, "rules_python_config")
43-
rules_python_config.add_transition_setting(
44-
# Intentionally add a setting already present for testing
45-
setting = "//python/config_settings:python_version",
46-
)
47-
rules_python_config.add_transition_setting(
48-
setting = "//tests/multi_pypi:external_deps_name",
49-
)
5042

5143
# We need to do another use_extension call to expose the "pythons_hub"
5244
# repo.
@@ -232,6 +224,19 @@ use_repo(
232224
"whl_with_build_files",
233225
)
234226

227+
dev_rules_python_config = use_extension(
228+
"//python/extensions:config.bzl",
229+
"rules_python_config",
230+
dev_dependency = True,
231+
)
232+
dev_rules_python_config.add_transition_setting(
233+
# Intentionally add a setting already present for testing
234+
setting = "//python/config_settings:python_version",
235+
)
236+
dev_rules_python_config.add_transition_setting(
237+
setting = "//tests/multi_pypi:external_deps_name",
238+
)
239+
235240
# Add gazelle plugin so that we can run the gazelle example as an e2e integration
236241
# test and include the distribution files.
237242
local_path_override(

0 commit comments

Comments
 (0)