summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2013-02-22 14:52:23 -0800
committerWilliam Deegan <bill@baddogconsulting.com>2013-02-22 14:52:23 -0800
commitae209a9d3a058dd88f5b5d4d47eb0d97d1f49596 (patch)
tree7441161e183f7a840860131039d7588938745a69
parent41a6cedc263023c820f67a408ce46c46926116d8 (diff)
downloadscons-git-ae209a9d3a058dd88f5b5d4d47eb0d97d1f49596.tar.gz
improved comment around changed code
-rw-r--r--src/setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/setup.py b/src/setup.py
index 8bf36bda3..90373372b 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