4 ms·
> Hopefully new libraries do not use 3.8/3.9 only features Ideally, for production environments, you'll want to pin version numbers for everything you can, so
by rbanffy 6y ago
> Hopefully new libraries do not use 3.8/3.9 only features
Ideally, for production environments, you'll want to pin version numbers for everything you can, so new packages don't intrude. I also like to keep testing environments with minimal dependencies and no pinning (I built `pip-chill` for that). Wouldn't that work for you?
- coldtea 6y agoThat helps not to break an existing codebase. But not if there's a nice new library you really have a need for that uses new 3.8 features, and you can't use it because you're stuck with 3.6 for example...
- rbanffy 6y agoWe can always offer a PR that allows the library to run on older versions. I am limited to 3.6 on many environments and would be extremely happy to know others on 3.6 have better library support. Having said that, It's not something I feel. I know some things can get faster and some syntax can be improved, but, so far, I'm pretty OK with those envs running on 3.6. As for me, locally I use 3.8. If I do any 3.8-ism, CI will catch it.
- aprdm 6y agoThat works but doesn’t solve the problem mentioned by the other comment. We also have to support a matrix of Python runtimes and dependencies in all of our machines. We can’t pre-bake the environments. It’s a very unique problem for HPC I guess. We don’t use pip, have a look in the Rez package manager if you haven’t yet for an idea of the problem. For our webservices it is much less of a problem as we can isolate the runtime from software installed in machines or third party software dependencies that we integrate with (think a blender plugin, blender comes with its own versions of dependencies)
- rbanffy 6y ago> We don’t use pip What's the problem?
- aprdm 6y agoHave you read about the problems Rez solves ? Our environments are too dynamic and need to always be available. Our hpc cluster runs millions of different combinations of software runtimes at any given day...
- rbanffy 6y agoMy understanding is that it operates on a different level than Pip.
- aprdm 6y agoHm, not really. It has build scripts which you do whatever you want to build your package and put somewhere and then it adjusts PYTHONPATH dynamically at runtime. You don't need Pip if you're using rez. You also don't use a setup.py, you use a package.py instead.
- cozzyd 6y agoRez looks really great! Thanks for sharing.
- acoard 6y agoThe problem is vulnerabilities. Your vulnerability scanner says you're pinned dependency has a vuln, and the only solution is to upgrade versions. By and large, libraries don't backport vulnerability fixes. You have to update from 1.0.1 to 2.3.3 because they only were notified of the vuln after 2.3.2 was released. In practice, almost no open source libraries would also release a 1.0.2. Maybe some of the largest most well-run libraries will, but enough don't that you will run into this problem.
- barumi 6y ago> In practice, almost no open source libraries would also release a 1.0.2. Well, if package consumers such as yourself don't put in the legwork to make that happen then yeah, don't expect others to do the work you personally need for free. I'm sure that if you posted a pull request for that hypothetical 1.0.2 release then the project would gladly receive it with open arms. People should keep in mind that open source software isn't a one-way street.
- abiogenesis 6y agoI don't think the parent comment argues that anyone should backport their changes for free. Their point is, upgrading everything is cheaper than backporting security fixes.