Reid D McKenzie
Reid D McKenzie
Add a config_setting allowing users to toggle the default venv strategy so that users have to explicitly opt into the new-style static venv. Mitigates #696 ### Changes are visible to...
As noted by some users, the Python toolchains with `rules_python` configures by default are kinda heavyweight because they include docs, headers and stiff like TKinter which is rarely used in...
An earlier version of `py_venv` relied on using relative paths from the venv to the interpreter's actual root. We moved away from this because, after the user symlinks a `.venv`...
Python has an `-E` flag, which causes it to ignore PYTHONHOME and PYTHONEXECUTABLE both of which are key to how we're making the shim work. Add a flag parser to...
Brainfiring while working on #644. Today the `py_venv_*` strategy is to create a link for every input file. This works nicely in general because it requires no real work planning...
It's always been a pain point that the `if name == "__main__"` pattern allows for Python files to serve double duty as both scripts _and_ libraries. This creates ambiguity for...
Discussed at some length with Jimmy -- Today we have `py_pex_binary` which is good and serves a narrow purpose and the new `py_venv_binary` which also serves a clear purpose. But...
The static venv machinery is easier to test, easier to reason about, more portable, faster starting and should be a full replacement. As part of 2.0 drop the current dynamic...
https://github.com/aspect-build/rules_py/pull/582
The pytest driver template isn't valid Python, which makes it unlintable, which is part of why it has unmitigated typing issues which become visible when users adopt `rules_mypy` and equivalents....