/srv/irclogs.ubuntu.com/2015/10/18/#launchpad-dev.txt

blrmorning19:41
wgrantcjwatson: Hum, why did you choose to include the virtualenv in the tarball?21:55
wgrantThat seems pretty dodgy.21:56
lifelessthey aren't typically portable...22:01
cjwatsonI thought the deployment target would be similar enough to the build environment in this very specific case that that wouldn't be a problem22:05
lifelessso the two specific things that cause issues22:06
lifelessa) the path is hard coded22:07
wgrantcjwatson: What about eg. libgit2 versions?22:07
wgrantDoes the mojo build container have the right one?22:07
wgrantOr paths.22:07
cjwatsonWe can make it have the right one!22:07
lifelessb) so library bumps can cause havoc (e.g. even with Python x.y rebuilds)22:07
cjwatsonBut maybe paths are an issue.22:07
wgrantAbsolute paths are hardcoded in virtualenvs for no obvious reason.22:07
lifelesswe broke virtualenvs in 2.7 on some ubuntu releases with that one22:07
wgrantEh, Python minor releases always break a lot of things.22:08
cjwatsonI also wanted to avoid having the virtualenv construction code be duplicated.  But perhaps we could ship an appropriate script in the tarball and use it in turnip's Makefile.22:08
wgrantSRUing them is entirely insane, so not a huge issue.22:08
cjwatson(Or ship the Makefile, which we probably already do.)22:08
lifelesscjwatson: so, I'd suggest an LXC container if you want a big blob to ship around22:08
lifelesscjwatson: (or similar)22:09
cjwatsonEr22:09
cjwatsonI don't think you're entirely familiar with the environment here22:09
lifelesscjwatson: otherwise construct in-place is much better for virtualenvs22:09
lifelesscjwatson: I'm surely stale :)22:09
lifelesscjwatson: happy to be educated, or to butt out :)22:09
cjwatsonI think nesting an LXC container (at least in some cases it will be nesting) is probably overkill.  This is in the context of a Mojo deployment22:10
cjwatsonBut I'm happy to convert to constructing in-place - I didn't realise virtualenvs were quite *that* fragile22:10
wgrantThey're entirely unportable for a combination of good and terrible reasons.22:10
cjwatson(Well, convert back, but with better code for it.)22:11
wgrantThe long-term solution is to use wheels.22:11
wgrantHaving a separate virtualenv build script probably makes sense.22:11
cjwatsonlifeless: more specifically the context is lp:~cjwatson/turnip/virtualenv22:11
cjwatsonThat gets us closer to using wheels - I just didn't do that as a first step22:11
cjwatsonIt wouldn't take much to have a "make compile" equivalent on top of that branch.22:12
cjwatsonlifeless: (sorry, the above came across sharper than intended, I was just having an "argh, not another container" moment)22:14
lifelesscjwatson: no worries22:21
lifelesscjwatson: I've merged your testtools branch now (sorry for the delay) - and filed the bug on twisted22:22
lifelesscjwatson: I'll cut a release after the tokyo summit I think, unless you're blocked ?22:22
cjwatsonlifeless: I saw, thanks!  Not blocked at the moment, because I need to yak-shave extensively before we can upgrade testtools22:25
cjwatson(i.e. convert Launchpad to pip)22:26
cjwatsonAnd I think I want to build up experience with something a bit smaller like turnip before finishing off my embryonic work on that22:27
blrcjwatson: well, not quite as terrifying as juju-fying lp. That's going to be interesting.22:41
cjwatsonblr: Yes, quite.  Though working on this I begin to see some of the shape that that could take.22:41
blrright22:41
cjwatsonOnce we're on pip I think I could reasonably figure out how to jujuify importds, err, given about two or three weeks22:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!