4 ms·
I have not used ruby extensively, but a lot of times i had to install something with it i got stuck with version conflicts of ruby itself and package deps. In
by tuco86 10y ago
I have not used ruby extensively, but a lot of times i had to install something with it i got stuck with version conflicts of ruby itself and package deps.
In my python workflow everything lives within a project virtualenv. Dependencies are defined in setup.py with install_requires, extras_require and tests_require. I build against latest, version constraints are added mostly when the latest version of a package has a problem.
Now when i commit to dev, stage or prod branch our ci generates a version pinned requirements.txt which is used to install the virtualenv on stage/prod.
I don't really see the improvements in Pipfile, feels like https://xkcd.com/927/ https://xkcd.com/927/.
- teaearlgraycold 10y ago>but a lot of times i had to install something with it i got stuck with version conflicts of ruby itself and package deps. >In my python workflow everything lives within a project virtualenv Were you using rbenv or rvm with Ruby?
- tuco86 10y agono, don't remember why that wasn't an option - maybe i was not even aware of it. I am not really experienced in the ruby toolset, just trying to use tools written in ruby.
- Groxx 10y agoYeah, sadly Ruby has the same environment issues as Python. Python has virtualenv, Ruby has rbenv - they're essentially required, sometimes even for global binaries. For Python, there's `pipsi` for automatically creating unique virtualenvs for binaries - that's the right approach, and it's worth adopting ASAP for future sanity. It even lets you mix python 2 and 3 binaries without any issues. I don't know what the equivalent would be for Ruby.
- djsumdog 10y agoI feel like Docker can be used in place of both python and ruby virtual environments. There are official containers for both.