mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fixed 'select_scheme()' so it doesn't override a directory attribute that's
already been set (eg. by a command-line option).
This commit is contained in:
parent
74ead8ff5d
commit
17f641c143
1 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,9 @@ class install (Command):
|
||||||
# it's the caller's problem if they supply a bad name!
|
# it's the caller's problem if they supply a bad name!
|
||||||
scheme = INSTALL_SCHEMES[name]
|
scheme = INSTALL_SCHEMES[name]
|
||||||
for key in ('purelib', 'platlib', 'scripts', 'data'):
|
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):
|
def _expand_attrs (self, attrs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue