Merge pull request #113 from jacebrowning/fix-homebrew-shebangs

Prevent invalid shebangs with Homebrew Python
This commit is contained in:
2017-01-26 17:23:19 -05:00
committed by GitHub
+2
View File
@@ -440,6 +440,8 @@ def do_init(dev=False, requirements=False, skip_virtualenv=False, allow_global=F
def pip_install(package_name=None, r=None, allow_global=False):
# Prevent invalid shebangs with Homebrew-installed Python: https://bugs.python.org/issue22490
os.environ.pop('__PYVENV_LAUNCHER__', None)
if r:
c = delegator.run('{0} install -r {1} --require-hashes -i {2}'.format(which_pip(allow_global=allow_global), r, project.source['url']))
else: