mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Rearranged things so that compilation of .py files is the responsibility
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.
This commit is contained in:
parent
85460a58f8
commit
0f72695da3
5 changed files with 73 additions and 42 deletions
|
@ -43,6 +43,9 @@ class Install (Command):
|
|||
('install-html=', None, "directory for HTML documentation"),
|
||||
('install-info=', None, "directory for GNU info files"),
|
||||
|
||||
# Flags for 'build_py'
|
||||
('compile-py', None, "compile .py to .pyc"),
|
||||
('optimize-py', None, "compile .py to .pyo (optimized)"),
|
||||
]
|
||||
|
||||
def set_default_options (self):
|
||||
|
@ -74,6 +77,9 @@ class Install (Command):
|
|||
self.install_html = None
|
||||
self.install_info = None
|
||||
|
||||
self.compile_py = 1
|
||||
self.optimize_py = 1
|
||||
|
||||
|
||||
def set_final_options (self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue