rules_python
rules_python copied to clipboard
fix: Stop using PYTHONPATH to set up sys.path
This patch is an experiment for setting up sys.path inside
the final Python process instead of letting the runtime do it
via PYTHONPATH.
The motivation here is to address these 2 issues:
- #382
- #792
Try it with:
$ bazel run //tools:wheelmaker -- --help
Look at the generated files.
Do you think it would help #1174 as well?
Do you think it would help #1174 as well?
Not as-is, no. But I think it could. In the python/private/common/entrypoint.tmpl.py file we could add an import hook that tries to resolve imports with the repository name.
This PR was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"