diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-07-02 12:51:56 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-07-02 12:51:56 (GMT) |
commit | 85bb62872dc2debb12d1e731ea0a36a7106b87ea (patch) | |
tree | a0654c6016a2b8fa1ff55bf9c9b45567bc8a71b7 /Lib/distutils | |
parent | d0ca45536831831713952882b070d00f9af3ee17 (diff) | |
download | cpython-85bb62872dc2debb12d1e731ea0a36a7106b87ea.zip cpython-85bb62872dc2debb12d1e731ea0a36a7106b87ea.tar.gz cpython-85bb62872dc2debb12d1e731ea0a36a7106b87ea.tar.bz2 |
cleaned up the bdist_dumb module
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/bdist_dumb.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py index 7324c6c..3ab0330 100644 --- a/Lib/distutils/command/bdist_dumb.py +++ b/Lib/distutils/command/bdist_dumb.py @@ -7,16 +7,17 @@ $exec_prefix).""" __revision__ = "$Id$" import os + from distutils.core import Command from distutils.util import get_platform from distutils.dir_util import remove_tree, ensure_relative -from distutils.errors import * +from distutils.errors import DistutilsPlatformError from distutils.sysconfig import get_python_version from distutils import log class bdist_dumb (Command): - description = "create a \"dumb\" built distribution" + description = 'create a "dumb" built distribution' user_options = [('bdist-dir=', 'd', "temporary directory for creating the distribution"), @@ -53,11 +54,7 @@ class bdist_dumb (Command): self.skip_build = 0 self.relative = 0 - # initialize_options() - - - def finalize_options (self): - + def finalize_options(self): if self.bdist_dir is None: bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'dumb') @@ -74,11 +71,7 @@ class bdist_dumb (Command): ('dist_dir', 'dist_dir'), ('plat_name', 'plat_name')) - # finalize_options() - - def run (self): - if not self.skip_build: self.run_command('build') @@ -127,7 +120,3 @@ class bdist_dumb (Command): if not self.keep_temp: remove_tree(self.bdist_dir, dry_run=self.dry_run) - - # run() - -# class bdist_dumb |