-
Hi, as part of your README, you mention
It is not fully clear to me how to get there? Do I have to tell the IDE where to find the venv inside the sandbox? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I'm also wondering how to do the IDE integration. Especially being able to use the debugger would be essential. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I've never really tried this, but I think the idea is to create a venv with everything using the |
Beta Was this translation helpful? Give feedback.
-
Would the idea then be to have a |
Beta Was this translation helpful? Give feedback.
-
A venv can be created for any
This really depends on a number of factors. If there is multiple Python dependency closures in the repo, or Python versions, then a single venv will cause conflicts. It also depends on the size of the repo, perhaps, as opening the root of a repo and attempting to install all of the dependencies would be too large, so a finer grained "per service" and "per target" approach is needed. |
Beta Was this translation helpful? Give feedback.
A venv can be created for any
py_test
orpy_binary
target, viabazel run //the/binary.venv
, rules_py will create a venv for that target in the directory next to the target.This really depends on a number of factors. If there is multiple Python dependency closures in the repo, or Python versions, then a single venv will cause conflicts. It also depends on the size of the repo, perhaps, as opening the root of a repo and attempting to install all of the dependencies would be too large, so a finer grained "per service" and "per target" approach is needed.