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.

Lack of `install_requires`

See original GitHub issue

I know setup.py notes that not having install_requires is a deliberate decision, but is it possible to revisit that decision?

Right now pip install sphinx-gallery results in an incomplete install–I still need to manually install sphinx, matplotlib, and pillow to have a functional install. While sphinx and matplotlib are a given for my project, I need to now add pillow as a manual install step to my documentation CI builds–and it will break any time dependencies update in the future. Not to mention this becomes a much bigger headache should there be any version-specific needs in the future.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Feb 11, 2019

Nowadays pip allows easy installation of everything, and I tend to find more harm than good done by omitting things from the requires list. I’d be fine adding matplotlib, sphinx, and pillow as dependencies (and adding a CI entry that things can actually work with this setup). Mayavi should be excluded, or added as an optional so people can do pip install sphinx_gallery[mayavi].

1reaction
anntzercommented, Mar 8, 2017

If you do not want pip to ever mess your dependencies, you should just set the PIP_NO_DEPS environment variable, or similarly set ~/.config/pip/pip.conf appropriately (https://pip.pypa.io/en/stable/user_guide/#configuration). This way, you will have no problem whenever installing a package, regardless of whether it declares its requirements correctly or not.

I would thus still suggest that sphinx-gallery does declare install_requires properly, so that those who do want pip to install dependencies can benefit from it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference requirements.txt for the install_requires kwarg in ...
It's blatantly broken. Even when it worked, it's blatantly unnecessary. Since pip defaults to parsing dependencies from setup.py in the absence of requirements....
Read more >
install_requires vs requirements files
install_requires is a setuptools setup.py keyword that should be used to specify what a project minimally needs to run correctly.
Read more >
setuptools takes care of dependency - PyYou Weblog
When you create an egg you can specify yours dependency in setup.py in install_requires section. Setuptools or Distribute take care of that ...
Read more >
wsgi-intercept - Google Code
ID Status Summary 25 New Python 2.x and 3.x single‑source version 24 New setup.py ImportError for compiler (Python 3) 23 New Add "requests" support
Read more >
extreqs - PyPI
Note the lack of space! ... parse_requirements_files from setuptools import setup here = Path(__file__).resolve().parent install_requires, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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