bpo-30804: fix macOS build with framework enabled. (#2516)

This commit is contained in:
INADA Naoki 2017-07-01 02:38:02 +09:00 committed by Victor Stinner
parent 73528640ff
commit 5e742fa922
1 changed files with 2 additions and 2 deletions

View File

@ -343,8 +343,8 @@ def getsitepackages(prefixes=None):
# for framework builds *only* we add the standard Apple locations.
if sys.platform == "darwin" and sys._framework:
sitepackages.append(
os.path.join("/Library", framework,
'%d.%d' % sys.version_info[:2], "site-packages"))
os.path.join("/Library", sys._framework,
'%d.%d' % sys.version_info[:2], "site-packages"))
return sitepackages
def addsitepackages(known_paths, prefixes=None):