diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-02-01 04:42:48 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-02-01 04:42:48 +0300 |
commit | 4499210cb8c3c947708479e4bd9d10370aabaf83 (patch) | |
tree | 051e668a18e29e2c05f522062f885d89b4d1ff2f | |
parent | 5f468e19b9daea4441ceba0eaa8c83d02ab8b15d (diff) | |
download | python-setuptools-git-4499210cb8c3c947708479e4bd9d10370aabaf83.tar.gz |
Issue #29218: Remove unused install_misc command
It has been documented as unused since 6c6844a2fa30 (2000-05-25)
Patch by Eric N. Vander Weele.
-rw-r--r-- | cmd.py | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -401,34 +401,3 @@ class Command: # Otherwise, print the "skip" message else: log.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', (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 |