cpython/Lib/packaging/command
Éric Araujo 880801501b Improve byte-compilation in packaging to be independent of -O or -B.
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs).  Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.

On a related topic, I also removed the code that prevented byte
compilation under python -B.  The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason.  I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.

Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc.  It clears up a
misunderstanding that I (and maybe other people) had.
2011-11-03 05:08:28 +01:00
..
__init__.py The value is the dotted module name to the command class. 2011-09-13 08:26:25 -06:00
bdist.py Remove obsolete mentions of the compress program and .Z archives. 2011-08-30 01:19:02 +02:00
bdist_dumb.py Final bag of small changes coming from distutils2. 2011-09-19 15:12:23 +02:00
bdist_msi.py Cleanup in packaging: super considered super 2011-10-14 17:04:39 +02:00
bdist_wininst.py Fix usage of bytes in packaging's bdist_wininst. 2011-09-10 18:14:08 +02:00
build.py Fix typo “seperate” 2011-11-03 00:13:05 +01:00
build_clib.py Make a number of small changes to ease the backport to distutils2 2011-09-18 20:11:48 +02:00
build_ext.py Packaging cleanup: remove conditionals for < 2.6 support. 2011-09-17 03:31:51 +02:00
build_py.py Improve byte-compilation in packaging to be independent of -O or -B. 2011-11-03 05:08:28 +01:00
build_scripts.py A few style changes originally done in the distutils2 repo 2011-09-18 23:12:30 +02:00
check.py Fix format of warnings from the packaging check command 2011-06-02 14:54:44 +02:00
clean.py
cmd.py Make TypeError message from Command.__init__ more useful 2011-07-29 02:32:41 +02:00
command_template
config.py packaging: use with open() instead of try/finally: close 2011-05-19 15:51:27 +02:00
install_data.py
install_dist.py Remove two unneeded attributes in packaging 2011-09-21 16:28:03 +02:00
install_distinfo.py Fix writing of the RESOURCES file by packaging (#12386) 2011-10-14 16:58:23 +02:00
install_headers.py
install_lib.py Improve byte-compilation in packaging to be independent of -O or -B. 2011-11-03 05:08:28 +01:00
install_scripts.py
register.py Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive code 2011-09-19 16:21:37 +02:00
sdist.py Fix sdist to always include setup.cfg (#11092), to comply with the spec 2011-06-06 21:55:43 +02:00
test.py
upload.py Clean up packaging.util: add __all__, remove some unused functions. 2011-09-01 05:11:29 +02:00
upload_docs.py Make a number of small changes to ease the backport to distutils2 2011-09-18 20:11:48 +02:00
wininst-6.0.exe
wininst-7.1.exe
wininst-8.0.exe
wininst-9.0-amd64.exe
wininst-9.0.exe
wininst-10.0-amd64.exe
wininst-10.0.exe