Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] package/python-pybind: fix upgrade to version 2.6.1
@ 2021-12-06 19:31 guillaume.bressaix
  2021-12-06 19:31 ` [Buildroot] [PATCH v2 2/2] package/python-pybind: bump to version 2.8.1 guillaume.bressaix
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: guillaume.bressaix @ 2021-12-06 19:31 UTC (permalink / raw)
  To: buildroot; +Cc: yann.morin.1998, Guillaume W. Bres

From: "Guillaume W. Bres" <guillaume.bressaix@gmail.com>

The python 'setup.py' script needs header files
in $(@D)/pybind11 to work since v2.6.1, and these
files are generated by an internal minimalist cmake build.

Fixes
   http://autobuild.buildroot.net/results/b89f1de64b308dffa73675f1f31ccb0b7be5a10d
   http://autobuild.buildroot.net/results/d0287b7f64f206b0f074908c5780a3632e0cb799
   http://autobuild.buildroot.net/results/27efb545a5a719a5581c8f746d3a3555ff4216ce
   http://autobuild.buildroot.net/results/d2f0a0ad8f6c7178517df109e7d885dac9134c3a
   http://autobuild.buildroot.net/results/b57e9a3279260dae4a590f9421238fcabb2f7cab
   http://autobuild.buildroot.net/results/515e6f2fc6b5780260d98d6bb52b541ce4bf1afe
   http://autobuild.buildroot.net/results/d89c4ecc81222d4f80c951da2232d2e393fa1c69

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>

---
This remains a python-package.

'python setup.py' actually hardcodes a system call to cmake now,
which seems dirty at first. But if we have a cmake env when they
do that, the install variables are passed and installation
is smooth. They probably introduced this call to make setup.py
self sufficient, as most people install this package from 'pip'.

---
 package/python-pybind/python-pybind.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk
index a6a1bdb976..bfd7f6f59a 100644
--- a/package/python-pybind/python-pybind.mk
+++ b/package/python-pybind/python-pybind.mk
@@ -9,5 +9,12 @@ 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
+PYTHON_PYBIND_INSTALL_STAGING = YES
+
+# every single 'python setup.py' call actually calls cmake
+# internally, to populate $(@D)/pybind11 with build requirements.
+# If we have a host-cmake env at that moment, 
+# then the final installation paths are properly defined
+PYTHON_PYBIND_DEPENDENCIES = host-cmake
 
 $(eval $(python-package))
-- 
2.20.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-01-08 10:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-06 19:31 [Buildroot] [PATCH v2 1/2] package/python-pybind: fix upgrade to version 2.6.1 guillaume.bressaix
2021-12-06 19:31 ` [Buildroot] [PATCH v2 2/2] package/python-pybind: bump to version 2.8.1 guillaume.bressaix
2021-12-06 21:45 ` [Buildroot] [PATCH v2 1/2] package/python-pybind: fix upgrade to version 2.6.1 Yann E. MORIN
2021-12-08  9:09   ` Arnout Vandecappelle
2021-12-06 21:57 ` Yann E. MORIN
2021-12-07  8:04   ` Arnout Vandecappelle
2021-12-08 11:19     ` Andreas Naumann
2021-12-08 12:15       ` Guillaume Bres
2022-01-07 21:55       ` Arnout Vandecappelle
2021-12-08 17:18     ` Yann E. MORIN
2022-01-03  8:24   ` Tomi Valkeinen
2022-01-04 12:38     ` [Buildroot] [PATCH v2 1/3] package/python-pybind: fix upgrade to 2.6.1 guillaume.bressaix
2022-01-04 12:39       ` [Buildroot] [PATCH v2 2/3] package/python-pybind: bump to version 2.8.1 guillaume.bressaix
2022-01-07 22:10         ` Arnout Vandecappelle
2022-01-04 12:39       ` [Buildroot] [PATCH v2 3/3] support/testing: add test for python-pybind guillaume.bressaix
2022-01-07 21:57         ` Arnout Vandecappelle
2022-01-08 10:26           ` Guillaume Bres
2022-01-07 21:56       ` [Buildroot] [PATCH v2 1/3] package/python-pybind: fix upgrade to 2.6.1 Arnout Vandecappelle
2022-01-07 21:49     ` [Buildroot] [PATCH v2 1/2] package/python-pybind: fix upgrade to version 2.6.1 Arnout Vandecappelle
2022-01-08 10:09       ` Tomi Valkeinen
2022-01-08 10:49         ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox