Closed Bug 433852 Opened 17 years ago Closed 16 years ago

add easy_install to MozillaBuild

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows XP
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: ted)

Details

Attachments

(1 file)

easy_install, http://peak.telecommunity.com/DevCenter/EasyInstall, uses /c/mozilla-build/python25/Scripts to install custom scripts. We should add that to the path so that people can use that easily. In particular, I recommend installing compare-locales this way to localizers, which may find editing PATH settings themselves not so great. Adjustments to PYTHONPATH are apparently not needed. Other question, should we have easy_install already in MozillaBuild?
If you want easy_install, give me simple steps to install it and I'll look into it. Adding the PATH should be easy.
Nice :-). http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install has details, basically, get the ez_setup.py script there, get the right egg, right now, that's setuptools-0.6c8-py2.5.egg from http://pypi.python.org/packages/2.5/s/setuptools/ They have exe files there, but I don't know if those are installers. Anyway, I just tested this in the hg test mozillabuild, if you run python ez_setup.py with the egg next to it, it will install fine, and not download anything, which I guess is what we want. The egg has a shell script stub doing the same, but I'm not sure how hard it is to call into a shell script without triggering our ssh-agent hooks.
I needed to do a respin of 1.3 anyway, so I checked in this tiny patch. If you'd like to morph this bug to be about adding easy_install by default, that's fine, if you'd like to file another bug about that, that's also fine.
Summary: add /c/mozilla-build/python25/Scripts to PATH for easy_install → add easy_install to MozillaBuild
It would be great if this gets into MozillaBuild 1.4, as it's needed for Mozmill to work on Windows. I don't know about newer Python, but the version with MozillaBuild 1.3 (Python 2.5) creates exes without a manifest. This means that the installer detection stuff kicks in on Vista and above, and this is a problem.
I believe Python 2.5 is built with VC 2003, and 2.6 is built with VC 2009.
The installer exe is pretty crappy, it doesn't let you configure anything from the commandline. I found some instructions on how to install from the egg here, which seem to work: http://stackoverflow.com/questions/309412/how-to-setup-setuptools-for-python-26-on-windows
Assignee: nobody → ted.mielczarek
Ok, a few hacks later it seems to be working. Try the pre-release build here: http://people.mozilla.com/~tmielczarek/MozillaBuildSetup-1.4pre.exe (in about 15 minutes from now when it finishes uploading, anyway)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Ted, is there an eta when the new version (1.4) will be released? It would be nice to have an official build setup available.
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: