All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/python-pybind: new package
@ 2020-06-10 20:53 Thomas Petazzoni
  2020-07-12 21:21 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2020-06-10 20:53 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=f42f2a63b3c5733dc56a58b18d6ba417a59d8342
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

PyBind is a light (headers only) package for C++/Python and Python/C++
bindings.

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 DEVELOPERS                               |  1 +
 package/Config.in                        |  1 +
 package/python-pybind/Config.in          |  8 ++++++++
 package/python-pybind/python-pybind.hash |  4 ++++
 package/python-pybind/python-pybind.mk   | 13 +++++++++++++
 5 files changed, 27 insertions(+)

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 <guillaume.bressaix@gmail.com>
 F:	package/liquid-dsp/
 F:	package/pixiewps/
+F:	package/python-pybind/
 F:	package/reaver/
 
 N:	Guo Ren <ren_guo@c-sky.com>
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..604cb9ee67
--- /dev/null
+++ b/package/python-pybind/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_PYBIND
+	bool "python-pybind"
+	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..751b0bdf6e
--- /dev/null
+++ b/package/python-pybind/python-pybind.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504   python-pybind-2.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..634e869e40
--- /dev/null
+++ b/package/python-pybind/python-pybind.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-pybind
+#
+################################################################################
+
+PYTHON_PYBIND_VERSION = 2.5.0
+PYTHON_PYBIND_SITE = $(call github,pybind,pybind11,v$(PYTHON_PYBIND_VERSION))
+PYTHON_PYBIND_LICENSE = BSD-3-Clause
+PYTHON_PYBIND_LICENSE_FILES = LICENSE
+PYTHON_PYBIND_SETUP_TYPE = setuptools
+
+$(eval $(python-package))

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [git commit] package/python-pybind: new package
  2020-06-10 20:53 [Buildroot] [git commit] package/python-pybind: new package Thomas Petazzoni
@ 2020-07-12 21:21 ` Peter Korsgaard
  2020-07-12 21:40   ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2020-07-12 21:21 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=f42f2a63b3c5733dc56a58b18d6ba417a59d8342
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > PyBind is a light (headers only) package for C++/Python and Python/C++
 > bindings.

 > Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
 > ---
 >  DEVELOPERS                               |  1 +
 >  package/Config.in                        |  1 +
 >  package/python-pybind/Config.in          |  8 ++++++++
 >  package/python-pybind/python-pybind.hash |  4 ++++
 >  package/python-pybind/python-pybind.mk   | 13 +++++++++++++
 >  5 files changed, 27 insertions(+)

 > 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 <guillaume.bressaix@gmail.com>
 >  F:	package/liquid-dsp/
 >  F:	package/pixiewps/
 > +F:	package/python-pybind/
 >  F:	package/reaver/
 
 >  N:	Guo Ren <ren_guo@c-sky.com>
 > 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..604cb9ee67
 > --- /dev/null
 > +++ b/package/python-pybind/Config.in
 > @@ -0,0 +1,8 @@
 > +config BR2_PACKAGE_PYTHON_PYBIND
 > +	bool "python-pybind"
 > +	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.

If this is C++ code then it should presumably depend on
BR2_INSTALL_LIBSTDCPP?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [git commit] package/python-pybind: new package
  2020-07-12 21:21 ` Peter Korsgaard
@ 2020-07-12 21:40   ` Thomas Petazzoni
  2020-07-13  8:17     ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2020-07-12 21:40 UTC (permalink / raw)
  To: buildroot

On Sun, 12 Jul 2020 23:21:45 +0200
Peter Korsgaard <peter@korsgaard.com> wrote:

>  > diff --git a/package/python-pybind/Config.in b/package/python-pybind/Config.in
>  > new file mode 100644
>  > index 0000000000..604cb9ee67
>  > --- /dev/null
>  > +++ b/package/python-pybind/Config.in
>  > @@ -0,0 +1,8 @@
>  > +config BR2_PACKAGE_PYTHON_PYBIND
>  > +	bool "python-pybind"
>  > +	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.  
> 
> If this is C++ code then it should presumably depend on
> BR2_INSTALL_LIBSTDCPP?

It's a header-only library, so by itself, it doesn't need C++ to build,
at least that was my understanding. But I think we got some other
comments that say additional work is needed for this package to be
fully useful. I haven't had the chance to look into them in detail
though.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [git commit] package/python-pybind: new package
  2020-07-12 21:40   ` Thomas Petazzoni
@ 2020-07-13  8:17     ` Peter Korsgaard
  2020-07-13 11:38       ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2020-07-13  8:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Sun, 12 Jul 2020 23:21:45 +0200
 > Peter Korsgaard <peter@korsgaard.com> wrote:

 >> > diff --git a/package/python-pybind/Config.in b/package/python-pybind/Config.in
 >> > new file mode 100644
 >> > index 0000000000..604cb9ee67
 >> > --- /dev/null
 >> > +++ b/package/python-pybind/Config.in
 >> > @@ -0,0 +1,8 @@
 >> > +config BR2_PACKAGE_PYTHON_PYBIND
 >> > +	bool "python-pybind"
 >> > +	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.  
 >> 
 >> If this is C++ code then it should presumably depend on
 >> BR2_INSTALL_LIBSTDCPP?

 > It's a header-only library, so by itself, it doesn't need C++ to build,
 > at least that was my understanding.

True, but you cannot actually do anything with it unless you have C++
support in the toolchain - So I don't think it makes any sense to show
it then.

 > But I think we got some other comments that say additional work is
 > needed for this package to be fully useful. I haven't had the chance
 > to look into them in detail though.

Ok.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [git commit] package/python-pybind: new package
  2020-07-13  8:17     ` Peter Korsgaard
@ 2020-07-13 11:38       ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2020-07-13 11:38 UTC (permalink / raw)
  To: buildroot

On Mon, 13 Jul 2020 10:17:08 +0200
Peter Korsgaard <peter@korsgaard.com> wrote:

>  > It's a header-only library, so by itself, it doesn't need C++ to build,
>  > at least that was my understanding.  
> 
> True, but you cannot actually do anything with it unless you have C++
> support in the toolchain - So I don't think it makes any sense to show
> it then.

Yes, I agree, we need to change that.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-13 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 20:53 [Buildroot] [git commit] package/python-pybind: new package Thomas Petazzoni
2020-07-12 21:21 ` Peter Korsgaard
2020-07-12 21:40   ` Thomas Petazzoni
2020-07-13  8:17     ` Peter Korsgaard
2020-07-13 11:38       ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.