Closed Bug 578584 Opened 14 years ago Closed 13 years ago

Update Python in MozillaBuild to 2.7

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows 7
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gkw, Assigned: gkw)

References

()

Details

Attachments

(2 files, 1 obsolete file)

I wonder if it's too late to squeeze in Python 2.7 to MozillaBuild 1.5 RC - it's much much more convenient to have a working os.kill function for Windows when attempting to fuzz.

http://docs.python.org/library/os.html#os.kill

(fwiw, Ted updated to Python 2.6.5 on July 3rd (many thanks for that), and Python 2.7 got released on the same day.)

I don't know of any incompatibilities between the 2.5/2.6.5 and 2.7 series though.
(In reply to comment #1)
> Created attachment 457252 [details] [diff] [review]

I have no idea how to test it since I don't have the environment "specific to the paths on the mozillabuild-builder vm" as specified in make-mozillabuild.bat.
I thought Python 2.6 was sufficient for you? I don't have any real opposition here, it just seems like extra churn.
(In reply to comment #4)
> I thought Python 2.6 was sufficient for you? I don't have any real opposition
> here, it just seems like extra churn.

The extra stuff would be regarded as nice-to-have, but it's really ok if it's way too much of a hassle (which I've tried to help as much as possible with the patch)..
imho its probably worth missing this milestone for this milestone of mozbuild, since we already have an rc out; if we need to respin the rc for some reason, then I don't see a reason we can't take this along though.
(In reply to comment #6)
> imho its probably worth missing this milestone for this milestone of mozbuild,
> since we already have an rc out; if we need to respin the rc for some reason,
> then I don't see a reason we can't take this along though.

Armen has another possibly nice-to-have bug to ride-along in bug 579159..
No longer blocks: 570473
Comment on attachment 457252 [details] [diff] [review]
Patch for the other files based on http://hg.mozilla.org/mozilla-build/rev/d4b8b4f97e4e

Looks fine, but I haven't tested it.
Attachment #457252 - Flags: review?(ted.mielczarek) → review+
Isn't this patch ready to be pushed?
It needs to be tested, and I never got around to it.
untested patch for 2.7.1 based on the previous patch
No longer depends on: 636155
No longer depends on: 636155
(In reply to comment #4)
> I thought Python 2.6 was sufficient for you? I don't have any real
> opposition here, it just seems like extra churn.

I tried to get the reviewer chooser prototype working via the Mozilla Build environment, but it requires Python 2.7 + to work, or else I get an |ImportError: cannot import name Counter| error...

http://weblog.latte.ca/blake/employment/mozilla/thunderbird/reviewerChooser

I know I can just install another copy of python elsewhere, but it's just something else to remember to do if I'm using a different machine / then means I've got two versions installed for the sake of it.

Thanks :-)
Ted: any chance you have time to test Gary's new patch?  Python 2.7 would be handy for an accumulating number of reasons, to judge by the comments here and duplicates filed.
Here's an untested patch for 2.7.2, edited quickly from the 2.7.1 patch which was edited quickly from the 2.7 one.
Attachment #510124 - Attachment is obsolete: true
Attachment #551651 - Flags: review?(ted.mielczarek)
(In reply to Gary Kwong [:nth10sd] from comment #16)
> Created attachment 551651 [details] [diff] [review] [diff] [details] [review]
> v3 patch for 2.7.2 based on previous obsoleted 2.7.1 patch (which in turn
> was based on the original patch)
> 
> Here's an untested patch for 2.7.2, edited quickly from the 2.7.1 patch
> which was edited quickly from the 2.7 one.

Binary packages are here:

http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg

http://www.python.org/ftp/python/2.7.2/python-2.7.2.msi
Testing the patch is just as much of a pain as building a new version of MozillaBuild. I'd like to do it, but it's very time-consuming. khuey and I have been thinking about doing a new MozillaBuild release for a while, we just haven't found time.
Attachment #551651 - Flags: review?(ted.mielczarek) → review+
Note to self: don't panic, bug 659881 is mac-specific and we have a workaround.
I built mozilla-build with this and didn't see anything obviously wrong.

http://hg.mozilla.org/mozilla-build/rev/240a0e9e6e7e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 724191
No longer blocks: 754810
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: