[ python-Bugs-1205736 ] wrong location for math lib with --prefix
SourceForge.net
noreply at sourceforge.net
Fri May 20 17:21:34 CEST 2005
Bugs item #1205736, was opened at 2005-05-20 17:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1205736&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Richter (thorfdbg)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong location for math lib with --prefix
Initial Comment:
If python2.3 or 2.4 get configured with --prefix, the
math libraries (and other binary libraries) are check
for in the wrong location. Specifically, the prefix
will be will be used twice, giving the wrong path for
the binary object.
How to reproduce:
Configure python with
./configure --prefix=/foo ;or whatever,
make
make install
This will place libraries etc. correctly in
/foo/lib/python2.4.
Afterwards, setup pythonpath accordingly
export
PYTHONPATH="/foo/lib/python2.4:/foo/lib/python2.4/site-packages"
If you start then python, try
>> import math
The result will be that pyhon will not find the math
module.
Debugging with strace reveals that python checks for binary
libraries now in
/foo/lib/python2.4/lib/python2.4
instead of
/foo/lib/python2.4
Setting a softlink in the lib directory works around this
and brings python back to working.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1205736&group_id=5470
More information about the Python-bugs-list
mailing list