Ticket #34326 (new enhancement)
No select group for "python3" command
| Reported by: | mikko@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | Cc: | erickt@…, jwa@…, raimue@…, egall@… | |
| Port: |
Description
Macports provides selection of default Python interpreter as described here:
http://stackoverflow.com/a/6159178/315168
(sudo port select python...)
It would be nice to have select for "python3" command, because Python 2.x and Python 3.x scripts are incompatible and there is no way to invoke default "python3". E.g. Ubuntu/Debian provides python3 command which points to latest Python 3.x interpreter.
Spec:
http://www.python.org/dev/peps/pep-0394/
Example and more xplatform discussion here:
Change History
comment:2 Changed 12 months ago by raimue@…
bin/python2 could be added to the normal pythongroup. However, bin/python3 would require a new select group.
comment:3 Changed 8 months ago by eric.lebigot@…
Related: the python32 port contains a python3 command, which could clash with a python3 command created through port select. It looks to me like the python32 port should not contain any python3 command and that handling it should be done through port select.
+1 vote for adding a python3 group. :)

