[pypy-svn] r59173 - pypy/branch/cbuild-refactor/pypy/translator/platform

afa at codespeak.net afa at codespeak.net
Fri Oct 17 14:35:16 CEST 2008


Author: afa
Date: Fri Oct 17 14:35:15 2008
New Revision: 59173

Modified:
   pypy/branch/cbuild-refactor/pypy/translator/platform/distutils_platform.py
Log:
Give a sensible name to the default DistutilsPlatform object:
it is used to select compilation options.
The base DistutilsPlatform object now works on Windows.


Modified: pypy/branch/cbuild-refactor/pypy/translator/platform/distutils_platform.py
==============================================================================
--- pypy/branch/cbuild-refactor/pypy/translator/platform/distutils_platform.py	(original)
+++ pypy/branch/cbuild-refactor/pypy/translator/platform/distutils_platform.py	Fri Oct 17 14:35:15 2008
@@ -20,8 +20,12 @@
     """ This is a generic distutils platform. I hope it'll go away at some
     point soon completely
     """
+    name = "distutils"
+    
     def __init__(self, cc=None):
         self.cc = cc
+        if self.name == "distutils":
+            self.name = sys.platform
     
     def _ensure_correct_math(self):
         if self.name != 'win32':



More information about the Pypy-commit mailing list