Added notes about the new build_ext --user and site module features
This commit is contained in:
parent
ea752eeaf0
commit
de7124dfe1
10
pep-0370.txt
10
pep-0370.txt
|
@ -161,6 +161,16 @@ when ``PYTHONUSERBASE`` is not set or empty.
|
||||||
``--user`` to install packages in the user site directory. The required
|
``--user`` to install packages in the user site directory. The required
|
||||||
directories are created on demand.
|
directories are created on demand.
|
||||||
|
|
||||||
|
``distutils.command.build_ext`` (setup.py build_ext) gets a new argument
|
||||||
|
``--user`` which adds the include/ and lib/ directories in the user base
|
||||||
|
dirctory to the search paths for header files and libraries. It also
|
||||||
|
adds the lib/ directory to rpath.
|
||||||
|
|
||||||
|
The ``site`` module gets two arguments ``--user-base`` and ``--user-site``
|
||||||
|
to print the path to the user base or user site directory to the standard
|
||||||
|
output. The feature is intended for scripting, e.g.
|
||||||
|
``./configure --prefix $(python2.5 -m site --user-base)``
|
||||||
|
|
||||||
``distutils.sysconfig`` will get methods to access the private variables
|
``distutils.sysconfig`` will get methods to access the private variables
|
||||||
of site. (not yet implemented)
|
of site. (not yet implemented)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue