Changeset 1458 for trunk/install_scripts/unix/setup.py
- Timestamp:
- 08/20/07 14:31:10 (6 years ago)
- Files:
-
- 1 modified
-
trunk/install_scripts/unix/setup.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install_scripts/unix/setup.py
r1453 r1458 19 19 20 20 import os 21 import os.path 21 22 import re 22 23 … … 26 27 27 28 from glob import glob 28 from stat import ST_MODE 29 from stat import ST_MODE, S_IRWXU, S_IRGRP, S_IROTH 29 30 30 31 31 32 VERSION = "0.9.4" 32 REVISION = "145 1"33 REVISION = "1453" 33 34 34 35 # Directories for POSIX operating systems … … 98 99 class umit_install(install): 99 100 def run(self): 100 old_umask = os.umask(0022)101 print ">>> Old system umask:", old_umask102 103 101 install.run(self) 104 102 103 self.set_perms() 105 104 self.fix_paths() 106 105 self.create_uninstaller() … … 141 140 mode = ((os.stat(uninstaller_filename)[ST_MODE]) | 0555) & 07777 142 141 os.chmod(uninstaller_filename, mode) 142 143 def set_perms(self): 144 re_bin = re.compile("(bin)") 145 for output in self.get_outputs(): 146 print ">>> bin:", re_bin.findall(output) 147 if re_bin.findall(output): 148 continue 149 150 if os.path.isdir(output): 151 os.chmod(output, S_IRWXU | \ 152 S_IRGRP | \ 153 S_IXGRP | \ 154 S_IROTH | \ 155 S_IXOTH) 156 else: 157 os.chmod(output, S_IRWXU | \ 158 S_IRGRP | \ 159 S_IROTH) 160 143 161 144 162 def fix_paths(self):
