]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #491107: Cygwin setup.py import workaround patch
authorJason Tishler <jason@tishler.net>
Fri, 21 Feb 2003 12:18:17 +0000 (12:18 +0000)
committerJason Tishler <jason@tishler.net>
Fri, 21 Feb 2003 12:18:17 +0000 (12:18 +0000)
Back patched to the 2.2.x branch.

setup.py

index 4decb2af723b19217ffc856061e31b48351b83d7..243481c73afd681b5e7ef1922ecf154e531ea900 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -161,6 +161,12 @@ class PyBuildExt(build_ext):
                 'WARNING: skipping import check for Carbon-based "%s"' %
                 ext.name)
             return
+        # Workaround for Cygwin: Cygwin currently has fork issues when many
+        # modules have been imported
+        if self.get_platform() == 'cygwin':
+            self.announce('WARNING: skipping import check for Cygwin-based "%s"'
+                % ext.name)
+            return
         ext_filename = os.path.join(
             self.build_lib,
             self.get_ext_filename(self.get_ext_fullname(ext.name)))