From patchwork Mon Jun 8 21:30:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1305427 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hA0WRdQJ; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49gmfS5GKNz9sRN for ; Tue, 9 Jun 2020 07:31:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8748788281; Mon, 8 Jun 2020 21:31:42 +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 9iaGBnvNuEtg; Mon, 8 Jun 2020 21:31:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B854E88287; Mon, 8 Jun 2020 21:31:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5BA851BF32D for ; Mon, 8 Jun 2020 21:31:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 580CA86FE9 for ; Mon, 8 Jun 2020 21:31:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1-4fa1C8Xv4T for ; Mon, 8 Jun 2020 21:31:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id E5C6C86E9E for ; Mon, 8 Jun 2020 21:31:38 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id r15so1032729wmh.5 for ; Mon, 08 Jun 2020 14:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UPy3vH1SXnL37NWbAZZo3iPCcVz8yqMWJ+Mm5uk4KFo=; b=hA0WRdQJs5lbMNZSKJUqGIuiCJXkQXShrGQFDkSjIOCdEs3jmLpeQhs9eB1m+ZsGR3 dFCjrtfbBLLrOwOt5Xa3qPeqE+aLOQpLqB7+jb9BG1b8ZkTmiqzGb1xNW3rmJVPs+SL+ i/5VZc2UlvB61IUmhkwDeXm/ySju2ibVjvE7oKx+Fnccjp8I0Hjzrhrn85J6a2YOUUHZ 8aebMURQMIH7yNDOHiZDD42JmZX/Xj/wFUpZTrUkDtXfnRnau6Y4zhATr5R2LVJzOJhh fXCXftbMeiBvc5emgzF1KpuAqCakPF13okKHfERG1ItUwtJDKQgNgNeH4XED2ZXJKj0B OVyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UPy3vH1SXnL37NWbAZZo3iPCcVz8yqMWJ+Mm5uk4KFo=; b=a92/fKfLCk2CnIM3Woif0ZgyJ46t5+av2K+rY+V+TB/2cMtacUJmeWuuusSdFf/A8f jDPpzZUeb2bsUJBT4y+uiTzUfPkYbaalWuclIvJaR+LiztNn2OdzPc3d3cjvTwkEUgzR N93AOgHUOOWNOwqdmmFYoZzpeB6M6muS4DQlMR0m3a+wEB3XNpCNSQ0M+WwLiA6Jm2e5 zs2ZPNIQ729QhOOyx1twhaXBArR9vzVQkyYMBSUdDVgexogBQLOl6NTz1eZI8LNC1Smo ec95NAH7fbSuoBe6tk58tLunykHWZtOEU+qoNq/ab1o2Q+fT8IMkhcoUDHXDkQJaKn/q /LYA== X-Gm-Message-State: AOAM532uzo4nQLsQTwIEgzcL8odOAX61PR0oSsVDUb7JW5K94T7jAssY DxN8avgr/GkzeVE5UKMqza0fogHk X-Google-Smtp-Source: ABdhPJyeMWLImAqlM/ViUo/zPjkIilMoEkZF/jFc9aLNis6gdtJR77iltRjxdKB6FoBmBuACLnnT7g== X-Received: by 2002:a1c:ddc1:: with SMTP id u184mr579775wmg.115.1591651897081; Mon, 08 Jun 2020 14:31:37 -0700 (PDT) Received: from lenovoX201.home ([2a01:cb1c:794:2300:8ea9:82ff:fe03:6fc]) by smtp.gmail.com with ESMTPSA id d18sm926629wrn.34.2020.06.08.14.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 14:31:36 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Mon, 8 Jun 2020 23:30:43 +0200 Message-Id: <20200608213043.3443-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] python-pybind: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" PyBind is a light (headers only) package for C++/Python and Python/C++ bindings. host-python-pybind is a dependency of my future contribution, so I added this feature. Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-pybind/Config.in | 10 ++++++++++ package/python-pybind/python-pybind.hash | 4 ++++ package/python-pybind/python-pybind.mk | 15 +++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 package/python-pybind/Config.in create mode 100644 package/python-pybind/python-pybind.hash create mode 100644 package/python-pybind/python-pybind.mk diff --git a/DEVELOPERS b/DEVELOPERS index f697c96ce4..9a94307082 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1052,6 +1052,7 @@ F: package/sdl2/ N: Guillaume William Brs F: package/liquid-dsp/ F: package/pixiewps/ +F: package/python-pybind/ F: package/reaver/ N: Guo Ren diff --git a/package/Config.in b/package/Config.in index 520e5d5570..b0a7da2f5c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1070,6 +1070,7 @@ menu "External python modules" source "package/python-pyalsa/Config.in" source "package/python-pyasn1/Config.in" source "package/python-pyasn1-modules/Config.in" + source "package/python-pybind/Config.in" source "package/python-pycairo/Config.in" source "package/python-pycares/Config.in" source "package/python-pycli/Config.in" diff --git a/package/python-pybind/Config.in b/package/python-pybind/Config.in new file mode 100644 index 0000000000..832a9fb971 --- /dev/null +++ b/package/python-pybind/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_PYBIND + bool "python-pybind" + depends on BR2_PACKAGE_PYTHON3 + help + PyBind is a lightweight header-only library + that exposes C++ types in Python and vice versa, + mainly to create Python bindings of existing C++ + code. + + http://pybind11.readthedocs.org/en/master diff --git a/package/python-pybind/python-pybind.hash b/package/python-pybind/python-pybind.hash new file mode 100644 index 0000000000..6578f60c88 --- /dev/null +++ b/package/python-pybind/python-pybind.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504 v2.5.0.tar.gz +# License files, locally calculated +sha256 9a37ea54aa3cf12c7f3292799f20822ffd4b9b7142b36a7a9997b28c39264dc9 LICENSE diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk new file mode 100644 index 0000000000..03cea1c060 --- /dev/null +++ b/package/python-pybind/python-pybind.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pybind +# +################################################################################ + +PYTHON_PYBIND_VERSION = 2.5.0 +PYTHON_PYBIND_SOURCE = v$(PYTHON_PYBIND_VERSION).tar.gz +PYTHON_PYBIND_SITE = https://github.com/pybind/pybind11/archive +PYTHON_PYBIND_LICENSE = BSD-3-Clause +PYTHON_PYBIND_LICENSE_FILES = LICENSE +PYTHON_PYBIND_SETUP_TYPE = setuptools + +$(eval $(python-package)) +$(eval $(host-python-package))