|
From: Ulf v. C. <von...@rz...> - 2002-09-05 11:55:45
|
Michael Str=F6der wrote:
> > plus: i am installing this under a user dir and need to point python =
to
> > use this version rather than the old version which is installed under
> > the python lib dir somewhere. how do i do that?
>
> Use the executable of python which is in your user dir when invoking
> setup.py.
>
> Example:
>
> $ /home/ulf/bin/python setup.py build
> $ /home/ulf/bin/python setup.py install
>
> instead of
>
> $ python setup.py build
> $ python setup.py install
>
> Note that the build also has to be done with your locally installed ver=
sion!
Hi Michael.
Thanks for your help on the warning.
But you got me wrong on the second problem:
I want a python script to use the python-ldap version in my home dir ra=
ther
than the one installed in the usual dir. I set
export
PYTHONPATH=3D/home/ceumern/ldap/python-ldap-2.0.0pre05/build/lib.solaris-=
2.8-sun4u-2.1/
and this is what i get:
bash-2.03$ python -d /home/ceumern/ldap/ldap_test.py
Traceback (most recent call last):
File "/home/ceumern/ldap/ldap_test.py", line 6, in ?
import ldap
File
"/home/ceumern/ldap/python-ldap-2.0.0pre05/build/lib.solaris-2.8-sun4u-2.=
1/ldap/__init__.py",
line 11, in ?
from _ldap import *
ImportError: ld.so.1: python: fatal: libldap.so.2: open failed: No such f=
ile or
directory
when i unset the variable the skript uses the version installed under
python2.1/site-packages/ldap and it works.
there seems to be something wrong with my built version, but i cannot fig=
ure
out what.
regards, Ulf
|