From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/2] host-cython: add new package
Date: Fri, 21 Mar 2014 10:00:55 +0100 [thread overview]
Message-ID: <20140321090054.GM23331@pengutronix.de> (raw)
In-Reply-To: <1394716005-18738-1-git-send-email-alex.aring@gmail.com>
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.
Michael
> rules/host-cython.in | 10 ++++++++++
> rules/host-cython.make | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 61 insertions(+)
> create mode 100644 rules/host-cython.in
> create mode 100644 rules/host-cython.make
>
> diff --git a/rules/host-cython.in b/rules/host-cython.in
> new file mode 100644
> index 0000000..80a989f
> --- /dev/null
> +++ b/rules/host-cython.in
> @@ -0,0 +1,10 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_CYTHON
> + tristate
> + select HOST_PYTHON
> + help
> + Cython is an optimising static compiler for both the Python
> + programming language and the extended Cython programming language
> + (based on Pyrex). It makes writing C extensions for Python as easy
> + as Python itself.
> diff --git a/rules/host-cython.make b/rules/host-cython.make
> new file mode 100644
> index 0000000..5b345a8
> --- /dev/null
> +++ b/rules/host-cython.make
> @@ -0,0 +1,51 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Alexander Aring <aar@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_CYTHON) += host-cython
> +
> +#
> +# Paths and names
> +#
> +HOST_CYTHON_VERSION := 0.20.1
> +HOST_CYTHON_MD5 := 52431696c64e618036537c4d9aa79d99
> +HOST_CYTHON := Cython-$(HOST_CYTHON_VERSION)
> +HOST_CYTHON_SUFFIX := tar.gz
> +HOST_CYTHON_URL := http://cython.org/release/$(HOST_CYTHON).$(HOST_CYTHON_SUFFIX)
> +HOST_CYTHON_SOURCE := $(SRCDIR)/$(HOST_CYTHON).$(HOST_CYTHON_SUFFIX)
> +HOST_CYTHON_DIR := $(HOST_BUILDDIR)/$(HOST_CYTHON)
> +HOST_CYTHON_LICENSE := APLv2
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +HOST_CYTHON_PATH := PATH=$(HOST_PATH)
> +HOST_CYTHON_CONF_TOOL := NO
> +
> +$(STATEDIR)/host-cython.compile:
> + @$(call targetinfo)
> + @cd $(HOST_CYTHON_DIR) && \
> + python2 setup.py build
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/host-cython.install:
> + @$(call targetinfo)
> + @cd $(HOST_CYTHON_DIR) && \
> + python2 setup.py install --root=$(PTXCONF_SYSROOT_TARGET) --prefix="/usr"
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 1.9.0
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2014-03-21 9:00 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 ` Michael Olbrich [this message]
2014-03-21 9:32 ` [ptxdist] [PATCH 1/2] host-cython: " Alexander Aring
2014-03-21 10:05 ` Alexander Aring
2014-03-21 12:21 ` Alexander Aring
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=20140321090054.GM23331@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--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