RESOLVED FIXED 32635
bugzilla-tool should not require users to install mechanize
https://bugs.webkit.org/show_bug.cgi?id=32635
Summary bugzilla-tool should not require users to install mechanize
Eric Seidel (no email)
Reported 2009-12-16 15:09:08 PST
bugzilla-tool should not require users to install mechanize First step is to centralize our handling of mechanize imports. Second step is to make a magical way to have it auto-downloaded. (Another alternative would be to check in a copy of mechanize, but it's *huge* and we don't have a ThirdParty directory to check it in to.) This lazy-download approach is slightly more error-prone than checking in a copy, but should still work.
Attachments
Step one (4.36 KB, patch)
2009-12-16 15:10 PST, Eric Seidel (no email)
no flags
work in progress patch (9.69 KB, patch)
2009-12-18 17:50 PST, Eric Seidel (no email)
no flags
Patch (15.30 KB, patch)
2010-01-04 01:14 PST, Eric Seidel (no email)
no flags
Patch (16.09 KB, patch)
2010-01-04 01:17 PST, Eric Seidel (no email)
abarth: review+
Eric Seidel (no email)
Comment 1 2009-12-16 15:10:19 PST
Created attachment 45020 [details] Step one
WebKit Review Bot
Comment 2 2009-12-16 15:13:07 PST
style-queue ran check-webkit-style on attachment 45020 [details] without any errors.
Eric Seidel (no email)
Comment 3 2009-12-16 16:28:21 PST
Comment on attachment 45020 [details] Step one I'll re-open the bug after the cq closes it. :)
WebKit Commit Bot
Comment 4 2009-12-16 16:40:17 PST
Comment on attachment 45020 [details] Step one Clearing flags on attachment: 45020 Committed r52228: <http://trac.webkit.org/changeset/52228>
WebKit Commit Bot
Comment 5 2009-12-16 16:40:21 PST
All reviewed patches have been landed. Closing bug.
Eric Seidel (no email)
Comment 6 2009-12-16 16:41:44 PST
I'm going to be a hypocrite and re-use this bug for the second step if I can ever get it working...
Eric Seidel (no email)
Comment 7 2009-12-18 13:03:38 PST
So looks like step two could be done via easy_install with a --prefix directory. Something like this: PYTHONPATH=./webkit_module_cache/lib/python2.5/site-packages easy_install --prefix ./webkit_module_cache mechanize and then we would edit sys.path to include ./webkit_module_cache
Eric Seidel (no email)
Comment 8 2009-12-18 13:57:50 PST
I think we can use http://pypi.python.org/pypi/autoinstall/0.1a2 to solve this problem. I've emailed the author about licensing.
Eric Seidel (no email)
Comment 9 2009-12-18 17:50:05 PST
Created attachment 45215 [details] work in progress patch
Eric Seidel (no email)
Comment 10 2009-12-18 17:50:56 PST
Comment on attachment 45215 [details] work in progress patch Sorry, forgot --no-review
Eric Seidel (no email)
Comment 11 2009-12-18 17:52:05 PST
I've spoken with the autoinstall.py author. His intent was to make it clear that it is available under a BSD license, however he's agreed to release a new version which makes that explicit. I also have a local patch to send him as well.
Eric Seidel (no email)
Comment 12 2009-12-29 14:30:50 PST
A new autoinstall module has been released: http://pypi.python.org/pypi/autoinstall/0.2 which clarifies that it's BSD licensed code. This should be easy to finish, I just need to take a few moments and do it.
Eric Seidel (no email)
Comment 13 2010-01-04 01:14:13 PST
Eric Seidel (no email)
Comment 14 2010-01-04 01:17:42 PST
Adam Barth
Comment 15 2010-01-04 01:25:23 PST
Comment on attachment 45779 [details] Patch This sauce is awesome
Eric Seidel (no email)
Comment 16 2010-01-04 01:42:21 PST
Eric Seidel (no email)
Comment 17 2010-01-04 02:24:47 PST
Note You need to log in before you can comment on or make changes to this bug.