By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

7.4 Python configure hosed

P: n/a
There's a line in config/python.m4 which says:

python_libpath=`${PYTHON} -c "import sys; print sys.path[[1]][[5:]]"`

I think what it's trying to do is cut "/usr/" off the front of the path.
However, if PYTHONPATH is set, or for example, python is installed in
/usr/local/, or if there's a site.py file in the lib directory this
produces the incorrect path (e.g. consider PYTHONPATH=/home/srn/lib -
the line produces /srn/lib).

It's a bit of a pain to have to unset PYTHONPATH. It'd be very nasty if
python isn't installed in /usr/.

Stephen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/wUVB4hFS2REFUecRAqGgAJ9VmgussoA4B0zz9WrrStWp7Es0Vw CdHzvu
UxGk7RLCyeydki8wRRLM4n0=
=Wyu3
-----END PGP SIGNATURE-----

Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.