diff options
| author | Tarek Ziade <tarek@ziade.org> | 2010-11-06 22:56:08 +0100 |
|---|---|---|
| committer | Tarek Ziade <tarek@ziade.org> | 2010-11-06 22:56:08 +0100 |
| commit | 97077f42685397e829e4cb3fb42415abbed03574 (patch) | |
| tree | 91857ecacffb641feaf6c52ca74034fb0f1046ba /distutils2/command/cmd.py | |
| parent | ab44c13cd14507c24616145db987ff43cfae64ba (diff) | |
| download | disutils2-97077f42685397e829e4cb3fb42415abbed03574.tar.gz | |
removed install_misc
Diffstat (limited to 'distutils2/command/cmd.py')
| -rw-r--r-- | distutils2/command/cmd.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/distutils2/command/cmd.py b/distutils2/command/cmd.py index 91b5589..39113d8 100644 --- a/distutils2/command/cmd.py +++ b/distutils2/command/cmd.py @@ -461,34 +461,3 @@ class Command(object): # Otherwise, print the "skip" message else: logger.debug(skip_msg) - -# XXX 'install_misc' class not currently used -- it was the base class for -# both 'install_scripts' and 'install_data', but they outgrew it. It might -# still be useful for 'install_headers', though, so I'm keeping it around -# for the time being. - -class install_misc(Command): - """Common base class for installing some files in a subdirectory. - Currently used by install_data and install_scripts. - """ - - user_options = [('install-dir=', 'd', "directory to install the files to")] - - def initialize_options (self): - self.install_dir = None - self.outfiles = [] - - def _install_dir_from(self, dirname): - self.set_undefined_options('install_dist', (dirname, 'install_dir')) - - def _copy_files(self, filelist): - self.outfiles = [] - if not filelist: - return - self.mkpath(self.install_dir) - for f in filelist: - self.copy_file(f, self.install_dir) - self.outfiles.append(os.path.join(self.install_dir, f)) - - def get_outputs(self): - return self.outfiles |
