Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1497b61c
Commit
1497b61c
authored
Mar 22, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped the evil and misguided 'set_peer_option()' method -- it's no
longer needed, and can't possibly work anyways.
parent
066af107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
Lib/distutils/core.py
Lib/distutils/core.py
+0
-20
No files found.
Lib/distutils/core.py
View file @
1497b61c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment