Re: [MacPorts] #34326: Python ports do not adhere to PEP 394 and provide "python2" and "python3"
#34326: Python ports do not adhere to PEP 394 and provide "python2" and "python3" -------------------------------------------------+------------------------- Reporter: mikko@… | Owner: larryv@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: python_select python24 python25 | python26 python27 python31 python32 python33 | python34 | -------------------------------------------------+------------------------- Comment (by felipou@…): First of all, thanks a LOT larryv! I just tested, and it's working great. Although there was a strange error log when I ran these commands: {{{ $ sudo port -d select --set python3 python34 DEBUG: Copying /Users/felipe/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [python3 python34] [ports_select_set yes]... DEBUG: The 'set' command was specified. DEBUG: mportselect [set] [python3] [python34] DEBUG: ln -sf /opt/local/bin/python3.4 /opt/local/bin/python3 DEBUG: ln -sf /opt/local/bin/python3.4m /opt/local/bin/python3m Selecting 'python34' for 'python3' failed: could not create new link "/opt/local/bin/python3-32": target "/opt/local/bin/python3.4-32" doesn't exist }}} {{{ $ sudo port -d select --set python3 python35 DEBUG: Copying /Users/felipe/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [python3 python35] [ports_select_set yes]... DEBUG: The 'set' command was specified. DEBUG: mportselect [set] [python3] [python35] DEBUG: ln -sf /opt/local/bin/python3.5 /opt/local/bin/python3 DEBUG: ln -sf /opt/local/bin/python3.5m /opt/local/bin/python3m Selecting 'python35' for 'python3' failed: could not create new link "/opt/local/bin/python3-32": target "/opt/local/bin/python3.5-32" doesn't exist }}} As I said, it worked for me, I only wanted the /opt/local/bin/python3 link, and it is correctly pointing to the chosen version. But maybe there is something broken that I didn't notice. If you want me to check anything, I'd be glad to help. Thanks again! -- Ticket URL: <https://trac.macports.org/ticket/34326#comment:39> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts