Issue #29218: Remove unused install_misc command · python/cpython@ef158c3 (original) (raw)
`@@ -401,34 +401,3 @@ def make_file(self, infiles, outfile, func, args,
`
401
401
`# Otherwise, print the "skip" message
`
402
402
`else:
`
403
403
`log.debug(skip_msg)
`
404
``
-
405
``
`-
XXX 'install_misc' class not currently used -- it was the base class for
`
406
``
`-
both 'install_scripts' and 'install_data', but they outgrew it. It might
`
407
``
`-
still be useful for 'install_headers', though, so I'm keeping it around
`
408
``
`-
for the time being.
`
409
``
-
410
``
`-
class install_misc(Command):
`
411
``
`-
"""Common base class for installing some files in a subdirectory.
`
412
``
`-
Currently used by install_data and install_scripts.
`
413
``
`-
"""
`
414
``
-
415
``
`-
user_options = [('install-dir=', 'd', "directory to install the files to")]
`
416
``
-
417
``
`-
def initialize_options (self):
`
418
``
`-
self.install_dir = None
`
419
``
`-
self.outfiles = []
`
420
``
-
421
``
`-
def _install_dir_from(self, dirname):
`
422
``
`-
self.set_undefined_options('install', (dirname, 'install_dir'))
`
423
``
-
424
``
`-
def _copy_files(self, filelist):
`
425
``
`-
self.outfiles = []
`
426
``
`-
if not filelist:
`
427
``
`-
return
`
428
``
`-
self.mkpath(self.install_dir)
`
429
``
`-
for f in filelist:
`
430
``
`-
self.copy_file(f, self.install_dir)
`
431
``
`-
self.outfiles.append(os.path.join(self.install_dir, f))
`
432
``
-
433
``
`-
def get_outputs(self):
`
434
``
`-
return self.outfiles
`