Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #70 from hroncok/fedora_hack
Browse files Browse the repository at this point in the history
Incorporate Fedora's distutil patch
  • Loading branch information
jaraco committed Dec 4, 2021
2 parents a8d097a + 58ccfa5 commit 8f2df0b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions distutils/command/install.py
Expand Up @@ -471,8 +471,13 @@ def finalize_unix(self):
raise DistutilsOptionError(
"must not supply exec-prefix without prefix")

self.prefix = os.path.normpath(sys.prefix)
self.exec_prefix = os.path.normpath(sys.exec_prefix)
# Allow Fedora to add components to the prefix
_prefix_addition = getattr(sysconfig, '_prefix_addition', "")

self.prefix = (
os.path.normpath(sys.prefix) + _prefix_addition)
self.exec_prefix = (
os.path.normpath(sys.exec_prefix) + _prefix_addition)

else:
if self.exec_prefix is None:
Expand Down

0 comments on commit 8f2df0b

Please sign in to comment.