From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WRzv8-0007gz-L7 for ptxdist@pengutronix.de; Mon, 24 Mar 2014 09:08:05 +0100 Received: by mail-ee0-f53.google.com with SMTP id b57so4122650eek.12 for ; Mon, 24 Mar 2014 01:07:41 -0700 (PDT) From: Alexander Aring Date: Mon, 24 Mar 2014 09:06:51 +0100 Message-Id: <1395648414-16669-2-git-send-email-alex.aring@gmail.com> In-Reply-To: <1395648414-16669-1-git-send-email-alex.aring@gmail.com> References: <1395648414-16669-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 1/4] host-cython: add CROSS_CYTHON_ENV declaration Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring 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 --- 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