Hi Alex,
We've begun improving the core Python rules, mainly with regard to Py2 vs 3 issues, but the changes aren't committed yet due to a
blocker that I expect to be resolved next week. As a prerequisite, we also
open sourced some unit tests for the rules.
The fixes I expect soon are:
- building a Py3-only py_library at the top-level without having to specify --force_python (
#1446)
- Py3 targets should run with the system "python3" command by default (
#4815)
- clearer documentation for the various flags/attributes that control what python mode you're in
After that, we'll put out a design doc for a py_toolchain rule (perhaps just a refinement of the existing py_runtime) to allow per-target selection of the python interpreter -- basically a concretization of the py_toolchain proposed in the
Purple Boa doc. Stay tuned.
Pip integration (rules_python) and building extensions are also big concerns but we do not yet have precise plans for those.
As for keeping up with the progress: I've been updating relevant github issue threads, and you can watch this mailing list for upcoming docs.