rules_py icon indicating copy to clipboard operation
rules_py copied to clipboard

[FR]: Virtual environments to be created next to the target

Open psalvaggio-dl opened this issue 3 years ago • 0 comments

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

psalvaggio-dl avatar Dec 06 '22 14:12 psalvaggio-dl