From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mail.openembedded.org (Postfix) with ESMTP id 3B86E70671 for ; Fri, 18 Jul 2014 03:10:09 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id hy10so6303871vcb.32 for ; Thu, 17 Jul 2014 20:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=sbxTkurlFq68Q/9BMb5yfMYZK/K/LAsXbB4PHddIb5g=; b=rzQuPHDAIz0DxThrHqwceiwNadajX72hCWrt5pq1Gm5XkM9xg1PVwIBCzE3qErJBfC i2w2H+grb1oEQoLJY4TnO74JYxS8WA8Xj1lMQ8vtBCGWm9sNtZEr07liHfT4umMFl+ZE p9Svzg3qFsp6y5Dvyt+tKoOMz7H8bMVtBGPhl0JG5P2X5UG9wCJIk7+F9np9/1gRzozT EhXLcDKka5DGpvWgw5dW7NpWPmV2JKQLzCtK9vc9czrX6glmQqagVddLIKdp7rqDhnhx WnqXf822oblOLXCZMpbRPaCwFWq5mHG+2sq0SJAWK6m6q7Oy/z37aEaWZNBp4KZfizTg g7ug== X-Received: by 10.220.15.8 with SMTP id i8mr1349252vca.45.1405653010614; Thu, 17 Jul 2014 20:10:10 -0700 (PDT) Received: from localhost.localdomain ([201.53.220.248]) by mx.google.com with ESMTPSA id 3sm8222020vde.6.2014.07.17.20.10.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jul 2014 20:10:10 -0700 (PDT) From: =?UTF-8?q?Jo=C3=A3o=20Henrique=20Ferreira=20de=20Freitas?= To: openembedded-core@lists.openembedded.org Date: Fri, 18 Jul 2014 00:09:25 -0300 Message-Id: <1405652966-7359-2-git-send-email-joaohf@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405652966-7359-1-git-send-email-joaohf@gmail.com> References: <1405378518-4832-1-git-send-email-joaohf@gmail.com> <1405652966-7359-1-git-send-email-joaohf@gmail.com> MIME-Version: 1.0 Cc: otavio@ossystems.com.br Subject: [PATCH v3 1/2] python-distribute: add nativesdk to BBCLASSEXTEND X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 03:10:15 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, python tools that need python-distribute doesn't install in SDK generated by OE. Signed-off-by: João Henrique Ferreira de Freitas --- meta/recipes-devtools/python/python-distribute_0.6.32.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python-distribute_0.6.32.bb b/meta/recipes-devtools/python/python-distribute_0.6.32.bb index 58bb8b4..7000145 100644 --- a/meta/recipes-devtools/python/python-distribute_0.6.32.bb +++ b/meta/recipes-devtools/python/python-distribute_0.6.32.bb @@ -39,6 +39,12 @@ do_install_append() { echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth } +do_install_append_class-nativesdk() { + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${PYTHON_SITEPACKAGES_DIR}/distribute-${PV}-py${PYTHON_BASEVERSION}.egg/setuptools/tests/test_resources.py + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install-${PYTHON_BASEVERSION} +} + RDEPENDS_${PN} = "\ python-distutils \ python-compression \ @@ -46,4 +52,4 @@ RDEPENDS_${PN} = "\ RPROVIDES_${PN} += "python-setuptools" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" -- 1.9.1