8000 Merge pull request #70 from hroncok/fedora_hack · pypa/distutils@8f2df0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f2df0b

Browse files
authored
Merge pull request #70 from hroncok/fedora_hack
Incorporate Fedora's distutil patch
2 parents a8d097a + 58ccfa5 commit 8f2df0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

distutils/command/install.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,13 @@ def finalize_unix(self):
471471
raise DistutilsOptionError(
472472
"must not supply exec-prefix without prefix")
473473

474-
self.prefix = os.path.normpath(sys.prefix)
475-
self.exec_prefix = os.path.normpath(sys.exec_prefix)
474+
# Allow Fedora to add components to the prefix
475+
_prefix_addition = getattr(sysconfig, '_prefix_addition', "")
476+
477+
self.prefix = (
478+
os.path.normpath(sys.prefix) + _prefix_addition)
479+
self.exec_prefix = (
480+
os.path.normpath(sys.exec_prefix) + _prefix_addition)
476481

477482
else:
478483
if self.exec_prefix is None:

0 commit comments

Comments
 (0)
0