This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Aaron.Meurer
Recipients Aaron.Meurer, dstufft, eric.araujo, paugier
Date 2014-09-24.22:50:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411599058.68.0.824824334523.issue21821@psf.upfronthosting.co.za>
In-reply-to
Content
The issue is that that the Anaconda gcc on Windows is a bat file, so it can't find it. Another fix would be to use find_executable. This is because Anaconda has patched find_executalbe (which it also would be good to get backported)

diff --git Lib/distutils/spawn.py Lib/distutils/spawn.py
index b1c5a44..4703f00 100644
--- Lib/distutils/spawn.py
+++ Lib/distutils/spawn.py
@@ -156,17 +156,16 @@ def find_executable(executable, path=None):
         path = os.environ['PATH']

     paths = path.split(os.pathsep)
-    base, ext = os.path.splitext(executable)
-
-    if (sys.platform == 'win32') and (ext != '.exe'):
-        executable = executable + '.exe'
-
-    if not os.path.isfile(executable):
-        for p in paths:
-            f = os.path.join(p, executable)
-            if os.path.isfile(f):
-                # the file exists, we have a shot at spawn working
-                return f
-        return None
-    else:
-        return executable
+
+    for ext in '.exe', '.bat', '':
+        newexe = executable + ext
+
+        if os.path.isfile(newexe):
+            return newexe
+        else:
+            for p in paths:
+                f = os.path.join(p, newexe)
+                if os.path.isfile(f):
+                    # the file exists, we have a shot at spawn working
+                    return f
+    return None
History
Date User Action Args
2014-09-24 22:50:58Aaron.Meurersetrecipients: + Aaron.Meurer, eric.araujo, dstufft, paugier
2014-09-24 22:50:58Aaron.Meurersetmessageid: <1411599058.68.0.824824334523.issue21821@psf.upfronthosting.co.za>
2014-09-24 22:50:58Aaron.Meurerlinkissue21821 messages
2014-09-24 22:50:58Aaron.Meurercreate