The bug tracker for setuptools 0.7 or higher is on BitBucket



Title all files installed +x
Priority bug Status resolved
Superseder Nosy List drewp, pfein, pje, zklaus, zooko
Assigned To Keywords

Created on 2008-05-09.03:14:49 by pfein, last changed 2017-03-10.13:23:03 by pje.

File name Uploaded Type Edit Remove
chmod.txt zklaus, 2008-05-12.14:47:19 text/plain
msg422 (view) Author: pje Date: 2009-10-19.19:31:15
setuptools 0.6c10 is released with a fix for this issue; specifically, .py files
are no longer marked executable, only .dll and .so files.
msg53 (view) Author: drewp Date: 2008-06-27.05:51:24
I hit this issue in a way that was hard to diagnose. The file "bin/tahoe", in
the tahoe project, somehow ended up -rwx--x--x. This meant that the file ran
fine for my user, but when my daemon system tried to run it as root, I got a
mysterious "can't find command" error. 

This took a long time to notice and correct, so I support whatever fix would
make perms work more normal fashion.
msg13 (view) Author: zklaus Date: 2008-05-12.14:47:19
I think the attached patch fixes the problem.
No tests are broken.
However it obviously hasn't had much exposure.
What do you think?
msg9 (view) Author: zooko Date: 2008-05-09.12:39:36
There was a bug in setuptools 0.6c3 or so in which the 'x' permission bit was
getting cleared when installing on cygwin.  Unless I misremember, it was to fix
that problem that this behavior was added.
msg7 (view) Author: pfein Date: 2008-05-09.03:14:49
Setuptools installs all files with mode +x (executable), overriding any 
permissions specified in the original archive.  The consensus on the distutils 
mailing list is that doing so is incorrect, and potentially dangerous. It also 
breaks nosetests. No final determination was received from PJE.

For extensive discussion, see:
Date User Action Args
2017-03-10 13:23:03pjesetstatus: chatting -> resolved
nosy: - stavros
2017-03-10 13:22:30pjesetmessages: - msg784
2017-03-10 11:52:44stavrossetstatus: resolved -> chatting
nosy: + stavros
messages: + msg784
2009-10-19 19:31:15pjesetstatus: in-progress -> resolved
nosy: + pje
messages: + msg422
2009-10-10 21:41:42pjesetstatus: chatting -> in-progress
2008-06-27 05:51:24drewpsetnosy: + drewp
messages: + msg53
2008-05-12 14:47:21zklaussetfiles: + chmod.txt
nosy: + zklaus
messages: + msg13
2008-05-09 12:39:36zookosetstatus: unread -> chatting
nosy: + zooko
messages: + msg9
2008-05-09 03:14:49pfeincreate