Author: tarek.ziade Date: Tue Mar 30 23:04:30 2010 New Revision: 79516 Log: using a path relative to sys.prefix, absolute otherwise Modified: peps/trunk/pep-0376.txt Modified: peps/trunk/pep-0376.txt ============================================================================== --- peps/trunk/pep-0376.txt (original) +++ peps/trunk/pep-0376.txt Tue Mar 30 23:04:30 2010 @@ -231,7 +231,8 @@ Each record is composed of three elements: -- the file's full **path** (XXX wait for feedback, rephrasing) +- the file's **path**, relative to ``sys.prefix``. When the + file is not under ``sys.prefix``, an absolute path is used. - the **MD5** hash of the file, encoded in hex. Notice that `pyc` and `pyo` generated files don't have any hash because they are automatically produced @@ -251,12 +252,12 @@ Here's an example of a RECORD file (extract):: - /usr/lib/python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544 - /usr/lib/python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188 - /usr/lib/python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234 + lib/python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544 + lib/python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188 + lib/python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234 /usr/local/bin/rst2html.py,a4b84aff68aa55f2e9bf70481b943D3,234 - /usr/lib/python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195 - /usr/lib/python2.6/site-packages/docutils-0.5.dist-info/RECORD + python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195 + lib/python2.6/site-packages/docutils-0.5.dist-info/RECORD Notice that the `RECORD` file can't contain a hash of itself and is just mentioned here @@ -454,12 +455,12 @@ >>> for path, hash, size in dist.get_installed_files():: ... print '%s %s %d' % (path, hash, size) ... - /usr/lib/python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544 - /usr/lib/python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188 - /usr/lib/python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234 + python2.6/site-packages/docutils/__init__.py,b690274f621402dda63bf11ba5373bf2,9544 + python2.6/site-packages/docutils/core.py,9c4b84aff68aa55f2e9bf70481b94333,66188 + python2.6/site-packages/roman.py,a4b84aff68aa55f2e9bf70481b943D3,234 /usr/local/bin/rst2html.py,a4b84aff68aa55f2e9bf70481b943D3,234 - /usr/lib/python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195 - /usr/lib/python2.6/site-packages/docutils-0.5.dist-info/RECORD + python2.6/site-packages/docutils-0.5.dist-info/METADATA,6fe57de576d749536082d8e205b77748,195 + python2.6/site-packages/docutils-0.5.dist-info/RECORD >>> dist.uses('docutils/core.py') True
participants (1)
-
tarek.ziade