Closed strk closed 6 years ago
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
successfully installs warrant-ext so I guess this issue should go to pip, not here...
This is not pip's fault. The official docs warn against using pip's internals, such as pip.req
in this case. Version 10 of pip was just released and broke most code using their internal APIs, as announced here: Announcement: Pip 10 is coming, and will move all internal APIs.
One solution would be to manually list the requirements in setup.py
instead of parsing them from requirements.txt
. Another solution would be to use the packaging
package and their Requirements
API: https://packaging.pypa.io/en/latest/requirements/
A more direct fix would be this simple function to replace the pip.req.parse_requirements()
:
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
This is fixed in develop and will be in v0.7.