Hi all, I'm creating a pip installable Python pack...
# general
s
Hi all, I'm creating a pip installable Python package via
python_distribution
, and I'd like to treat one of the dependencies as an optional (e.g., a "pip extra" AKA "packaging extra"; https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#dependencies-optional-dependencies). I looked through the
python_distribution
docs, but, didn't see a clear pointer to accomplishing this--did I miss something, or is there another doc page to consult or approach to consider?
c
One option is to set
generate_setup=False
in the BUILD file and use normal python machinery to get it done, like a pyproject.toml. Here's an example for my project BUILD , pyproject.toml Another is to write a plugin to customise the args passed to the generated setup. There's a tutorial for that
s
One option is to set
generate_setup=False
in the BUILD file and use normal python machinery to get it done, like a pyproject.toml
Oh! Didn't realize you could do that. Thank you!
👍 1