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 v2 1/4] host-cython: add CROSS_CYTHON_ENV declaration
Date: Tue, 25 Mar 2014 20:53:47 +0100	[thread overview]
Message-ID: <1395777230-16813-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1395777230-16813-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>
---
 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-25 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25 19:53 [ptxdist] [PATCH v2 0/4] python: add simpleRPL package, dependencies and cakes Alexander Aring
2014-03-25 19:53 ` Alexander Aring [this message]
2014-03-25 19:53 ` [ptxdist] [PATCH v2 2/4] python-routing: add new package Alexander Aring
2014-03-25 19:53 ` [ptxdist] [PATCH v2 3/4] python-rplicmp: " Alexander Aring
2014-03-25 19:53 ` [ptxdist] [PATCH v2 4/4] simplerpl: " Alexander Aring
2014-03-29  9:03 ` [ptxdist] [PATCH v2 0/4] python: add simpleRPL package, dependencies and cakes Michael Olbrich

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=1395777230-16813-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