From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/2] host-cython: add new package
Date: Fri, 21 Mar 2014 13:21:38 +0100 [thread overview]
Message-ID: <20140321122137.GA16280@omega> (raw)
In-Reply-To: <20140321100501.GA15409@omega>
On Fri, Mar 21, 2014 at 11:05:01AM +0100, Alexander Aring wrote:
> Hi Michael,
>
> On Fri, Mar 21, 2014 at 10:32:00AM +0100, Alexander Aring wrote:
> > On Fri, Mar 21, 2014 at 10:00:55AM +0100, Michael Olbrich wrote:
> > > On Thu, Mar 13, 2014 at 02:06:44PM +0100, Alexander Aring wrote:
> > > > Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> > > > ---
> > > > Hi,
> > > >
> > > > I am not sure about the following points:
> > > >
> > > > i) helptext: it's a host package with noprompt, but I saw a helptext in
> > > > host-python also. That's why I add a help text here.
> > > >
> > > > ii) Cython installs some site-packages which is needed by $(CROSS_PYTHON). I
> > > > install things in --root=$(PTXCONF_SYSROOT_TARGET) because $(CROSS_PYTHON)
> > > > used this as site-packages search path.
> > >
> > > Both patches applied.
> > >
> > > I changed this to "--root=$(HOST_CYTHON_PKGDIR)" and --prefix=. This way
> > > 'cython' runs just fine. I'm not sure anything else is needed. 'pyzmq'
> > > builds without error even if cython is not installed here. Please test.
> > >
> >
> > I read too fast the README on github. Cython is only needed if we build
> > from git repository but I need cython for other packages. I will test if
> > this still works. Thanks Michael.
>
> Now I understand a little bit more. I installed it into
> PTXCONF_SYSROOT_TARGET because CROSS_PYTHON has the default
> site-packages search path there.
>
> I know this was wrong because it is a host tool which should installed
> into PTXCONF_SYSROOT_HOST. I always search a way to change the default
> site-packages search path and now I found it! [1]
>
> Your solution to install it into HOST_CYTHON_PKGDIR will install Cython
> into PTXCONF_SYSROOT_HOST which is correct, but then it doesn't work out
> of the box, because CROSS_PYTHON doesn't search in PTXCONF_SYSROOT_HOST.
>
> With solution of [1] I can change the site-packages search path with:
>
> "$(CROSS_ENV) PYTHONUSERBASE=$(PTXCONF_SYSROOT_HOST) $(CROSS_PYTHON)"
>
> and then it works with a installed Cython in PTXCONF_SYSROOT_HOST.
> Please let me know if this is okay for you, maybe we can put this into
> the default $(CROSS_PYTHON) path. It seems Cython is some special thing,
> we need it only at compiletime and it have some cross compiled things in
> there. I don't know what happens if we set PYTHONUSERBASE and python
> uses still his default site-packages path or not.
>
mhh, or we introduce a $(CROSS_CYTHON) (note the C instead P)
which is a:
"PYTHONUSERBASE=$(PTXCONF_SYSROOT_HOST) $(CROSS_PYTHON)"
call.
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2014-03-21 12:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 13:06 Alexander Aring
2014-03-13 13:06 ` [ptxdist] [PATCH 2/2] pyzmq: " Alexander Aring
2014-03-21 9:00 ` [ptxdist] [PATCH 1/2] host-cython: " Michael Olbrich
2014-03-21 9:32 ` Alexander Aring
2014-03-21 10:05 ` Alexander Aring
2014-03-21 12:21 ` Alexander Aring [this message]
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=20140321122137.GA16280@omega \
--to=alex.aring@gmail.com \
--cc=ptxdist@pengutronix.de \
/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