Skip to content

Commit

Permalink
Pin pip to <19 until a more permanent solution can be devised. Ref #1644
Browse files Browse the repository at this point in the history
.
  • Loading branch information
jaraco committed Jan 26, 2019
1 parent 3e23fa7 commit 6671b3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pip-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@
- Avoid the default 'python -m pip' invocation, which causes the current
working directory to be added to the path, which causes problems.
- Ensure pip meets a requisite version.
"""


import sys
import subprocess


def ensure_pip_version(pip_bin, ver):
cmd = [pip_bin, 'install', 'pip ' + ver]
subprocess.check_call(cmd)


def main():
pip_bin = sys.argv[1]
# workaround for #1644
ensure_pip_version(pip_bin, '<19')
cmd = sys.argv[1:]
subprocess.check_call(cmd)

Expand Down

0 comments on commit 6671b3f

Please sign in to comment.