devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: "Marc-André Lureau"
	<marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Devicetree Compiler
	<devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v3 2/4] pylibfdt: fix build lib location
Date: Fri, 25 Sep 2020 20:16:47 +1000	[thread overview]
Message-ID: <20200925101647.GB2298@yekko.fritz.box> (raw)
In-Reply-To: <CAMxuvaxfb0gj285VfrozQp9KJT2XcN7yqyJWFE42tRZM9e1hig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2275 bytes --]

On Mon, Sep 21, 2020 at 12:09:16PM +0400, Marc-André Lureau wrote:
> Hi
> 
> On Mon, Sep 21, 2020 at 10:46 AM David Gibson
> <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org> wrote:
> >
> > On Tue, Sep 15, 2020 at 11:27:03PM +0400, marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org wrote:
> > > From: Marc-André Lureau <marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > >
> > > setup.py build_ext is run from top_srcdir with Makefile.
> > >
> > > ../pylibfdt will produce output files in parent directory.
> >
> > Uh.. can you elaborate a bit on what exactly ends up where, and why
> > the new behaviour you're setting up is better.
> 
> 
>  ~/src/dtc $  make
> ...
> ~/src/dtc $  ls ../pylibfdt
> _libfdt.cpython-38-x86_64-linux-gnu.so
> 
> 
> It "escapes" the source directory

Sorry, still not clear to me.  Is that the old behaviour or the new?
How does it differ from the other one?

> > > Note that setup.py install will rebuild it with the default 'build'
> > > directory. There doesn't seem to be a way to override that.
> > That rings a bell.  ISTR it being a real PITA.
> 
> It's a minor inconvenience imho. You just end up with an extra build/
> directory during install.
> 
> > >
> > > Signed-off-by: Marc-André Lureau <marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> >
> > > ---
> > >  pylibfdt/Makefile.pylibfdt | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt
> > > index 32ae1c5..1b5f236 100644
> > > --- a/pylibfdt/Makefile.pylibfdt
> > > +++ b/pylibfdt/Makefile.pylibfdt
> > > @@ -18,7 +18,7 @@ endif
> > >
> > >  $(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP) $(VERSION_FILE)
> > >       @$(VECHO) PYMOD $@
> > > -     $(PYTHON) $(SETUP) $(SETUPFLAGS) build_ext --build-lib=../$(PYLIBFDT_dir)
> > > +     $(PYTHON) $(SETUP) $(SETUPFLAGS) build_ext --build-lib=$(PYLIBFDT_dir)
> > >
> > >  install_pylibfdt: $(PYMODULE)
> > >       @$(VECHO) INSTALL-PYLIB
> >
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2020-09-25 10:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-15 19:27 [PATCH v3 0/4] Add meson build system marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found] ` <20200915192705.1716282-1-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2020-09-15 19:27   ` [PATCH v3 1/4] pylibfdt: allow build out of tree marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found]     ` <20200915192705.1716282-2-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2020-09-21  6:27       ` David Gibson
     [not found]         ` <20200921062751.GB17169-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2020-09-21  8:22           ` Marc-André Lureau
     [not found]             ` <CAMxuvaxTsdcpnrED54ydCKTKbVGRnYOW3fiL5tfyNTsiUM+cyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-28  8:00               ` David Gibson
     [not found]                 ` <20200928080038.GD501872-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2020-09-29 11:46                   ` Marc-André Lureau
     [not found]                     ` <CAMxuvaxx0+5n4YAj1OM_F0B-7wZkZnWZ7vQC6wfvAuCCvvti1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-29 14:00                       ` David Gibson
     [not found]                         ` <20200929140036.GA8432-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2020-09-29 15:37                           ` Marc-André Lureau
     [not found]                             ` <CAMxuvawbCOsFupbSq09HyOsknGx2Sq9gM8vjbedZFUpkJGF24A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-10-02  3:40                               ` David Gibson
2020-09-15 19:27   ` [PATCH v3 2/4] pylibfdt: fix build lib location marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
     [not found]     ` <20200915192705.1716282-3-marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2020-09-21  6:33       ` David Gibson
     [not found]         ` <20200921063325.GC17169-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2020-09-21  8:09           ` Marc-André Lureau
     [not found]             ` <CAMxuvaxfb0gj285VfrozQp9KJT2XcN7yqyJWFE42tRZM9e1hig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-25 10:16               ` David Gibson [this message]
     [not found]                 ` <20200925101647.GB2298-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2020-09-25 13:21                   ` Marc-André Lureau
2020-10-02  3:41                     ` David Gibson
2020-09-15 19:27   ` [PATCH v3 3/4] build-sys: add meson build marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA
2020-09-15 19:27   ` [PATCH v3 4/4] travis: test " marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200925101647.GB2298@yekko.fritz.box \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marcandre.lureau-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).