[pypy-svn] r59278 - pypy/branch/cbuild-refactor/pypy/translator/c

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Oct 20 19:13:31 CEST 2008


Author: xoraxax
Date: Mon Oct 20 19:13:31 2008
New Revision: 59278

Modified:
   pypy/branch/cbuild-refactor/pypy/translator/c/genc.py
Log:
Removed some windows build related code that was added by amaury in r59191. This should be solved by adding options to the windows platform code. Also the current code requires the user to first compile cpython will all depenencies, run cpython from the build tree to translate rpython programs in order to let the user benefit from these lines.

Modified: pypy/branch/cbuild-refactor/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/cbuild-refactor/pypy/translator/c/genc.py	(original)
+++ pypy/branch/cbuild-refactor/pypy/translator/c/genc.py	Mon Oct 20 19:13:31 2008
@@ -116,23 +116,12 @@
 
     def get_eci(self):
         from distutils import sysconfig
-        python_inc = sysconfig.get_python_inc()
+        python_inc = sysconfig.get_python_inc() # XXX refactor remaining dependencies
+                                                # like obmalloc into separately compilable
+                                                # modules etc.
         pypy_include_dir = py.path.local(autopath.pypydir).join('translator', 'c')
         include_dirs = [python_inc, pypy_include_dir]
-        library_dirs = []
-
-        if sys.platform == 'win32':
-            library_dirs.append(py.path.local(sys.exec_prefix).join('libs'))
-            
-            # Append the source distribution include and library directories,
-            # this allows genc on windows to work in the source tree
-            include_dirs.append(py.path.local(sys.exec_prefix).join('PC'))
-            library_dirs.append(py.path.local(sys.executable).dirpath())
-            
-        return ExternalCompilationInfo(
-            include_dirs=include_dirs,
-            library_dirs=library_dirs,
-        )
+        return ExternalCompilationInfo(include_dirs=include_dirs)
 
     def build_database(self):
         translator = self.translator



More information about the Pypy-commit mailing list