4 ms·
I rather like it looking like code on the other hand. I assume it actually is code so you could write if soandso: package("pack1") else:
by tim333 10y ago
I rather like it looking like code on the other hand. I assume it actually is code so you could write
if soandso:
package("pack1")
else:
...
?
- theptip 10y agoWhen 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.
- detaro 10y agoIt might be useful for dependencies that are only available and/or required on some platform?
- yladiz 10y agoGithub 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.