From patchwork Fri Oct 11 11:58:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ludovic.desroches@atmel.com X-Patchwork-Id: 282719 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2EE792C00DE for ; Fri, 11 Oct 2013 22:59:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3E89693BA7; Fri, 11 Oct 2013 11:59:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fPv+tn+cljPd; Fri, 11 Oct 2013 11:59:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8542E93BC4; Fri, 11 Oct 2013 11:59:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 898301BF9BD for ; Fri, 11 Oct 2013 11:59:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 84C6D93BBD for ; Fri, 11 Oct 2013 11:59:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Voe1+qttk9cS for ; Fri, 11 Oct 2013 11:59:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.242]) by hemlock.osuosl.org (Postfix) with ESMTPS id B0F1A93BC4 for ; Fri, 11 Oct 2013 11:59:08 +0000 (UTC) Received: from ibiza.corp.atmel.com (10.161.101.13) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server id 14.2.347.0; Fri, 11 Oct 2013 13:59:01 +0200 From: To: Date: Fri, 11 Oct 2013 13:58:47 +0200 Message-ID: <1381492733-24280-2-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1381492733-24280-1-git-send-email-ludovic.desroches@atmel.com> References: <1381492733-24280-1-git-send-email-ludovic.desroches@atmel.com> MIME-Version: 1.0 Cc: nicolas.ferre@atmel.com Subject: [Buildroot] [RFC PATCH 1/7] python-versiontools: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Ludovic Desroches --- package/Config.in | 1 + package/python-versiontools/Config.in | 6 ++++++ package/python-versiontools/python-versiontools.mk | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 package/python-versiontools/Config.in create mode 100644 package/python-versiontools/python-versiontools.mk diff --git a/package/Config.in b/package/Config.in index 97cd7da..03acc04 100644 --- a/package/Config.in +++ b/package/Config.in @@ -366,6 +366,7 @@ source "package/python-pyro/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" source "package/python-thrift/Config.in" +source "package/python-versiontools/Config.in" endmenu endif source "package/python3/Config.in" diff --git a/package/python-versiontools/Config.in b/package/python-versiontools/Config.in new file mode 100644 index 0000000..a981742 --- /dev/null +++ b/package/python-versiontools/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_VERSIONTOOLS + bool "python-versiontools" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + Smart replacement for plain tuple used in __version__ diff --git a/package/python-versiontools/python-versiontools.mk b/package/python-versiontools/python-versiontools.mk new file mode 100644 index 0000000..f31b71e --- /dev/null +++ b/package/python-versiontools/python-versiontools.mk @@ -0,0 +1,18 @@ +PYTHON_VERSIONTOOLS_VERSION = 1.9.1 +PYTHON_VERSIONTOOLS_SOURCE = versiontools-$(PYTHON_VERSIONTOOLS_VERSION).tar.gz +PYTHON_VERSIONTOOLS_SITE = http://pypi.python.org/packages/source/v/versiontools/ +PYTHON_VERSIONTOOLS_DEPENDENCIES = python python-setuptools + +define PYTHON_VERSIONTOOLS_BUILD_CMDS + (cd $(@D); \ + PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ + $(HOST_DIR)/usr/bin/python setup.py build) +endef + +define PYTHON_VERSIONTOOLS_INSTALL_TARGET_CMDS + (cd $(@D); \ + PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=/usr --root=$(TARGET_DIR)) +endef + +$(eval $(generic-package))