[pypy-svn] r74536 - pypy/trunk/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Mon May 17 23:28:11 CEST 2010


Author: fijal
Date: Mon May 17 23:28:07 2010
New Revision: 74536

Modified:
   pypy/trunk/pypy/rlib/rlocale.py
Log:
(WildChild) A patch to look for locale dev installed by macports as well


Modified: pypy/trunk/pypy/rlib/rlocale.py
==============================================================================
--- pypy/trunk/pypy/rlib/rlocale.py	(original)
+++ pypy/trunk/pypy/rlib/rlocale.py	Mon May 17 23:28:07 2010
@@ -17,14 +17,19 @@
 
 class CConfig:
     includes = ['locale.h', 'limits.h']
+    include_dirs = []
+
     if HAVE_LANGINFO:
         includes += ['langinfo.h']
     if HAVE_LIBINTL:
         includes += ['libintl.h']
     if sys.platform == 'win32':
         includes += ['windows.h']
+    if sys.platform == 'darwin':
+        include_dirs += ['/opt/local/include']
     _compilation_info_ = ExternalCompilationInfo(
         includes=includes,
+        include_dirs=include_dirs
     )
     HAVE_BIND_TEXTDOMAIN_CODESET = platform.Has('bind_textdomain_codeset')
     lconv = platform.Struct("struct lconv", [



More information about the Pypy-commit mailing list