Skip to content

Setuptools install fails with PEP508 URLs #1983

@davidwyld

Description

@davidwyld

setuptools v 45.1.0
pip v 20.0.2

Running python setup.py install for a setup.py which includes PEP508 format URLs in the install_requires field results in failure.
for example if keras @ https://github.com/MarcBS/keras/archive/master.zip is in the install_requires field then setuptools fails to find it, and looks on PyPI instead, installing a matching package (in this case 'keras').
However, running pip install . for the same setup.py succeeds, similarly with pip install keras @ https://github.com/MarcBS/keras/archive/master.zip.

If setuptools always uses pip to install dependencies, then why does it fail for PEP508 URL dependencies when pip is able to do this?

In summary:

  • pip install . works ✔️
  • pip install 'keras @ https://github.com/MarcBS/keras/archive/master.zip' works ✔️
  • python setup.py install fails ❌

(further to this, PyPI throws an error when uploading a package with a setup.py containing PEP 508 dependency links)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions