diff options
author | William Deegan <bill@baddogconsulting.com> | 2013-02-22 14:52:23 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2013-02-22 14:52:23 -0800 |
commit | e8b5a3804ce29f7ec278cb72526f9c93a41a97ae (patch) | |
tree | 0ea93d25ee8b07dd6d957aa7b692259683900ff4 | |
parent | 1063705ca2a089bb5094cfcf782c981fe34ce801 (diff) | |
download | scons-e8b5a3804ce29f7ec278cb72526f9c93a41a97ae.tar.gz |
improved comment around changed code
-rw-r--r-- | src/setup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/setup.py b/src/setup.py index 8bf36bda..90373372 100644 --- a/src/setup.py +++ b/src/setup.py @@ -341,6 +341,7 @@ class install_scripts(_install_scripts): # log.info("changing mode of %s", file) pass else: + # Use symbolic versions of permissions so this script doesn't fail to parse under python3.x exec_and_read_permission = stat.S_IXOTH | stat.S_IXUSR | stat.S_IXGRP | stat.S_IROTH | stat.S_IRUSR | stat.S_IRGRP mode_mask = 4095 # Octal 07777 used because python3 has different octal syntax than python 2 mode = ((os.stat(file)[stat.ST_MODE]) | exec_and_read_permission) & mode_mask |