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 <[email protected]> > > > > --- > > > > 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 [email protected]
