[Python-checkins] distutils2: removed install_misc

tarek.ziade python-checkins at python.org
Sat Nov 6 22:56:15 CET 2010


tarek.ziade pushed 2807a24968c3 to distutils2:

http://hg.python.org/distutils2/rev/2807a24968c3
changeset:   802:2807a24968c3
tag:         tip
user:        Tarek Ziade <tarek at ziade.org>
date:        Sat Nov 06 22:56:08 2010 +0100
summary:     removed install_misc
files:       distutils2/command/cmd.py

diff --git a/distutils2/command/cmd.py b/distutils2/command/cmd.py
--- a/distutils2/command/cmd.py
+++ b/distutils2/command/cmd.py
@@ -461,34 +461,3 @@
         # 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

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list