[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Adding arguments to make for sysroot
From:       Patrick Stinson <patrickkidd () gmail ! com>
Date:       2022-10-20 16:57:42
Message-ID: CADb17j1dNCiBVEUGLVWB43JZNHnSEGJP0MeQiGJ1u+DUPQzqXg () mail ! gmail ! com
[Download RAW message or body]

Excellent! Cheers

On Thu, Oct 20, 2022 at 6:55 AM Phil Thompson <phil@riverbankcomputing.com>
wrote:

> The next snapshot adds a --jobs option to pyqtdeploy-sysroot and
> build-demo.py.
>
> Phil
>
> On 17/10/2022 18:23, Patrick Stinson wrote:
> > This is the best what I've found to do it, so I created identical
> > component
> > plugins for Qt, OpenSSL, and Python. It builds in < 10 minutes now
> > instead
> > of 45-60 min:
> >
> > import os.path
> > from pyqtdeploy.sysroot.plugins.Qt import QtComponent
> >
> > class DemoQtComponent(QtComponent):
> >
> > def run(self, *args, capture=False):
> > """ Run a command, optionally capturing stdout. """
> > if args[0] == self.host_make:
> > self.verbose('Adding args for concurrent build.')
> > _args = args + ('-j16',)
> > else:
> > _args = args
> > return super().run(*_args, capture=capture)
> >
> > It would probably be cleaner to support an env var, but...
> >
> > Cheers,
> >
> > On Mon, Oct 17, 2022 at 8:55 AM Patrick Stinson <patrickkidd@gmail.com>
> > wrote:
> >
> >> I'm trying to speed up building the sysroot which takes forever
> >> without a
> >> multiple build jobs count passed to make. Long-lived sysroots do make
> >> this
> >> less important, but debugging build errors in libs, for example Qt, is
> >> a
> >> real pain without it.
> >>
> >> On Mon, Oct 17, 2022 at 1:46 AM Phil Thompson
> >> <phil@riverbankcomputing.com>
> >> wrote:
> >>
> >>> On 16/10/2022 19:27, Patrick Stinson wrote:
> >>> > Is there a method to override to add arguments to
> >>> > self.run(self.host_make) for component plugins? For example I am
> >>> > trying to override this in a Qt component plugin but it looks like
> >>> > you'd have to fork the whole QtComponent._install_from_source method
> >>> > to override that one line that calls make.
> >>>
> >>> Not at the moment. What is it you are trying to do?
> >>>
> >>> Phil
> >>>
> >>
>

[Attachment #3 (text/html)]

<div dir="ltr">Excellent! Cheers</div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Oct 20, 2022 at 6:55 AM Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">The \
next snapshot adds a --jobs option to pyqtdeploy-sysroot and <br> build-demo.py.<br>
<br>
Phil<br>
<br>
On 17/10/2022 18:23, Patrick Stinson wrote:<br>
&gt; This is the best what I&#39;ve found to do it, so I created identical <br>
&gt; component<br>
&gt; plugins for Qt, OpenSSL, and Python. It builds in &lt; 10 minutes now <br>
&gt; instead<br>
&gt; of 45-60 min:<br>
&gt; <br>
&gt; import os.path<br>
&gt; from pyqtdeploy.sysroot.plugins.Qt import QtComponent<br>
&gt; <br>
&gt; class DemoQtComponent(QtComponent):<br>
&gt; <br>
&gt; def run(self, *args, capture=False):<br>
&gt; &quot;&quot;&quot; Run a command, optionally capturing stdout. \
&quot;&quot;&quot;<br> &gt; if args[0] == self.host_make:<br>
&gt; self.verbose(&#39;Adding args for concurrent build.&#39;)<br>
&gt; _args = args + (&#39;-j16&#39;,)<br>
&gt; else:<br>
&gt; _args = args<br>
&gt; return super().run(*_args, capture=capture)<br>
&gt; <br>
&gt; It would probably be cleaner to support an env var, but...<br>
&gt; <br>
&gt; Cheers,<br>
&gt; <br>
&gt; On Mon, Oct 17, 2022 at 8:55 AM Patrick Stinson &lt;<a \
href="mailto:patrickkidd@gmail.com" target="_blank">patrickkidd@gmail.com</a>&gt;<br> \
&gt; wrote:<br> &gt; <br>
&gt;&gt; I'm trying to speed up building the sysroot which takes forever <br>
&gt;&gt; without a<br>
&gt;&gt; multiple build jobs count passed to make. Long-lived sysroots do make <br>
&gt;&gt; this<br>
&gt;&gt; less important, but debugging build errors in libs, for example Qt, is <br>
&gt;&gt; a<br>
&gt;&gt; real pain without it.<br>
&gt;&gt; <br>
&gt;&gt; On Mon, Oct 17, 2022 at 1:46 AM Phil Thompson <br>
&gt;&gt; &lt;<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;<br> &gt;&gt; wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; On 16/10/2022 19:27, Patrick Stinson wrote:<br>
&gt;&gt;&gt; &gt; Is there a method to override to add arguments to<br>
&gt;&gt;&gt; &gt; self.run(self.host_make) for component plugins? For example I \
am<br> &gt;&gt;&gt; &gt; trying to override this in a Qt component plugin but it \
looks like<br> &gt;&gt;&gt; &gt; you'd have to fork the whole \
QtComponent._install_from_source method<br> &gt;&gt;&gt; &gt; to override that one \
line that calls make.<br> &gt;&gt;&gt; <br>
&gt;&gt;&gt; Not at the moment. What is it you are trying to do?<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Phil<br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic