From http://docs.python.org/dist/module-distutils.sysconfig.html :
get_python_lib( [plat_specific[, standard_lib[, prefix]]]) Return the directory for either the general or platform-dependent library installation. If plat_specific is true, the platform-dependent include directory is returned; if false or omitted, the platform-independent directory is returned. If prefix is given, it is used as either the prefix instead of PREFIX, or as the exec-prefix instead of EXEC_PREFIX if plat_specific is true. If standard_lib is true, the directory for the standard library is returned rather than the directory for the installation of third-party extensions. So maybe the fix should be calling get_python_lib(1,1) instead than w/ (0,1). On my machine they return the same thing, but depending on how you packaged python it may be the case they're different. If that doesn't fix it, afaik it's a problem packaging python, or a bug in python's distutils itself. If you want to fix it as Samuel purposed, the real fix would be to try looking for a the library in both the result of get_python_lib(0,1), w/ (1,1) and then in get_python_lib(...) + "/config", and picking the first match. That would be more platform independent. Let me hear about any outcome. Matteo Il giorno mar, 13/03/2007 alle 00.30 +0100, Samuel Thibault ha scritto: > Hi, > > Since you are the authors of the file, here is a forward. > > What do you think about this issue? (please keep [EMAIL PROTECTED] > in Cc for the record) > > Samuel > > ----- Forwarded message from Samuel Thibault <[EMAIL PROTECTED]> ----- > > From: Samuel Thibault <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: autoconf-archive: ac_python_devel.m4 sets useless -L in > PYTHON_LDFLAGS > Date: Mon, 12 Mar 2007 14:51:57 +0100 > Bcc: Samuel Thibault <[EMAIL PROTECTED]> > User-Agent: Mutt/1.5.11 > > Package: autoconf-archive > Version: 20060312-1 > Severity: normal > > Hi, > > When using ac_python_devel.m4, the PYTHON_LDFLAGS variable is set to > -L/usr/lib/python2.4 -lpython2.4, but libpython2.4.so and libpython2.4.a > are provided in /usr/lib/python2.4/config/, not /usr/lib/python2.4/ > > Maybe config/ should just be appended to what get_python_lib(0,1) > returns? > > Samuel -- Matteo Settenvini FSF Associated Member Email : [EMAIL PROTECTED] -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(-) s+:- a-- C++ UL+++ P?>++ L+++>$ E+>+++ W+++ N++ o? w--- O- M++ PS++ PE- Y+>++ PGP+++ t+ 5 X- R tv-- b+++ DI+ D++ G++ e h+ r-- y? ------END GEEK CODE BLOCK------
signature.asc
Description: Questa รจ una parte del messaggio firmata digitalmente