mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCH 1/4] host-cython: add CROSS_CYTHON_ENV declaration
Date: Mon, 24 Mar 2014 09:06:51 +0100	[thread overview]
Message-ID: <1395648414-16669-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1395648414-16669-1-git-send-email-alex.aring@gmail.com>

This patch adds a CROSS_CYTHON_ENV declaration to the host-cython make
rule file. Cython usually a host binary "cython", that's why it is a
host tool. Besides cython there exist a way to use cython in the
setup.py framework of python. Then we need to add to $(CROSS_PYTHON) an
env to "add" a site-package search path to the $(PTXCONF_SYSROOT_HOST).

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
Hi Michael,

for examples you can see patch 2/4 and 3/4:
("python-routing: add new package")
("python-rplicmp: add new package")

these packages will use the $(CROSS_CYTHON_ENV).

 rules/host-cython.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/host-cython.make b/rules/host-cython.make
index 212b12d..a12dfe4 100644
--- a/rules/host-cython.make
+++ b/rules/host-cython.make
@@ -25,6 +25,8 @@ HOST_CYTHON_SOURCE	:= $(SRCDIR)/$(HOST_CYTHON).$(HOST_CYTHON_SUFFIX)
 HOST_CYTHON_DIR		:= $(HOST_BUILDDIR)/$(HOST_CYTHON)
 HOST_CYTHON_LICENSE	:= APLv2
 
+CROSS_CYTHON_ENV	:= PYTHONUSERBASE=$(PTXCONF_SYSROOT_HOST)
+
 # ----------------------------------------------------------------------------
 # Prepare
 # ----------------------------------------------------------------------------
-- 
1.9.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-03-24  8:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24  8:06 [ptxdist] [PATCH 0/4] add simpleRPL package, dependencies and cakes Alexander Aring
2014-03-24  8:06 ` Alexander Aring [this message]
2014-03-24  8:06 ` [ptxdist] [PATCH 2/4] python-routing: add new package Alexander Aring
2014-03-24 10:07   ` Marc Kleine-Budde
2014-03-24 12:05     ` Alexander Aring
2014-03-24  8:06 ` [ptxdist] [PATCH 3/4] python-rplicmp: " Alexander Aring
2014-03-24  8:06 ` [ptxdist] [PATCH 4/4] simplerpl: " 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=1395648414-16669-2-git-send-email-alex.aring@gmail.com \
    --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