From 139c0c0bf9e1d5a789a05628dee7efddd5dfbfbe Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 1 Oct 2015 17:44:15 -0400 Subject: Bug # 2791 - minor change to setup.py makes the package installable with jython. Seems better to check if the current system has the capabilities needed by the logic than to look for posix --- src/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.py b/src/setup.py index fb16bdd..91b7752 100644 --- a/src/setup.py +++ b/src/setup.py @@ -343,7 +343,7 @@ class install_scripts(_install_scripts): self.copy_scons(src, scons_version_bat) # --- distutils copy/paste --- - if os.name == 'posix': + if hasattr(os, 'chmod') and hasattr(os,'stat'): # Set the executable bits (owner, group, and world) on # all the scripts we just installed. for file in self.get_outputs(): -- cgit v0.12