Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pip does not preserve permissions when unpacking (Permission denied running ./configure) #317
"pip install ctypes" fails on Python 2.4 because pip does not properly apply the executable file permissions to ./source/libffi/configure when it unpacks the tarball (ctypes-1.0.2.tar.gz).
The ctypes setup.py executes this configure script directly, and this fails with permission denied. As a work around, it's possible to modify the ctypes setup.py to execute "sh /path/to/configure" instead of /path/to/configure
To reproduce this:
This is related (but different) than issue #288, which specifically refers to how symlinks are handled when unpacking a tarball. I opened this issue to ensure that it didn't get lost.
I have not tested how permissions are handled with zip files.
Similar code exists in distribute. https://bitbucket.org/tarek/distribute/pull-request/14/set-permissions-when-extracting-from
This was referenced
Aug 15, 2013
I ran into this today trying to install ctypes on Debian (pip is 1.5.5).
What is going on?
I'm on ubuntu, and it works with 1.5.5 https://gist.github.com/qwcode/569afafab50e35bdd0d1
what's going on most likely is that '/home/remram44/vtenv/build/ctypes/source/libffi/configure' is not executable. as for why? not sure. be sure you're really using 1.5.5