[pypy-svn] r61547 - pypy/trunk/pypy/translator/platform

afa at codespeak.net afa at codespeak.net
Wed Feb 4 13:57:54 CET 2009


Author: afa
Date: Wed Feb  4 13:57:53 2009
New Revision: 61547

Modified:
   pypy/trunk/pypy/translator/platform/windows.py
Log:
Fix platform.compile on Windows when run with pypy-c.


Modified: pypy/trunk/pypy/translator/platform/windows.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/windows.py	(original)
+++ pypy/trunk/pypy/translator/platform/windows.py	Wed Feb  4 13:57:53 2009
@@ -101,7 +101,11 @@
             # The following symbol is used in c/src/stack.h
             self.cflags.append('/DMAX_STACK_SIZE=%d' % (stack_size - 1024))
 
-        self.add_cpython_dirs = True
+        if hasattr(sys, 'exec_prefix'):
+            self.add_cpython_dirs = True
+        else:
+            # We are certainly running pypy-c
+            self.add_cpython_dirs = False
 
     def _preprocess_dirs(self, include_dirs):
         if self.add_cpython_dirs:



More information about the Pypy-commit mailing list