]> granicus.if.org Git - python/commit
Clean up byte-compilation code in packaging (#11254 followup).
authorÉric Araujo <merwok@netwok.org>
Mon, 14 Nov 2011 17:10:19 +0000 (18:10 +0100)
committerÉric Araujo <merwok@netwok.org>
Mon, 14 Nov 2011 17:10:19 +0000 (18:10 +0100)
commitf8361623f0e5ab6c6337afcccdb442f285590869
tree91b0d49055dc1046f4b570cc034473feab770205
parentd5d4406c8ebbbdf8a8961fc119be22b15a1c40ad
Clean up byte-compilation code in packaging (#11254 followup).

- Don't use keyword arguments for debug_override; I find it more
  readable to have a comment explaining that True makes pyc and False
  pyo than to write out the non-obvious (when you haven’t read the doc)
  argument name

- Move duplicate code from build_py and install_lib into cmd

- Remove obsolete verbose argument of util.byte_compile

- Remove obsolete passing of -O/-OO to the Python process spawned by
  util.byte_compile (I’ll remove the whole spawning later, after I write
  more tests to check the contents of pyc and pyo files; now that
  byte_compile does not depend on the value of __debug__ in the calling
  Python, we can call py_compile or compileall directly)
Doc/library/packaging.util.rst
Lib/packaging/command/build_py.py
Lib/packaging/command/cmd.py
Lib/packaging/command/install_lib.py
Lib/packaging/tests/test_command_install_lib.py
Lib/packaging/util.py