Closed
Bug 620987
Opened 14 years ago
Closed 14 years ago
setuptools-ify tools
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
Attachments
(1 file)
1.67 KB,
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
I'd like to add some extra utilities to tools, and the easiest way to do that is to install into a virtualenv using setuptools. This will let us install shell scripts, too. Hopefully tools can become the releng swiss army knife.
Assignee | ||
Comment 1•14 years ago
|
||
This adds a setup.py that can install the modules under lib/python into a virtualenv. If you want to edit them: cd tools/ virtualenv --distribute sandbox . sandbox/bin/activate pip install -e. python >>> import util.hg Note that you can also test it with python setup.py test although at the moment a few tests fail for me (hg problems, not Python problems) I'd like to put new functionality under the 'buildtools' package, but I don't see a huge reason to move the existing build, release, test, and util packages there.
Attachment #499330 -
Flags: review?(aki)
Comment 2•14 years ago
|
||
Comment on attachment 499330 [details] [diff] [review] m620987-tools-r1.patch *stamp*
Attachment #499330 -
Flags: review?(aki) → review+
Comment 3•14 years ago
|
||
with a comment that chmoding it and making it #!able might be nice.
Assignee | ||
Comment 4•14 years ago
|
||
Landed in a1e1ad0610bd, with a #! line and chmod +x
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 5•13 years ago
|
||
It's not a big deal, but I'm curious why the 'test' module was moved, can you explain?
Assignee | ||
Comment 6•13 years ago
|
||
Because otherwise you're making a toplevel package named 'test', which conflicts with the standard library's package of the same name. Ideally, everything would end up under the 'buildtools' package, but we can work on that slowly. Moving tests should have minimal impact.
Comment 7•13 years ago
|
||
aaah ok, thanks for the explanation!
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•