3 ms·
> The trick is to build a debian package (but it can be done using RPMs just as well) with the application and the whole virtualenv inside. I would love to rea
by ch0wn 15y ago
> The trick is to build a debian package (but it can be done using RPMs just as well) with the application and the whole virtualenv inside.
I would love to read an article describing some best practices for doing that. I tried it once and found it extremely difficult, reverting to a git checkout + virtualenv kind of deployment.
- hynek 15y agoIt will come, I promise.
- davvid 15y agoCheck out git's "make rpm" target. https://github.com/gitster/git/blob/master/Makefile https://github.com/gitster/git/blob/master/Makefile Hosting your own apt/yum repo is pretty simple. Does anyone have an example of a similar "make deb" target they could share? I've heard of git-dpm and git-buildpackage but haven't used them extensively myself. They're the debian git packaging tools. http://wiki.debian.org/PackagingWithGit http://wiki.debian.org/PackagingWithGit
- hynek 15y agoHave a look at fpm: https://github.com/jordansissel/fpm https://github.com/jordansissel/fpm More details to come.
- ch0wn 15y agoI'm familiar with building and hosting deps in general. The problem I had was that I tried to build debs for every single dependency which turned out to be really hard to automate. That's why I'm really interested in seeing an approach with the virtualenv embedded into the package.