question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues using urls as install_requires

See original GitHub issue

When installing python setup.py install it ignores my path, and gets the “best match” from pypi – which its the incorrect version.

setup(
    name='Faker',
    ...
    install_requires=[
        ...
         "validators@https://github.com/kingbuzzman/validators/archive/0.13.0.tar.gz#egg=validators-0.13.0",  # TODO: this will change  # noqa
    ],
    ...
)

How do i get it to stop, and use my link? pip install -e . or pip install . does it correctly.

See here for more info: https://stackoverflow.com/questions/56046146/setup-py-ignores-full-path-dependencies-instead-looks-for-best-match-in-pypi

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kingbuzzmancommented, Oct 22, 2020

@madkote Did you read hoefling’s answer over on overflow?

0reactions
kingbuzzmancommented, Oct 22, 2020

@madkote you must use dependency_links otherwise it will not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Setup.py - dependency as url to TAR or GIT
A single dependency is defined in 2 places: a package name in install_requires and a link in dependency_links to resolve the package dependency ......
Read more >
python setup.py install_requires - You.com | The AI Search ...
After specifying my package this way installation works fine (also with -e settings and without the need to specify --process-dependency-links ). References [1] ......
Read more >
Packaging and distributing projects
url. author. license. classifiers. keywords. project_urls. packages ... To get a listing of available commands, run python setup.py --help-commands .
Read more >
How to Package Python dependencies with PIP setuptools
install_requires is a section within the setup.py file in which you need to input a list of the minimum dependencies needed for a...
Read more >
Advanced Usage of Pipenv - Python Packaging Authority
There are some known issues with using private indexes, related to hashing. ... In prior versions of pipenv you could specify --extra-index-urls to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found