4 ms·
Nowadays I use Poetry and PyInstaller, which make things easier. For some of my projects, I produce a "compiled"/bundled executable that takes all the pain out
by stavros 5y ago
Nowadays I use Poetry and PyInstaller, which make things easier.
For some of my projects, I produce a "compiled"/bundled executable that takes all the pain out of distribution. Here's my config, maybe it will be useful to you:
https://gitlab.com/stavros/harbormaster/-/blob/master/.gitlab-ci.yml#L29 https://gitlab.com/stavros/harbormaster/-/blob/master/.gitla...
- k1rcher 5y agoI’ve noticed Poetry being used more and more for projects I setup locally, and I must say, it does seem to be very, very good. Minimal overhead, easy to adopt, etc. I’ll need to setup a proper workflow with it for my current projects. Being able to abstract dev/prod environments in particular are really handy.
- stavros 5y agoAgreed, I really like it. It does everything and does it well, zero complaints so far.
- bigbillheck 5y agoI managed to find an annoying situation with poetry in which if you specify a range of versions for a dependency, and one of your other dependencies specifies a slightly different range of versions for that dependency, it will refuse to proceed. (I was expecting it to have chosen something in the intersection of the ranges, but it did not)
- stavros 5y agoHm, yeah, that definitely sounds like a resolver bug. Did you report it? I'm curious to see if it was fixed.
- bigbillheck 5y agoI did not report it because I found somebody else had already reported it and it was a WONTFIX (for reasons I don't immediately recall).
- code_biologist 5y agoI suspect in GP's case there was something blocking the intersected range. That should work perfectly. The poetry author doesn't want to support package version range overrides like yarn does [1]. His call I suppose, but I think it's the one major flaw in the otherwise giant step that poetry takes forward. [1] https://github.com/python-poetry/poetry/issues/697 https://github.com/python-poetry/poetry/issues/697
- mumblemumble 5y agoI'm sort of the Python hero at work, and, for me, the one supremely magical thing that Poetry brings to the table is that I am finally able to spec out a Python development workflow that I can easily document and explain to team members who don't already have a lot of detailed Python expertise. Maybe the single most underappreciated thing about Poetry compared to other options is its tendency to fail safe.
- ampdepolymerase 5y agoPoetry doesn't play nice with PyTorch and many other ML libraries.
- bigbillheck 5y agoWe use it for both pytorch and tensorflow (sometimes in the same package) and it works fine.
- camjw 5y agoHow do you manage cuda versions of pytorch? At the moment I'm using poethepoet to install them separately but it feels very suboptimal.
- bigbillheck 5y agoSo I personally didn't do the sysadminning, but it's a docker container in which CUDA has been loaded, and after that it 'just works'.
- disgruntledphd2 5y agoOne of the nice things about Conda is that it will handle these kinds of dependencies for you within the environment it sets up. While it doesn't really matter for web/scripting use cases, it's an absolute godsend for DS/ML workflows. But the resolver, oh why does the resolver take so long?
- lmeyerov 5y agowe do conda -> mamba for that exact scenario :)