[Python-bugs-list] [ python-Bugs-567605 ] setup.py ignores env and uses wrong libs

noreply@sourceforge.net noreply@sourceforge.net
Tue, 11 Jun 2002 13:28:28 -0700


Bugs item #567605, was opened at 2002-06-11 22:23
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=567605&group_id=5470

Category: Build
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Lehmann (pcg)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py ignores env and uses wrong libs

Initial Comment:
tcl/tk and lot's of other libs reside in /opt/lib and
/opt/include on my system. CPPFLAGS and LDFLAGS reflect
this. python doesn't find anything in /opt, though, as
setup.py completely ignores this.

To debug this, I added a print libdirs after the line:

        lib_dirs = self.compiler.library_dirs +
['/lib', '/usr/lib']

and found that "lib_dirs" contains "/usr/local/lib",
which is completely bogus (but not wrong) (prefix is
/opt/python, my compiler doesn't search for /usr/local
etc.), "/lib" and "/usr/lib".

My system:

linux (2.4), glibc-2.2.5, every package is in
/opt/packagename, symlinked to common subdirs in
/opt/lib etc,,

LDFLAGS=-L/usr/app/lib -L/opt/lib
CPPFLAGS=-I/usr/app/include -I/opt/include
CFLAGS=-O3 -g -pipe -march=pentium -mcpu=pentiumpro
-momit-leaf-frame-pointer



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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-06-11 22:28

Message:
Logged In: YES 
user_id=21627

I don't think this is a bug. If you use a certain
configuration not supported by setup.py, you need to edit
Modules/Setup manually.

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

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