Lack of `install_requires`
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:15 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 addingmatplotlib
,sphinx
, andpillow
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 dopip install sphinx_gallery[mayavi]
.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.