*** tristan <tristan!tristan@223.38.35.4> has joined #buildstream | 06:13 | |
*** ChanServ sets mode: +o tristan | 06:13 | |
*** coldtom <coldtom!coldtom@2a00:23c7:5e9a:5301:0:0:0:1b8> has joined #buildstream | 06:50 | |
*** tpollard <tpollard!tompollard@cpc109023-salf6-2-0-cust777.10-2.cable.virginm.net> has joined #buildstream | 08:58 | |
*** tristan <tristan!tristan@223.38.35.4> has quit IRC | 10:00 | |
*** tristan <tristan!tristan@223.38.35.4> has joined #buildstream | 10:01 | |
*** ChanServ sets mode: +o tristan | 10:01 | |
*** tristan <tristan!tristan@223.38.35.4> has quit IRC | 10:02 | |
SamThursfield[m] | Hello, does anyone know of an element plugin to drive Python's pep517 build system ? | 12:52 |
---|---|---|
SamThursfield[m] | I'm seeing several Python projects that have removed setup.py and gone to the new standard pyproject.toml | 12:53 |
SamThursfield[m] | am wondering if it's useful to have a new element plugin that builds these | 12:53 |
*** abderrahim[m] <abderrahim[m]!abderrahim@2001:470:1af1:104:0:0:0:3558> has joined #buildstream | 12:54 | |
abderrahim[m] | I guess pip would work | 12:54 |
coldtom | shouldn't the pip.. yeah | 12:54 |
SamThursfield[m] | ah, good point | 12:55 |
* SamThursfield[m] wonders if he can generate a wheel using pip.. presumably it's possible | 12:55 | |
coldtom | iirc there's a bit of an awkward dependency chain to pep517 stuff | 12:56 |
coldtom | maybe i'm thinking of flit or poetry though | 12:56 |
nanonyme | Yeah, we use pip element for this widely | 12:57 |
SamThursfield[m] | perfect, thanks | 12:58 |
SamThursfield[m] | I have the extra requirement to build a wheel of everything we import as source, I think that's why i didn't immediately jump to pip plugin :) | 12:58 |
SamThursfield[m] | my immediate attempt to do `pip wheel .` failed as its trying to install things from network, but i'll play a bit more after lunch | 12:58 |
nanonyme | pip will automatically generate wheels these days always, the trick is getting those into install-root | 12:59 |
nanonyme | freedesktop-sdk project does not do this | 12:59 |
nanonyme | We have wheels generated into non-persistent cache dir | 12:59 |
abderrahim[m] | Sam Thursfield: look at g-b-m for things you can pass to pip to avoid it looking for network | 13:00 |
nanonyme | I have been considering of changing things such that we would always install both the generated wheel and the resultant files and put the wheels into a special domain | 13:00 |
nanonyme | But yeah, you can also explicitly call pip wheel. I think it's a no-op if pip already created a wheel into cache. | 13:01 |
nanonyme | Sam Thursfield: essentially freedesktop-sdk is running pip with --no-build-isolation so we will utilize the installed packages, not the wheels. This is not necessarily great as PEP517 makes a clear distinction between build and install deps. Build deps are expected to be shipped as wheels. | 13:03 |
nanonyme | So pip can install them into a temporary build sandbox | 13:03 |
nanonyme | Packages can have conflicting build deps and this is fine | 13:04 |
SamThursfield[m] | we are doing exactly that (install the wheels) in this project, the nice thing is we can then export a set of python packages as wheels and make a virtualenv | 13:30 |
SamThursfield[m] | the virtualenv is effectively an output of the bst project | 13:30 |
*** vchernin[m] <vchernin[m]!vcherninfe@2001:470:1af1:104:0:0:0:49f6> has joined #buildstream | 16:12 | |
*** tpollard <tpollard!tompollard@cpc109023-salf6-2-0-cust777.10-2.cable.virginm.net> has quit IRC | 17:05 | |
*** coldtom <coldtom!coldtom@2a00:23c7:5e9a:5301:0:0:0:1b8> has quit IRC | 20:11 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!