Merge pull request #5821 from risaacson/issue5781

If a executable is defined but not found the module should fail.
This commit is contained in:
Richard Isaacson 2014-01-29 11:25:35 -08:00
commit c997f03b95

View file

@ -175,7 +175,8 @@ def _get_pip(module, env=None, executable=None):
if os.path.isabs(executable):
pip = executable
else:
candidate_pip_basenames.insert(0, executable)
# If you define your own executable that executable should be the only candidate.
candidate_pip_basenames = [executable]
if pip is None:
if env is None:
opt_dirs = []