Showing content from http://mail.python.org/pipermail/python-dev/attachments/20031028/78f07782/python-modules-oz1.bin below:
# ------------------------------------------------------------------------ Patch: python-modules-oz For: Python 2.2.2 From: Michael 'Mickey' Lauer Desc: Adds some modifications to support building with OpenZaurus This patch introduces a modification of the include and library dirs. During the cross compile, we need to supply a completely different set of include and library directories, because the buildroot is not on / but rather on $(STAGING_DIR). This will be taken care of when $CROSS_COMPILE (see python-crosscompile.patch) is set to "yes". The check for Tkinter has been also disabled. # ------------------------------------------------------------------------ --- setup.py.orig 2002-11-24 03:28:26.000000000 +0100 +++ setup.py 2002-11-24 03:34:14.000000000 +0100 @@ -211,8 +211,13 @@ # 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 + ['/lib', '/usr/lib'] - inc_dirs = self.compiler.include_dirs + ['/usr/include'] + if os.getenv( "CROSS_COMPILE", "no" ) == "yes": + staging_dir, staging_bindir, staging_libdir = os.getenv( "STAGING_DIR" ), os.getenv( "STAGING_BINDIR" ), os.getenv( "STAGING_LIBDIR" ) + lib_dirs = [ staging_libdir ] + self.compiler.library_dirs + inc_dirs = ["%s/include" % staging_dir ] + self.compiler.include_dirs + else: + lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib'] + inc_dirs = self.compiler.include_dirs + ['/usr/include'] exts = [] platform = self.get_platform() @@ -669,7 +674,7 @@ self.extensions.extend(exts) # Call the method for detecting whether _tkinter can be compiled - self.detect_tkinter(inc_dirs, lib_dirs) + #self.detect_tkinter(inc_dirs, lib_dirs) def detect_tkinter(self, inc_dirs, lib_dirs):
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4