svn commit: trunk/buildroot/package/python
Author: aldot
Date: 2007-01-23 09:18:54 -0800 (Tue, 23 Jan 2007) New Revision: 17489
Log:
- fix breakage that got introduced by a malformed context diff. Sorry..
Modified:
trunk/buildroot/package/python/python-002-cross-compile.patch trunk/buildroot/package/python/python-010-disable_modules_and_ssl.patch trunk/buildroot/package/python/python.mk
Changeset:
Modified: trunk/buildroot/package/python/python-002-cross-compile.patch
===================================================================
buildroot/package/python/python-002-cross-compile.patch +12 -20
@@ -1,26 +1,18 @@ -diff -rduNp Python-2.4.2-001/setup.py Python-2.4.2/setup.py ---- Python-2.4.2-001/setup.py 2007-01-22 19:37:08.000000000 +0100 -+++ Python-2.4.2/setup.py 2007-01-22 19:41:47.000000000 +0100 -@@ -20,6 +20,14 @@ disabled_module_list = [] - def add_dir_to_list(dirlist, dir): - """Add the directory 'dir' to the list 'dirlist' (at the front) if - 1) 'dir' is not already in 'dirlist' -+ modules_include_dirs = os.environ["PYTHON_MODULES_INCLUDE"].split() -+except KeyError: -+ modules_include_dirs = ['/usr/include'] -+try: -+ modules_lib_dirs = os.environ["PYTHON_MODULES_LIB"].split() -+except KeyError: -+ modules_lib_dirs = ['/usr/lib'] -+try: - 2) 'dir' actually exists, and is a directory.""" - if dir is not None and os.path.isdir(dir) and dir not in dirlist: - dirlist.insert(0, dir) -@@ -239,7 +247,10 @@ class PyBuildExt(build_ext): +--- Python-2.4.2-001/setup.py 2007-01-23 16:18:37.000000000 +0100 ++++ Python-2.4.2/setup.py 2007-01-23 16:26:43.000000000 +0100 +@@ -239,7 +239,18 @@ return sys.platform def detect_modules(self): - # Ensure that /usr/local is always used ++ try: ++ modules_include_dirs = os.environ["PYTHON_MODULES_INCLUDE"].split() ++ except KeyError: ++ modules_include_dirs = ['/usr/include'] ++ try: ++ modules_lib_dirs = os.environ["PYTHON_MODULES_LIB"].split() ++ except KeyError: ++ modules_lib_dirs = ['/usr/lib'] + for dir in modules_include_dirs: + add_dir_to_list(self.compiler.include_dirs, dir) + for dir in modules_lib_dirs:
@@ -28,7 +20,7 @@ # Add paths to popular package managers on OS X/darwin if sys.platform == "darwin": -@@ -258,11 +269,8 @@ class PyBuildExt(build_ext): +@@ -258,11 +269,8 @@ # lib_dirs and inc_dirs are used to search for files; # if a file is found in one of those directories, it can # be assumed that no additional -I,-L directives are needed.
Modified: trunk/buildroot/package/python/python-010-disable_modules_and_ssl.patch
===================================================================
buildroot/package/python/python-010-disable_modules_and_ssl.patch +3 -3
@@ -22,9 +22,9 @@ def detect_modules(self): + global disable_ssl - for dir in modules_include_dirs: - add_dir_to_list(self.compiler.include_dirs, dir) - for dir in modules_lib_dirs: + try: + modules_include_dirs = os.environ["PYTHON_MODULES_INCLUDE"].split() + except KeyError: @@ -468,7 +476,8 @@ class PyBuildExt(build_ext): ] )
Modified: trunk/buildroot/package/python/python.mk
===================================================================
buildroot/package/python/python.mk +31 -20
102 lines not on this page · raw message