Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py not compatible with pip 10+ #194

Open
mtfurlan opened this issue Feb 13, 2019 · 0 comments
Open

setup.py not compatible with pip 10+ #194

mtfurlan opened this issue Feb 13, 2019 · 0 comments

Comments

@mtfurlan
Copy link

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.
pypa/pip#5154 (comment)

$ ./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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant