Mercurial > cpython-lru_cache-weakref
diff Lib/packaging/command/install_lib.py @ 72178:28e4cd8fd864
Clean up packaging.util: add __all__, remove some unused functions.
This huge module is the heir of six distutils modules, and contains
a number of miscellaneous functions. I have attempted to help readers
of the source code with an annoted __all__. Removed or deprecated
functions have been removed from the documentation; I’m working on
another patch to document the remaining public functions.
For the curious:
The unzip_file and untar_file were used by (or intended to be used by)
“pysetup install path/to/archive.tar.gz”, but the code presently used
shutil.unpack_archive and an helper function, so I just deleted them.
They’re still in the repository if we need them in the future.
The find_packages function is not used anymore but I want to discuss
module and package auto-discovery (in “pysetup create”) again before
removing it.
subst_vars now lives in sysconfig; rfc822_escape is inlined in
packaging.metadata. Other functions are for internal use only, or
deprecated; I have left them out of __all__ and sprinkled TODO notes
for future cleanups.
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Thu, 01 Sep 2011 05:11:29 +0200 |
| parents | 1a31c3be88b1 |
| children | 60deed9538fa |
line wrap: on
line diff
--- a/Lib/packaging/command/install_lib.py Wed Aug 31 16:52:12 2011 +0200 +++ b/Lib/packaging/command/install_lib.py Thu Sep 01 05:11:29 2011 +0200 @@ -122,7 +122,7 @@ self.get_command_name()) return - from packaging.util import byte_compile + from packaging.util import byte_compile # FIXME use compileall # Get the "--root" directory supplied to the "install_dist" command, # and use it as a prefix to strip off the purported filename
