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: Distutils should not fail if install dir is not in PYTHONPATH
Type: enhancement Stage:
Components: Distutils Versions: Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: andybuckley, exarkun, tarek
Priority: normal Keywords:

Created on 2009-01-26 16:10 by andybuckley, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg80576 - (view) Author: Andy Buckley (andybuckley) Date: 2009-01-26 16:10
At present, distutils exits with an error return code if the directory
that modules are being installed into is not in PYTHONPATH. Since the
install path is not easily obtained (it at least requires running Python
to work out the version string, plus some guesswork about "lib" vs.
"lib64", etc. etc.), it would be nice if this was not a blocking
problem... at least when the --force flag is passed to setup.py

(PS. It would be nice if there *is* a way to get the installation path
from distutils before installing, for the reasons mentioned: that way
automatic install scripts like the one I'm managing could work out the
path, make it and add it to the PYTHONPATH, without worrying about
getting it wrong. Am I just missing something that already exists?)
msg80577 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2009-01-26 16:11
See my comment on issue5070.
msg80967 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-02-02 17:35
closing for the same reason than #5070
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49321
2009-02-02 17:35:30tareksetstatus: open -> closed
messages: + msg80967
2009-01-26 17:27:19tareksetnosy: + tarek
2009-01-26 16:11:49exarkunsetnosy: + exarkun
messages: + msg80577
2009-01-26 16:10:20andybuckleycreate