-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-PythonNative rules for PythonNative rules for Pythontype: process
Description
I would like for this issue to collect all issues concerning Python 3.
As far as I know there are multiple problems:
- The supported values for
srcs_versionarePY2, PY3, PY2AND3, PY2ONLY, PY3ONLY.PY3is documented wrong. It actually handles similar toPY2, which is fine.PY3ONLYis not even documented, although it mostly is what a lot of Python 3 users want.
- By default Bazel always executes Python 2. Which might be an ok choice for now for
PY2,PY3,PY2AND3andPY2ONLY. It is however totally wrong forPY3ONLY. (Python 3 support? #1406)
It seems likecheckSourceIsCompatibleis used instead of a hypotheticalselectPythonVersionForSource.- Question there would be why it is not using Python 3.
- How big is Googles interest in Python 3 support on a scale of 0 (want it now) to 5 (who cares)?
- Would anyone inside of Google be available for mentorship for extending Python 3 support?
- Is there a way for Bazel to use a Python version embedded into a repository?
--force_pythonand--host_force_pythonare given to users, yet they are not documented.py_binarywrapper uses Python 2 although it may not even be present (python stub_template.txt shouldn't assume /usr/bin/python always exists #544)py_binarywrapper spawns a new process for executing python scripts. I do know that we are not talking about great performance with Python but that seems a bit excessive.pkg_tarseems to internally use Python2 only. Does not work with 3.- Python cannot be used as a label (Make --python3_path accept a label #2244)
- pyd cannot be created straight-forward (#2497)
- Support embeddable Python for Windows (Support embeddable Python #2509)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-PythonNative rules for PythonNative rules for Pythontype: process