| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a conservative version of SF patch 504889. It uses the log
module instead of calling print in various places, and it ignores the
verbose argument passed to many functions and set as an attribute on
some objects. Instead, it uses the verbosity set on the logger via
the command line.
The log module is now preferred over announce() and warn() methods
that exist only for backwards compatibility.
XXX This checkin changes a lot of modules that have no test suite and
aren't exercised by the Python build process. It will need
substantial testing.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
choice between (compile, no-compile) * (optimize=0, optimize=1,
optimize=2). Details:
- added --no-compile option to complement --compile, which has
been there for ages
- changed --optimize (which never worked) to a value option, which
expects 0, 1, or 2
- renamed 'bytecompile()' method to 'byte_compile()', and beefed
it up to handle both 'compile' and 'optimize' options
- fix '_bytecode_filenames()' to respect the new options
|
|
|
|
| |
pure Python modules to compile.
|
|
|
|
|
| |
'util.byte_compile()'. Currently just reproduces the existing functionality
-- doesn't use any of the fancy features in the new 'byte_compile()'.
|
| |
|
| |
|
|
|
|
| |
easier extensibility).
|
| |
|
|
|
|
| |
compilation).
|
| |
|
|
|
|
| |
consistency.
|
|
|
|
|
|
|
| |
* Command method 'find_peer()' -> 'get_finalized_command()'
* Command method 'run_peer()' -> 'run_command()'
Also deleted the 'get_command_option()' method from Command, and
fixed the one place where it was used (in "bdist_dumb").
|
| |
|
|
|
|
|
| |
have any Python modules to install (rather than bomb when we try to copy
a non-existent directory).
|
|
|
|
|
| |
to ensure that compiled bytecode files are considered part of the output
of the "install_lib" command.
|
|
|
|
| |
have to wade through all the 'build' output when testing installation.
|
|
|
|
| |
or getattr/setattr, is all that's needed.
|
| |
|
|
|
|
|
| |
use global __debug__ flag to determine if compiled files will be ".pyc"
or ".pyo". Tweaked compilation output messages too.
|
|
|
|
|
|
| |
is responsible for installing all Python modules (pure and extensions).
Added 'get_outputs()' in preparation for the 'bdist' command, and
'_mutate_outputs()' to support 'get_outputs()'.
|
| |
|
| |
|
|
|
|
|
| |
cooked up by Fred Drake and me. Only saved for posterity (whoever posterity
is), as it is about to be ditched in favour of GvR's much simpler design.
|
|
|
|
| |
'set_final_options()' to 'finalize_options()'.
|
| |
|
|
|
|
|
| |
command itself: no more of this "FooBar class for foo_bar command"
silliness.
|
|
|
|
|
|
|
| |
'--help-commands' option).
Shuffled imports around in a few command modules to avoid expensive
up-front import of sysconfig (and resulting delays in generating list
of all commands).
|
| |
|
| |
|
|
|
|
|
|
| |
Tweaked some help strings to be consistent with documentation.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
guaranteed to be taken care of for us by the Distribution instance.
|
|
|
|
|
| |
so that pure Python modules are installed to the platform-specific
directory if there are any extension modules in this distribution.
|
| |
|
|
|
|
|
|
|
|
|
| |
of the 'install_py' command rather than 'build_py'. Obviously, this
meant that the 'build_py' and 'install_py' modules had to change; less
obviously, so did 'install' and 'build', since these higher-level
commands must make options available to control the lower-level
commands, and some compilation-related options had to migrate with the
code.
|
|
|
|
|
| |
and 'make_file()'-- that way, the verbose and dry-run flags are
handled for free.
|
|
|