fixes from python-dev feedback

This commit is contained in:
Tarek Ziadé 2010-04-07 13:29:07 +00:00
parent b91b364be9
commit 918c91c15b
1 changed files with 11 additions and 3 deletions

View File

@ -219,9 +219,13 @@ terminator.
Here's an example of a RECORD file (extract):: Here's an example of a RECORD file (extract)::
lib/python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544 lib/python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544
lib/python2.6/site-packages/docutils/__init__.pyc
lib/python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188 lib/python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188
lib/python2.6/site-packages/docutils/core.pyc
lib/python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234 lib/python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234
lib/python2.6/site-packages/roman.pyc
/usr/local/bin/rst2html.py,a4b84aff68aa55f2e9bf70481b943D3,234 /usr/local/bin/rst2html.py,a4b84aff68aa55f2e9bf70481b943D3,234
/usr/local/bin/rst2html.pyc
python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195 python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195
lib/python2.6/site-packages/docutils-0.5.dist-info/RECORD lib/python2.6/site-packages/docutils-0.5.dist-info/RECORD
@ -275,7 +279,7 @@ The ``install`` command of distutils by default creates the REQUESTED
file. It accepts ``--requested`` and ``--no-requested`` options to explicitly file. It accepts ``--requested`` and ``--no-requested`` options to explicitly
specify whether the file is created. specify whether the file is created.
If a package that was already installed on the system as a dependency If a distribution that was already installed on the system as a dependency
is later installed by name, the distutils ``install`` command will is later installed by name, the distutils ``install`` command will
create the REQUESTED file in the .dist-info directory of the existing create the REQUESTED file in the .dist-info directory of the existing
installation. installation.
@ -329,6 +333,10 @@ The new functions added in the ``pkgutil`` module are :
Iterates over all distributions to find out which distributions uses ``path``. Iterates over all distributions to find out which distributions uses ``path``.
``path`` can be a local absolute path or a relative '/'-separated path. ``path`` can be a local absolute path or a relative '/'-separated path.
A local absolute path is an absolute path in which occurrences of '/'
have been replaced by the system separator given by ``os.sep``.
Distribution class Distribution class
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
@ -348,7 +356,7 @@ contained in `METADATA` when it is instanciated.
distribution's METADATA file. distribution's METADATA file.
- ``requested``: A boolean that indicates whether the REQUESTED - ``requested``: A boolean that indicates whether the REQUESTED
metadata file is present (in other words, whether the package was metadata file is present (in other words, whether the distribution was
installed by user request). installed by user request).
And following methods: And following methods:
@ -520,7 +528,7 @@ Adding an Uninstall script
An `uninstall` script is added in Distutils. and is used like this:: An `uninstall` script is added in Distutils. and is used like this::
$ python -m distutils.uninstall packagename $ python -m distutils.uninstall projectname
Notice that script doesn't control if the removal of a distribution breaks Notice that script doesn't control if the removal of a distribution breaks
another distribution. Although it makes sure that all the files it removes another distribution. Although it makes sure that all the files it removes