[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#338572: FHS: Python distutils should be configured to install under /usr/local by default



Package: python
Version: 2.3.5-3

This bug is filed to python, but should apply to python2.1, python2.2,
python2.3, python2.4, and future Python versions.

Filesystem Hierarchy Standard says:
The /usr/local hierarchy is for use by the system administrator when
installing software locally.

Installing Python Modules says: (section 3.2)
Consider that many Linux distributions put Python in /usr, rather
than the more traditional /usr/local. This is entirely appropriate,
since in those cases Python is part of the system rather than a local
add-on. However, if you are installing Python modules from source, you
probably want them to go in /usr/local/lib/python2.X rather than
/usr/lib/python2.X. This can be done with... (snip)

Instead of referring confused users to the distutils manual all the time,
Debian's Python should be configured to install under /usr/local when
using distutils to do local install by default.

This can be done by shipping distutils configuration file, documented
in "Installing Python Modules" section 5.

Its location should be $prefix/lib/python$ver/distutils/distutils.cfg.

The distutils configuration files are grouped into sections. There is
one section for each distutils command. Each section consists of one
option per line, specified as option=value. (section 5.2 rephrase)

As commandline should be python setup.py install --prefix=/usr/local,
converted to configuration file, this becomes:

[install]
prefix = /usr/local

Thanks for reading.

Seo Sanghyeon



Reply to: