Re:Pipfile for Python
by tim333 on Tuesday November 22, 2016 @12:05PM
(#13015485)
I rather like it looking like code on the other hand. I assume it actually is code so you could write
[ Parent
| on HN ]
When do you need to do such conditional installing? (Aside from the `if dev: install dev-dependencies`, which is special-cased in npm and this proposal too).
Py2/3 compatibility? I've never had to do this, interested what the use-case is.
Github and Discourse did some conditional installation stuff when dealing with different versions of Rails. I don't remember the specifics of Discourse, but the Github one was due to their change from Rails 2.3 to Rails 3 and the different packages they needed to include in 2.3. This case is pretty minimal though and I haven't heard of many (any?) cases outside of those two.