Bug 71723 - Change /usr/bin/python to /usr/bin/python2 in python scripts
Summary: Change /usr/bin/python to /usr/bin/python2 in python scripts
Status: RESOLVED DUPLICATE of bug 55037
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 12:56 PST by Rafael Antognolli
Modified: 2011-11-07 13:13 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Antognolli 2011-11-07 12:56:25 PST
Many python scripts are written for use with python2, but they have
 #!/usr/bin/python

in the beginning of the script. For instance, the script WebKit/Source/WebCore/inspector/CodeGeneratorInspector.py has this problem. But in some linux distributions, /usr/bin/python already points to python 3 instead of python 2, thus the script is incompatible.

There are some discussions already about making it a standard to have /usr/bin/python2 in the system, like here: http://mail.python.org/pipermail/python-dev/2011-March/108571.html

So, could we make this change on our scripts? (I can file a patch making that sed if people agree)

Regards,
Rafael
Comment 1 Eric Seidel (no email) 2011-11-07 13:12:37 PST
We should just fix our scripts to support Python 3 (if possible).

python2 doesn't exist on Macs.
Comment 2 Eric Seidel (no email) 2011-11-07 13:13:14 PST

*** This bug has been marked as a duplicate of bug 55037 ***