8000 Move _prefix_addition inline, so it's only configurable through sysco… · pypa/distutils@902e204 · GitHub
[go: up one dir, main page]

Skip to content

Commit 902e204

Browse files
committed
Move _prefix_addition inline, so it's only configurable through sysconfig.
1 parent f769018 commit 902e204

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

distutils/command/install.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ class install(Command):
190190

191191
negative_opt = {'no-compile' : 'compile'}
192192

193-
# Allow Fedora to add components to the prefix
194-
_prefix_addition = getattr(sysconfig, '_prefix_addition', "")
195-
196193
def initialize_options(self):
197194
"""Initializes options."""
198195
# High-level options: these select both an installation base
@@ -473,10 +470,13 @@ def finalize_unix(self):
473470
raise DistutilsOptionError(
474471
"must not supply exec-prefix without prefix")
475472

473+
# Allow Fedora to add components to the prefix
474+
_prefix_addition = getattr(sysconfig, '_prefix_addition', "")
475+
476476
self.prefix = (
477-
os.path.normpath(sys.prefix) + self._prefix_addition)
477+
os.path.normpath(sys.prefix) + _prefix_addition)
478478
self.exec_prefix = (
479-
os.path.normpath(sys.exec_prefix) + self._prefix_addition)
479+
os.path.normpath(sys.exec_prefix) + _prefix_addition)
480480

481481
else:
482482
if self.exec_prefix is None:

0 commit comments

Comments
 (0)
0