gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

bdist_rpm fails #85

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python setup.py bdist_rpm

What is the expected output? What do you see instead?

EXPECTED::
+ python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/httplib2
copying httplib2/__init__.py -> build/lib/httplib2
copying httplib2/iri2uri.py -> build/lib/httplib2
+ exit 0

ACTUAL RESULT::
+ python setup.py build
running build
running build_py
error: package directory 'python2/httplib2' does not exist
error: Bad exit status from /var/tmp/rpm-tmp.50855 (%build)

What version of the product are you using? On what operating system?
Latest check-in on any RPM based distro (Fedora/RHEL/Centos etc.)

Please provide any additional information below.

I believe that the RPM isn't being generated correctly with the new python2
and python3 subdirectories. I'm not a huge user of python distutils...but
I'll try to look and see if I can fix.

Original issue reported on code.google.com by brian.la...@gmail.com on 29 Dec 2009 at 9:24

GoogleCodeExporter commented 8 years ago
I ran into more or less the same situation and I wonder if there is a known 
solution. In my case, it says "error: package direcotry 'python2\httplib2' does 
ont exist" and it stops there.
I have Python2.4 and 2.5 installed in the same computer, and have used httplib2 
successfully with 2.4. It seems the module cannot install into python 2.5?

Original comment by orangem...@gmail.com on 6 Jan 2011 at 4:37

GoogleCodeExporter commented 8 years ago
I'm having the same problem. You can build an RPM like this:

1. Copy the content of python2/* to .
2. Edit setup.py and comment out the line "package_dir=pkgdir," in the setup 
function.

I have been able to build an RPM then.

Original comment by whisky...@gmail.com on 21 Mar 2011 at 9:54