[Distutils] EasyInstall: scripts aren't executable?
Ryan Tomayko
rtomayko at gmail.com
Thu Jun 23 21:25:40 CEST 2005
So EasyInstall wrapper scripts don't get any executable bits set when
installed. Was this an intentional omission or just oversight?
Note that you won't see the problem if the script already exists with
+x when it is installed.
diff -u -r1.22 easy_install.py
--- easy_install.py 15 Jun 2005 02:23:47 -0000 1.22
+++ easy_install.py 23 Jun 2005 17:32:20 -0000
@@ -238,7 +238,8 @@
f = open(target,"w")
f.write(script_text)
f.close()
-
+ from os import chmod
+ chmod(target, 0755)
Ryan Tomayko
rtomayko at gmail.com
http://naeblis.cx/rtomayko/
More information about the Distutils-SIG
mailing list