Vinay Sajip added the comment: > Ronald's change ... changed the stub launcher to no longer do a realpath() on > the executable name > which means that sys.executable contains the path to the Python stub launcher > whether or not in a venv
Ronald's change doesn't do a realpath() on the executable name itself, but it *does* do a realpath() on the executable's directory. This seems to be what's causing the problem in Homebrew builds: there are two levels of symlink at play. /usr/local/bin/python3.4 -> /usr/local/opt/python3/bin/python3.4 -> /usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/bin/python3.4 Because of the realpath(), the "wrong" stub launcher (from Homebrew's perspective) gets pointed to by the environment variable. At least, if my understanding is correct. https://github.com/pypa/pip/issues/2031#issuecomment-56294599 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22490> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com