<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/</link>
    <language>en-us</language>

    <title>cpython-lru_cache-weakref: Lib/packaging/command/install_lib.py history</title>
    <description>Lib/packaging/command/install_lib.py revision history</description>
    <item>
    <title>Clean up byte-compilation code in packaging (#11254 followup).</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/c10946a17420/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[Clean up byte-compilation code in packaging (#11254 followup).<br/>
<br/>
- Don't use keyword arguments for debug_override; I find it more<br/>
  readable to have a comment explaining that True makes pyc and False<br/>
  pyo than to write out the non-obvious (when you haven’t read the doc)<br/>
  argument name<br/>
<br/>
- Move duplicate code from build_py and install_lib into cmd<br/>
<br/>
- Remove obsolete verbose argument of util.byte_compile<br/>
<br/>
- Remove obsolete passing of -O/-OO to the Python process spawned by<br/>
  util.byte_compile (I’ll remove the whole spawning later, after I write<br/>
  more tests to check the contents of pyc and pyo files; now that<br/>
  byte_compile does not depend on the value of __debug__ in the calling<br/>
  Python, we can call py_compile or compileall directly)]]></description>
    <author>&#201;&#114;&#105;&#99;&#32;&#65;&#114;&#97;&#117;&#106;&#111;&#32;&#60;&#109;&#101;&#114;&#119;&#111;&#107;&#64;&#110;&#101;&#116;&#119;&#111;&#107;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Mon, 14 Nov 2011 18:10:19 +0100</pubDate>
</item>
<item>
    <title>Improve byte-compilation in packaging to be independent of -O or -B.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/dad02a080bbc/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[Improve byte-compilation in packaging to be independent of -O or -B.<br/>
<br/>
The code I fixed to comply with PEP 3147 still had one bug: When run<br/>
under python -O, some paths for pyc files would be pyo, because I called<br/>
imp.cache_from_source without explicit debug_override argument in some<br/>
places, and under -O that would return .pyo (this is well explained in<br/>
the imp docs).  Now all code (util.byte_compile, build_py, install_lib)<br/>
can create .pyo files according to options given by users,<br/>
without interference from the calling Python’s own optimize mode.<br/>
<br/>
On a related topic, I also removed the code that prevented byte<br/>
compilation under python -B.  The rationale is that packaging gives<br/>
control over the creation of pyc files to the user with its own explicit<br/>
option, and the behavior should not be changed if the calling Python<br/>
happens to run with -B for whatever reason.  I will argue that this is a<br/>
bug fix and ask to be allowed to backport this change to distutils.<br/>
<br/>
Finally, I moved one nugget of information about the --compile and<br/>
--optimize options from the source into the doc.  It clears up a<br/>
misunderstanding that I (and maybe other people) had.]]></description>
    <author>&#201;&#114;&#105;&#99;&#32;&#65;&#114;&#97;&#117;&#106;&#111;&#32;&#60;&#109;&#101;&#114;&#119;&#111;&#107;&#64;&#110;&#101;&#116;&#119;&#111;&#107;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Thu, 03 Nov 2011 05:08:28 +0100</pubDate>
</item>
<item>
    <title>More fixes for PEP 3147 compliance in packaging (#11254)</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/1cc4d822123b/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[More fixes for PEP 3147 compliance in packaging (#11254)]]></description>
    <author>&#201;&#114;&#105;&#99;&#32;&#65;&#114;&#97;&#117;&#106;&#111;&#32;&#60;&#109;&#101;&#114;&#119;&#111;&#107;&#64;&#110;&#101;&#116;&#119;&#111;&#107;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Wed, 19 Oct 2011 08:18:05 +0200</pubDate>
</item>
<item>
    <title>Packaging cleanup: remove conditionals for &lt; 2.6 support.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/60deed9538fa/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[Packaging cleanup: remove conditionals for &lt; 2.6 support.<br/>
<br/>
PEP 370 features and sys.dont_write_bytecode are always available<br/>
in 3.3; the distutils2 backport still has the conditionals.<br/>
<br/>
I also renamed an internal misnamed method and fixed a few things<br/>
(“packaging2” name, stray print, unused import, fd leak).]]></description>
    <author>&#201;&#114;&#105;&#99;&#32;&#65;&#114;&#97;&#117;&#106;&#111;&#32;&#60;&#109;&#101;&#114;&#119;&#111;&#107;&#64;&#110;&#101;&#116;&#119;&#111;&#107;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Sat, 17 Sep 2011 03:31:51 +0200</pubDate>
</item>
<item>
    <title>Clean up packaging.util: add __all__, remove some unused functions.</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/28e4cd8fd864/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[Clean up packaging.util: add __all__, remove some unused functions.<br/>
<br/>
This huge module is the heir of six distutils modules, and contains<br/>
a number of miscellaneous functions.  I have attempted to help readers<br/>
of the source code with an annoted __all__.  Removed or deprecated<br/>
functions have been removed from the documentation; I’m working on<br/>
another patch to document the remaining public functions.<br/>
<br/>
For the curious:<br/>
<br/>
The unzip_file and untar_file were used by (or intended to be used by)<br/>
“pysetup install path/to/archive.tar.gz”, but the code presently used<br/>
shutil.unpack_archive and an helper function, so I just deleted them.<br/>
They’re still in the repository if we need them in the future.<br/>
<br/>
The find_packages function is not used anymore but I want to discuss<br/>
module and package auto-discovery (in “pysetup create”) again before<br/>
removing it.<br/>
<br/>
subst_vars now lives in sysconfig; rfc822_escape is inlined in<br/>
packaging.metadata.  Other functions are for internal use only, or<br/>
deprecated; I have left them out of __all__ and sprinkled TODO notes<br/>
for future cleanups.]]></description>
    <author>&#201;&#114;&#105;&#99;&#32;&#65;&#114;&#97;&#117;&#106;&#111;&#32;&#60;&#109;&#101;&#114;&#119;&#111;&#107;&#64;&#110;&#101;&#116;&#119;&#111;&#107;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Thu, 01 Sep 2011 05:11:29 +0200</pubDate>
</item>
<item>
    <title>initial import of the packaging package in the standard library</title>
    <link>https://hg.dopieralski.pl/cpython-lru_cache-weakref/log/1a31c3be88b1/Lib/packaging/command/install_lib.py</link>
    <description><![CDATA[initial import of the packaging package in the standard library]]></description>
    <author>&#84;&#97;&#114;&#101;&#107;&#32;&#90;&#105;&#97;&#100;&#101;&#32;&#60;&#116;&#97;&#114;&#101;&#107;&#64;&#122;&#105;&#97;&#100;&#101;&#46;&#111;&#114;&#103;&#62;</author>
    <pubDate>Thu, 19 May 2011 13:07:25 +0200</pubDate>
</item>

  </channel>
</rss>
