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 3togo
Recipients 3togo
Date 2014-05-12.16:09:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399910940.73.0.452990357342.issue21482@psf.upfronthosting.co.za>
In-reply-to
Content
cannot return correct gcc version if the path name contains "space".
Suggest to change to:

$ diff -rupN cygwinccompiler.py.original cygwinccompiler.py
--- cygwinccompiler.py.original 2014-05-12 23:54:01.296303800 +0800
+++ cygwinccompiler.py  2014-05-12 23:59:57.429673400 +0800
@@ -418,14 +418,14 @@ def get_versions():

     gcc_exe = find_executable('gcc')
     if gcc_exe:
-        out = os.popen(gcc_exe + ' -dumpversion','r')
+        out = os.popen('"%s" -dumpversion'%gcc_exe,'r')
         out_string = out.read()
         out.close()
         result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
         if result:
             gcc_version = LooseVersion(result.group(1))
         else:
-            gcc_version = None
+            gcc_version = None
     else:
         gcc_version = None
     ld_exe = find_executable('ld')
History
Date User Action Args
2014-05-12 16:09:003togosetrecipients: + 3togo
2014-05-12 16:09:003togosetmessageid: <1399910940.73.0.452990357342.issue21482@psf.upfronthosting.co.za>
2014-05-12 16:09:003togolinkissue21482 messages
2014-05-12 16:09:003togocreate