This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: makes setup.py search sys.prefix
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: mwh Nosy List: gvanrossum, mwh, nobody
Priority: normal Keywords: patch

Created on 2001-05-01 21:24 by anonymous, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
setup.py.patch nobody, 2001-05-01 21:24 patch for setup.py
Messages (6)
msg36489 - (view) Author: Nobody/Anonymous (nobody) Date: 2001-05-01 21:24
It's useful to have setup.py search the lib and include
directories in sys.prefix before it checks /usr/local.
That way, if you are building Python into a custom
location and want it to use the the libraries installed
there rather than the system defaults, you can give the
--prefix option to configure and setup.py will search
that path first.
msg36490 - (view) Author: Nobody/Anonymous (nobody) Date: 2001-06-01 15:19
Logged In: NO 

I totally agree. I'm building for hard hat linux on a 
debian host, and the implicit search in /usr/lib is 
totally the wrong thing to do in this case.
msg36491 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-12-10 15:59
Logged In: YES 
user_id=6380

Michael, can you have a look at this for Python 2.3 (or
2.2.1)?
msg36492 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2001-12-10 16:10
Logged In: YES 
user_id=6656

Umm, yeah sure.

I think I'd rather use sysconfig.get_config_var("LIBDIR")
than sys.prefix+"/lib", though.
msg36493 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2001-12-23 22:02
Logged In: YES 
user_id=6656


msg36494 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-01-17 15:51
Logged In: YES 
user_id=6656

Right, I've checked something similar in, as revision 1.75
of setup.py.

I did this yesterday, but sf was playing silly buggers.
History
Date User Action Args
2022-04-10 16:04:01adminsetgithub: 34445
2001-05-01 21:24:58anonymouscreate