summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scipy_distutils/exec_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy_distutils/exec_command.py b/scipy_distutils/exec_command.py
index f172b2a74..6d482e269 100644
--- a/scipy_distutils/exec_command.py
+++ b/scipy_distutils/exec_command.py
@@ -126,7 +126,7 @@ def find_executable(exe, path=None):
orig_exe = exe
if path is None:
path = os.environ.get('PATH',os.defpath)
- if os.name=='posix':
+ if os.name=='posix' and sys.version[:3]>'2.1':
realpath = os.path.realpath
else:
realpath = lambda a:a