]> granicus.if.org Git - python/commit
bpo-28440: Don't add /Library/Python/3.x/site-packages to sys.path (#5445)
authorNed Deily <nad@python.org>
Tue, 30 Jan 2018 10:14:09 +0000 (05:14 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2018 10:14:09 +0000 (05:14 -0500)
commit763f094b1f0ce2a07768828e78afe9687e9ad3bb
tree76c3a1c1ef107ffd0c0a09ab1f96d786e69539d3
parent67adb31a416864f853772c3e74a06caeadc9b6f1
bpo-28440: Don't add /Library/Python/3.x/site-packages to sys.path (#5445)

No longer add /Library/Python/3.x/site-packages, the Apple-supplied
system Python site-packages directory, to sys.path for macOS framework
builds in case Apple ships a version of Python 3. A similar change
was made earlier to Python 2.7 where it was found that the coupling
between the system Python and a user-installed framework Python often
caused confusion or pip install failures.
Lib/site.py
Lib/test/test_site.py
Misc/NEWS.d/next/macOS/2018-01-30-04-40-12.bpo-28440.W_BUWU.rst [new file with mode: 0644]