--- site.py.orig 2017-11-03 14:39:06.000000000 -0700 +++ site.py 2017-11-24 14:53:27.000000000 -0800 @@ -67,7 +67,7 @@ PREFIXES = [sys.prefix, sys.exec_prefix] # Enable per user site-packages directory # set it to False to disable the feature or True to force the feature -ENABLE_USER_SITE = None +ENABLE_USER_SITE = False # for distutils.commands.install # These values are initialized by the getuserbase() and getusersitepackages() @@ -307,15 +307,15 @@ else: sitepackages.append(prefix) sitepackages.append(os.path.join(prefix, "lib", "site-packages")) - if sys.platform == "darwin": - # for framework builds *only* we add the standard Apple - # locations. - from sysconfig import get_config_var - framework = get_config_var("PYTHONFRAMEWORK") - if framework: - sitepackages.append( - os.path.join("/Library", framework, - sys.version[:3], "site-packages")) + #if sys.platform == "darwin": + # # for framework builds *only* we add the standard Apple + # # locations. + # from sysconfig import get_config_var + # framework = get_config_var("PYTHONFRAMEWORK") + # if framework: + # sitepackages.append( + # os.path.join("/Library", framework, + # sys.version[:3], "site-packages")) return sitepackages def addsitepackages(known_paths):