[Distutils] Installation directory

Bastian Kleineidam calvin@cs.uni-sb.de
Tue Oct 24 10:28:02 2000


Hi Paul,


>1. Is it possible for me to specify a default --install-lib value which will
>be used in all installs unless overridden (effectively a site preferences
>file for distutils)? If not, is it feasible to add such a thing?
Config files are supported since May 2000, but not yet documented.
Here is the archive mail:
http://www.python.org/pipermail/distutils-sig/2000-May/001482.html

>2. What happens with binary distributions? (I've not tried building one of
>these yet, so it may be obvious...) Can I install a binary distribution and
>specify --install-lib, or is the bdist_wininst version unable to accept
>command line overrides?
No custom schemes for .exe binary distributions.

>Actually, a third (Python) question: If I do add a "site library" directory,
>what do I need to do to get Python to recognise it by default? Looking at
>the documentation of the site module, it looks like Unix has a site-python
>directory already, via sys.prefix, whereas Windows doesn't. Should/could I
>just set sys.prefix somehow? (Maybe this should be directed to somewhere
>like the Python newsgroup, though).
You can set the environment variable PYTHONPATH to give additional
directories to search for python modules.

Bastian