[Patches] [ python-Patches-463656 ] setup.py, --with-includepath, and LD_LIB

noreply@sourceforge.net noreply@sourceforge.net
Fri, 21 Sep 2001 12:12:42 -0700


Patches item #463656, was opened at 2001-09-21 12:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=463656&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Frederic Giacometti (giacometti)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py, --with-includepath, and LD_LIB

Initial Comment:
This patch improves the module detection capability in
setup.py.

The following improvements are implemented:

- directories listed in LD_LIBRARY_PATH are also
searched for shared libraries.

- the --with-includepath option has been added to
configure, to specify additional  non-standard
directories where the include files are to be searched
for.

The corresponding changes were added to setup.py (new
function detect_include(),  find_library_file()
augmented, detect_tkinter() improved)

I retroceeded manually the changes from configure into
configure.in, but I did not run autoconf; you might
want to double-check this.

Sample aplication:
./configure --prefix=/something
--with-includepath='/mgl/apps/include:/mgl/share/include'

With this patch, I get Tkinter to build correctly
without editing the Setup files, with non-standard
tckl/tk 8.0 to 8.3 installations. where the only tcl.h
file is in /mgl/share/include/tcl8.0 (therefore,
tkinter is build with tcl8.0 on this configuration).

FG

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=463656&group_id=5470