Kaydet (Commit) 17f641c1 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Fixed 'select_scheme()' so it doesn't override a directory attribute that's

already been set (eg. by a command-line option).
üst 74ead8ff
......@@ -356,7 +356,9 @@ class install (Command):
# it's the caller's problem if they supply a bad name!
scheme = INSTALL_SCHEMES[name]
for key in ('purelib', 'platlib', 'scripts', 'data'):
setattr (self, 'install_' + key, scheme[key])
attrname = 'install_' + key
if getattr(self, attrname) is None:
setattr(self, attrname, scheme[key])
def _expand_attrs (self, attrs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment