Shebang length exceeded in pip executable
rmb938 opened this issue · 3 comments
See the following issue on pip: pypa/pip#1773
The accepted solution seems to be running the following:
/some/path/to/python -m pip
I would make a PR but I am not sure on how you want to go about supporting that.
An interesting problem that I'd never considered. Have you run into this personally?
If we could have some tests that show it breaks with paths longer than BINPRM_BUF_SIZE
, and changing the invocation of pip
to run as a module doesn't break anything, that should be OK.
Could we just change _pip_rpath()
to instead search for the python
executable and return that + ['-m', 'pip']
?
Yea, I am running into it while testing an application in jenkins that just happens to have really long path names.
I can get those changes in and a pull request made.
Awesome, thank you Ryan. I have released version 2.1.13 that includes this fix.