Opened 16 years ago

Closed 15 years ago

#19575 closed defect (fixed)

python 2to3 is not in /opt/local/bin

Reported by: julien.thewys@… Owned by: blb@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: python26 python30

Description

Hi,

I recently installed "python26 @2.6.2" and "python30 @3.0.1". Both come with the 2to3 program but for some reason there is no link to 2to3 in /opt/local/bin. I did not have a look at the install script but I suppose the link creation is missing (maybe because the filename starts with a digit instead of a letter).

If you have python2.6 and python3.0, executing the script below will display "ls: /opt/local/bin/2to3*: No such file or directory" twice, but should presumably not display anything.

#!/bin/sh

for file in $(find /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin -type f); do
    ls -al /opt/local/bin/$(basename "$file")* | grep "No such file"
done

for file in $(find /opt/local/Library/Frameworks/Python.framework/Versions/3.0/bin -type f); do
    ls -al /opt/local/bin/$(basename "$file")* | grep "No such file"
done

Change History (4)

comment:1 Changed 16 years ago by julien.thewys@…

and here is the workaround:

sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/2to3 /opt/local/bin/2to3-2.6
sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.0/bin/2to3 /opt/local/bin/2to3-3.0
sudo ln -s /opt/local/bin/2to3-2.6 /opt/local/bin/2to3

comment:2 Changed 16 years ago by mf2k (Frank Schima)

Cc: mcalhoun@… added
Owner: changed from macports-tickets@… to blb@…
Port: python26 python30 added

comment:3 Changed 15 years ago by blb@…

python26 updated in r52430.

comment:4 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

python30 updated in r52432, thanks.

Note: See TracTickets for help on using tickets.