diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-10-08 05:02:59 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-10-08 05:02:59 +0000 |
commit | 433a26a515a3c3839ba0a9424d18025c9b6019a1 (patch) | |
tree | 96288a55e842b616b2f2e374adaa8e887b522eba /package/python/python-2.4-002-cross-compile.patch | |
parent | 8a12bab608cb8f8ab3d009966c34758d797c7443 (diff) | |
download | buildroot-novena-433a26a515a3c3839ba0a9424d18025c9b6019a1.tar.gz buildroot-novena-433a26a515a3c3839ba0a9424d18025c9b6019a1.zip |
Rename patches to include Python 2.4 version, in preparation for adding 2.5
Diffstat (limited to 'package/python/python-2.4-002-cross-compile.patch')
-rw-r--r-- | package/python/python-2.4-002-cross-compile.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/python/python-2.4-002-cross-compile.patch b/package/python/python-2.4-002-cross-compile.patch new file mode 100644 index 000000000..207335a5e --- /dev/null +++ b/package/python/python-2.4-002-cross-compile.patch @@ -0,0 +1,36 @@ +--- 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: ++ add_dir_to_list(self.compiler.library_dirs, dir) + + # Add paths to popular package managers on OS X/darwin + if sys.platform == "darwin": +@@ -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. +- lib_dirs = self.compiler.library_dirs + [ +- '/lib64', '/usr/lib64', +- '/lib', '/usr/lib', +- ] +- inc_dirs = self.compiler.include_dirs + ['/usr/include'] ++ lib_dirs = self.compiler.library_dirs ++ inc_dirs = self.compiler.include_dirs + exts = [] + + platform = self.get_platform() |