Skip to content

Can bzlmod pip.parse be inherited by other modules without loading python toolchain again? #2039

Answered by aignas
lucasmuna asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is the second snippet, you should be declaring the py_binary in a similar way how the version specific py binaries are defined: https://github.com/bazelbuild/rules_python/blob/main/examples/bzlmod/tests/BUILD.bazel#L2

Or you should call pip.parse multiple times for each python version that your users may use to ensure that you have working dependency tree on any Python version.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lucasmuna
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2029 on July 05, 2024 08:13.