Add "python2" symlink to point to Python inside MozillaBuild

RESOLVED FIXED

Status

mozilla.org
MozillaBuild
RESOLVED FIXED
3 years ago
2 years ago

People

(Reporter: xidorn, Assigned: RyanVM)

Tracking

Details

(Reporter)

Description

3 years ago
Per PEP 0394 [1], for script compatibility, there should be a "python2" command available where Python 2.x is available, and only scripts compatible with both Python 2 and Python 3 should specify "python" in their shebang.

But there is no "python2" command in the MozillaBuild's path.

This should probably be an upstream bug, though.


[1] https://www.python.org/dev/peps/pep-0394/
(Assignee)

Updated

2 years ago
Assignee: nobody → ryanvm
Blocks: 1224680
(Assignee)

Comment 1

2 years ago
We already do something similar in that we create a python2.7.exe copy during packaging. I'm going to take the easy way and just do the same with python2.exe. It's only 27KB, so I don't think disk space concerns are an issue here.

http://people.mozilla.org/~rvandermeulen/MozillaBuildSetup2.2.0pre1.exe (77.5MB)
SHA-256: f929bffff830d608a81206592458df1bc9a40db4627649f0c8e9d4d8c0e1d2fe
(Assignee)

Comment 2

2 years ago
http://hg.mozilla.org/mozilla-build/rev/1337b2d2ba6a
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.