[issue12394] packaging: generate scripts from callable (dotted paths)

Éric Araujo report at bugs.python.org
Sat Jul 23 11:40:36 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

Same bug.  I’ve added debug prints to find out the rights (UNIX permission system) of the files, and they’re very strange: --wxrw--wt (the read bit is missing, and the t is strange).  It should be -rwxr-xr-x, like other programs.

The bug is likely this change:
-                os.chmod(target, 0755)
+                os.chmod(target, 755)

An octal literal in 3.x is 0o755.  Decimal 755 means 0o1363, which is not good :)

I’ll let you check the Python docs and Wikipedia if you don’t know these rxw or octal codes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12394>
_______________________________________


More information about the Python-bugs-list mailing list