From ae209a9d3a058dd88f5b5d4d47eb0d97d1f49596 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 22 Feb 2013 14:52:23 -0800 Subject: improved comment around changed code --- src/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/setup.py b/src/setup.py index 8bf36bd..9037337 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 -- cgit v0.12