]> granicus.if.org Git - python/commitdiff
Dropped the evil and misguided 'set_peer_option()' method -- it's no
authorGreg Ward <gward@python.net>
Wed, 22 Mar 2000 00:31:37 +0000 (00:31 +0000)
committerGreg Ward <gward@python.net>
Wed, 22 Mar 2000 00:31:37 +0000 (00:31 +0000)
longer needed, and can't possibly work anyways.

Lib/distutils/core.py

index 2f3a36d7d0f62f109bee7f8c7010b0d033fa7a23..df3646765f46a030a16a4274e1b638f1971620a0 100644 (file)
@@ -851,26 +851,6 @@ class Command:
             raise DistutilsOptionError, "unknown option %s" % name
 
 
-    def set_peer_option (self, command, option, value):
-        """Attempt to simulate a command-line override of some option
-           value in another command.  Finds the command object for
-           'command', sets its 'option' to 'value', and unconditionally
-           calls 'finalize_options()' on it: this means that some command
-           objects may have 'finalize_options()' invoked more than once.
-           Even so, this is not entirely reliable: the other command may
-           already be initialized to its satisfaction, in which case the
-           second 'finalize_options()' invocation will have little or no
-           effect."""
-
-        # XXX this won't work -- must call finalize_option to work, but
-        # calling finalize_option is wrong (it's only supposed to be called
-        # once).  Where is this needed?!??!
-
-        cmd_obj = self.distribution.find_command_obj (command)
-        cmd_obj.set_option (option, value)
-        cmd_obj.finalize_options ()
-
-
     def find_peer (self, command, create=1):
         """Wrapper around Distribution's 'find_command_obj()' method:
            find (create if necessary and 'create' is true) the command