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.19:05:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399921523.84.0.3262795148.issue21482@psf.upfronthosting.co.za>
In-reply-to
Content
To prevent system crashes, I have to exclude msvc runtime library

$ diff -rupN cygwinccompiler.py.original cygwinccompiler.py
--- cygwinccompiler.py.original 2014-05-12 23:54:01.296303800 +0800
+++ cygwinccompiler.py  2014-05-13 02:59:37.870414900 +0800
@@ -341,7 +341,7 @@ class Mingw32CCompiler (CygwinCCompiler)

         # Include the appropriate MSVC runtime library if Python was built
         # with MSVC 7.0 or later.
-        self.dll_libraries = get_msvcr()
+        #self.dll_libraries = get_msvcr()

     # __init__ ()

@@ -418,19 +418,19 @@ 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')
     if ld_exe:
-        out = os.popen(ld_exe + ' -v','r')
+        out = os.popen('"%s" -v'%ld_exe,'r')
         out_string = out.read()
         out.close()
         result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
@@ -442,7 +442,7 @@ def get_versions():
         ld_version = None
     dllwrap_exe = find_executable('dllwrap')
     if dllwrap_exe:
-        out = os.popen(dllwrap_exe + ' --version','r')
+        out = os.popen('"%s" --version'%dllwrap_exe,'r')
         out_string = out.read()
         out.close()
         result = re.search(' (\d+\.\d+(\.\d+)*)',out_string)
History
Date User Action Args
2014-05-12 19:05:233togosetrecipients: + 3togo
2014-05-12 19:05:233togosetmessageid: <1399921523.84.0.3262795148.issue21482@psf.upfronthosting.co.za>
2014-05-12 19:05:233togolinkissue21482 messages
2014-05-12 19:05:233togocreate