summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-05-02 21:39:13 (GMT)
committerGreg Ward <gward@python.net>1999-05-02 21:39:13 (GMT)
commit0f72695da324d4cc24ebbeb4873c23d01f97f861 (patch)
tree4ea1e1c5332f2957f923c49e5b43d1f921c9fb6f /Lib/distutils/command/build.py
parent85460a58f8935b56ad5fa3aae5c3545a444d0ace (diff)
downloadcpython-0f72695da324d4cc24ebbeb4873c23d01f97f861.zip
cpython-0f72695da324d4cc24ebbeb4873c23d01f97f861.tar.gz
cpython-0f72695da324d4cc24ebbeb4873c23d01f97f861.tar.bz2
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.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r--Lib/distutils/command/build.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index 7886092..d0e939e 100644
--- a/Lib/distutils/command/build.py
+++ b/Lib/distutils/command/build.py
@@ -15,10 +15,6 @@ class Build (Command):
options = [('basedir=', 'b', "base directory for build library"),
('libdir=', 'l', "directory for platform-shared files"),
('platdir=', 'p', "directory for platform-specific 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):
@@ -28,9 +24,6 @@ class Build (Command):
self.libdir = None
self.platdir = None
- self.compile_py = 1
- self.optimize_py = 1
-
def set_final_options (self):
# 'libdir' and 'platdir' just default to 'lib' and 'plat' under
# the base build directory