summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-03 21:38:08 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-03 21:39:44 -0500
commit28ce6807939845e7f3037bdba439c21c5e92fb8d (patch)
tree6a83d72cf94e5ec30554be46f2a7e67e30821ead /setuptools/_distutils/command
parentbdba8e773ee2b1557d2d44157e2642f1de8ab139 (diff)
parent8f2df0bf6f4b4d9a9e3e45e86fa37e8f5fbf0b89 (diff)
downloadpython-setuptools-git-28ce6807939845e7f3037bdba439c21c5e92fb8d.tar.gz
Merge https://github.com/pypa/distutils at 8f2df0bf6.
Diffstat (limited to 'setuptools/_distutils/command')
-rw-r--r--setuptools/_distutils/command/install.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/setuptools/_distutils/command/install.py b/setuptools/_distutils/command/install.py
index c756b6db..18b352fa 100644
--- a/setuptools/_distutils/command/install.py
+++ b/setuptools/_distutils/command/install.py
@@ -471,8 +471,13 @@ class install(Command):
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: