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