rules_py
rules_py copied to clipboard
[FR]: Virtual environments to be created next to the target
What is the current behavior?
Running a .venv target will create the virtual environment in the root of the repo, with the name .<target>.venv. The virtual environment is not inherently relocatable due to the relative paths inside of first_party.pth.
Describe the feature
Allow for the virtual environments to be created in the same directory as the rule is defined. The current default naming behavior is fine, but adding support for:
bazel run :target.venv env
to name the resulting virtual environment would be great!
Fund our work
- [ ] Sponsor our open source work by donating a feature bounty