guyzmo / git-repo

Git-Repo: CLI utility to manage git services from your workspace
https://webchat.freenode.net/?channels=#git-repo
Other
842 stars 86 forks source link

setup.py not compatible with pip 10+ #194

Open mtfurlan opened 5 years ago

mtfurlan commented 5 years ago

setup.py uses pip as a module, which is not how pip wants to be used so they changed the internal API to force people to use pip correctly. https://github.com/pypa/pip/issues/5154#issuecomment-378197307

$ ./var/bin/pip --version
pip 19.0.2 from /tmp/git-repo/var/lib/python3.5/site-packages/pip (python 3.5)
$ ./var/bin/pip install -r requirements-test.txt 
Obtaining file:///tmp/git-repo (from -r requirements-test.txt (line 2))
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/git-repo/setup.py", line 169, in <module>
        install_requires=requirements(),
      File "/tmp/git-repo/setup.py", line 125, in requirements
        requirements = pip.req.parse_requirements(
    AttributeError: module 'pip' has no attribute 'req'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/git-repo/