A comprehensive HTTP client library.
Created attachment 99245 [details] dev-python/httplib2-0.2.0.ebuild
Created attachment 99246 [details] dev-python/httplib2-0.2.0.ebuild
*** Bug 150692 has been marked as a duplicate of this bug. ***
Created attachment 100138 [details] httplib2-0.2.0.ebuild
Created attachment 100152 [details] dev-python/httplib2-0.2.0.ebuild
Created attachment 100153 [details, diff] files/ez_setup_patch.diff
The 2006-10-21 versions allow httplib2 to lay a .egg so that httplib2 can be detected by other ez_setup packages.
I have added httplib2 to the tree, but w/o that ez patch for now. The patch has a lot of new lines(why?), seems to be in windows file format and compilation fails with it. Can you comment on that plz?
I submitted this not because of a personal interest, but because it is a new dependency of dap (http://bugs.gentoo.org/show_bug.cgi?id=54161) which also needs paste (http://bugs.gentoo.org/show_bug.cgi?id=130866). For some reason that I cannot fathom, either dap or paste (I can't remember which) looks for an httplib2 .egg file. They don't test to see whether httplib2 is installed by using 'import', but they use setuptools to look for an .egg file. Now, httplib2 doesn't install with ez_setup/setuptools and so no .egg file. How dap or paste work on the developers machines when httplib2 doesn't install a .egg file anyway is a mystery. Back to my saga, what you see is an attempt to fold in 'ez_setup.py' and the few changes to 'setup.py' into a single patch to make httplib2 install in the ez_setup/setuptools way and install a .egg. Could probably make it alot easier by copying 'ez_setup.py' from /files and then patching in the few lines for 'setup.py'. Even though my single patch thing was clumsy, I am surprised that it didn't work. I will work out a different way to do it, or pressure/wait for httplib2 to come with ez_setup.py on it's own. thanks!
I recommend you patch the egg requirement out of dap/paste (just make them import httplib2 "normally", don't completely de-setuptools them) instead of forcing httplib2 to use setuptools.
(In reply to comment #10) > I recommend you patch the egg requirement out of dap/paste (just make them > import httplib2 "normally", don't completely de-setuptools them) instead of > forcing httplib2 to use setuptools. > That is a good idea. In fact, it _might_ be easy.
As we are not going to add ez_setup to httplib2 I am closing that. Any way many thanks for the ebuild Tim and gl with dap/paste - I will have a look at them later today also.