Closed
Bug 806784
Opened 12 years ago
Closed 12 years ago
some python syntax in populate_virtualenv.py does not work in Python 2.5
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: iannbugzilla, Unassigned)
References
Details
The syntax of the print statement at
http://mxr.mozilla.org/comm-central/source/mozilla/build/virtualenv/populate_virtualenv.py#180
seems to cause problems in Python 2.5 (works fine on 2.7, not tested against 2.6)
180 print('Error processing command. Ignoring', \
181 'because optional. (%s)' % ':'.join(package),
182 file=self.log_handle)
It replaced:
print >>log_handle, 'Error processing command. Ignoring', \
'because optional. (%s)' % ':'.join(package)
so I believe using something like:
print >>self.log_handle, 'Error processing command. Ignoring', \
'because optional. (%s)' % ':'.join(package)
would work
Expanding this, as also getting the following on 2.5 for windows:
e:/builds/slave/comm-cen-trunk-w32-ntly/build/mozilla/build/virtualenv/populate_virtualenv.py:170: Warning: 'with' will become a reserved keyword in Python 2.6
File "e:/builds/slave/comm-cen-trunk-w32-ntly/build/mozilla/build/virtualenv/populate_virtualenv.py", line 170
with open(os.path.join(python_lib, package[0]), 'a') as f:
^
SyntaxError: invalid syntax
*** Fix above errors and then restart with "make -f client.mk build"
Summary: print statement syntax in populate_virtualenv.py does not work in Python 2.5 → some python syntax in populate_virtualenv.py does not work in Python 2.5
Comment 2•12 years ago
|
||
Python 2.5 is not supported anymore.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Comment 3•12 years ago
|
||
(See bug 800614).
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•