You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a venv in aspect_rules_py executables generated by dependencies do not make it into the bin folder of the venv.
Version
Development (host) and target OS/architectures:
Output of bazel --version: 7.4.0
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: Same as this repo
Language(s) and/or frameworks involved: Same as this repo
How to reproduce
Within this repo:
1. Add alembic to requirements.in file
2. Run `bazel run //:requirements.update`
3. Add `"@pypi_alembic//:pkg"` as dep in`examples/py_binary` build file
4. Run `bazel run //examples/py_binary:py_binary.venv`
5. Inspect the `.examples+py_binary+py_binary.venv/bin/` and see that the alembic executable is not there
6. Create a new directory and cd into it
7. Run with native python `python -m venv env`
8. Run `source env/bin/activate`
9. Run `pip install alembic`
10. The alembic executable is included in the `env/bin` folder.
Any other information?
No response
The text was updated successfully, but these errors were encountered:
A contribution here would be great. Note that we've recently switched to use uv for creating the virtualenv, so likely whatever support is needed to make console scripts functional is already available there, we just need to wire it up.
We don't use uv directly in the same way rules_uv does, but do so via the Rust crates. The work here is to ensure the parts that create the bin structure is wired up via the Rust code in rules_py.
What happened?
When making a venv in
aspect_rules_py
executables generated by dependencies do not make it into the bin folder of the venv.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: Same as this repoLanguage(s) and/or frameworks involved: Same as this repo
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: