cpython/Doc/packaging
É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
..
builtdist.rst Improve byte-compilation in packaging to be independent of -O or -B. 2011-11-03 05:08:28 +01:00
commandhooks.rst Improve documentation of packaging hooks 2011-06-19 21:34:16 +02:00
commandref.rst Improve byte-compilation in packaging to be independent of -O or -B. 2011-11-03 05:08:28 +01:00
configfile.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00
examples.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00
extending.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00
index.rst Merge packaging doc fix 2011-06-02 16:43:25 +02:00
introduction.rst Kill trailing whitespace 2011-06-01 20:44:40 +02:00
packageindex.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00
setupcfg.rst Add reST targets to sections of the setup.cfg spec, improve wording 2011-10-19 08:41:07 +02:00
setupscript.rst Document that packaging doesn’t create __init__.py files (#3902). 2011-10-21 07:34:00 +02:00
sourcedist.rst Remove obsolete mentions of the compress program and .Z archives. 2011-08-30 01:19:02 +02:00
tutorial.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00
uploading.rst Add documentation for the packaging module. 2011-06-01 20:42:49 +02:00