summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-22 00:31:37 (GMT)
committerGreg Ward <gward@python.net>2000-03-22 00:31:37 (GMT)
commit1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c (patch)
treefe83b1239fe78a4b30155e26c0f9d2fbdfd7fc3a /Lib
parent066af1074dfed4f7a6538692433ba04995dd7509 (diff)
downloadcpython-1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c.zip
cpython-1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c.tar.gz
cpython-1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c.tar.bz2
Dropped the evil and misguided 'set_peer_option()' method -- it's no
longer needed, and can't possibly work anyways.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/core.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 2f3a36d..df36467 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -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