sarugaku / pip-shims

Compatibility shims for pip versions 8 thru current.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Everything is None on pip 9

uranusjr opened this issue · comments

$ mkdir pip-shims-test
$ cd pip-shims-test/
$ pipenv install pip-shims "pip<10"
[snipped]

$ pipenv run python
>>> import pip_shims
>>> print(pip_shims.VcsSupport)
None
>>> import pip.vcs
>>> print(pip.vcs.VcsSupport)
<class 'pip.vcs.VcsSupport'>
>>>

This seems to only happen if modutil is present.

If you import from pip_shims.shims?

Doesn’t seem to make a difference.

can confirm this happens on old pip

           ireq = pip_shims.shims.install_req_from_line(line)
           TypeError: 'NoneType' object is not callable