4 ms·
> Currently working on a project with 200+ requirements in requirements.txt and growing. That's incredible. I've worked on some very large python projects befo
by AnkhMorporkian 10y ago
> Currently working on a project with 200+ requirements in requirements.txt and growing.
That's incredible. I've worked on some very large python projects before, but 200? That's pure insanity. Can I ask what that project does? I just can't imagine a project where you'd need 200 libraries.
- dkarapetyan 10y agoI can't either. I'm surprised every day. The app is just another generic CRUD enterprise thing. I guess in that regard it's not bad at all. I've seen Java projects with way more requirements.
- ebola1717 10y agoEh, in Ruby, just installing Rails is like 80 dependencies. Would be surprised if Django wasn't 40+
- jokamoto 10y agoDjango itself has no requirements besides the standard library: % pip freeze Django==1.10 That's after a pip install in a fresh virtual environment.
- steveklabnik 10y agoRails itself is broken up into smaller packages, so you can only load parts of Rails if you want. Very few apps actually do. (and that's only like 8 of the 80)
- deleted 10y ago[deleted]
- asimuvPR 10y agoI work on a abnormally large Django codebase. It has 30 dependencies on the requirements.txt file. I've worked on other Django codebases and they usually have about 15. Python has a big standard library which cuts down on dependencies. Not that Django > Rails. Just different.
- true_religion 10y agoSomewhere along the lines, someone might have just done a pip freeze and pulled in all the dependencies needed, recursively. For example, my project has 66 dependencies after cleaning up pip-freezes' output to only keep secondary dependencies if they were depended on by more than one thing (e.g. chardet is a dependency of every package that works with character processing). If we're talking about only primary dependencies, we have 13 or so. If we're talking about the entire dependency network... its easily above 200.