All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package
@ 2022-07-27 19:29 Guillaume W. Bres
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 2/4] package/python-beniget: " Guillaume W. Bres
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Guillaume W. Bres @ 2022-07-27 19:29 UTC (permalink / raw)
  To: buildroot
  Cc: Guillaume William Brs, Asaf Kahlon, Jagan Teki, Thomas Petazzoni,
	jmfriedt, gwen

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Generated with scanpypi and converted to host.

It is a dependency of python-beniget and python-pythran.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 package/python-gast/python-gast.hash |  5 +++++
 package/python-gast/python-gast.mk   | 14 ++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 package/python-gast/python-gast.hash
 create mode 100644 package/python-gast/python-gast.mk

diff --git a/package/python-gast/python-gast.hash b/package/python-gast/python-gast.hash
new file mode 100644
index 0000000000..f16d001a6a
--- /dev/null
+++ b/package/python-gast/python-gast.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/gast/json
+md5  fdff900805e03e9dd76d377eb4cbaed7  gast-0.5.3.tar.gz
+sha256  cfbea25820e653af9c7d1807f659ce0a0a9c64f2439421a7bba4f0983f532dea  gast-0.5.3.tar.gz
+# Locally computed sha256 checksums
+sha256  6a04bbabd9b48bea6bf7c0bd3f3a062e1476b3c403a746448fd69b0d902e148f  LICENSE
diff --git a/package/python-gast/python-gast.mk b/package/python-gast/python-gast.mk
new file mode 100644
index 0000000000..e02e87fb23
--- /dev/null
+++ b/package/python-gast/python-gast.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-gast
+#
+################################################################################
+
+PYTHON_GAST_VERSION = 0.5.3
+PYTHON_GAST_SOURCE = gast-$(PYTHON_GAST_VERSION).tar.gz
+PYTHON_GAST_SITE = https://files.pythonhosted.org/packages/48/a3/0bd844c54ae8141642088b7ae09dd38fec2ec7faa9b7d25bb6a23c1f266f
+PYTHON_GAST_SETUP_TYPE = setuptools
+PYTHON_GAST_LICENSE = BSD-3-Clause
+PYTHON_GAST_LICENSE_FILES = LICENSE
+
+$(eval $(host-python-package))
-- 
2.20.1

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

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

* [Buildroot] [PATCH v5 2/4] package/python-beniget: new host-only package
  2022-07-27 19:29 [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Guillaume W. Bres
@ 2022-07-27 19:29 ` Guillaume W. Bres
  2022-08-01 17:40   ` Thomas Petazzoni via buildroot
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 3/4] package/python-pythran: " Guillaume W. Bres
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Guillaume W. Bres @ 2022-07-27 19:29 UTC (permalink / raw)
  To: buildroot
  Cc: Guillaume William Brs, Asaf Kahlon, Jagan Teki, Thomas Petazzoni,
	jmfriedt, gwen

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Generated with scanpypi and converted to host.

It is a dependency of python-pythran.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 package/python-beniget/python-beniget.hash |  5 +++++
 package/python-beniget/python-beniget.mk   | 15 +++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 package/python-beniget/python-beniget.hash
 create mode 100644 package/python-beniget/python-beniget.mk

diff --git a/package/python-beniget/python-beniget.hash b/package/python-beniget/python-beniget.hash
new file mode 100644
index 0000000000..cd4fa7b873
--- /dev/null
+++ b/package/python-beniget/python-beniget.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/beniget/json
+md5  a2bbe7f17f10f9c127d8ef00692ddc55  beniget-0.4.1.tar.gz
+sha256  75554b3b8ad0553ce2f607627dad3d95c60c441189875b98e097528f8e23ac0c  beniget-0.4.1.tar.gz
+# Locally computed sha256 checksums
+sha256  64ad3e304e9d2d8731c26ac3e652335a6016e38be2f71fe30350be51c6d500b0  LICENSE
diff --git a/package/python-beniget/python-beniget.mk b/package/python-beniget/python-beniget.mk
new file mode 100644
index 0000000000..9970546b14
--- /dev/null
+++ b/package/python-beniget/python-beniget.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-beniget
+#
+################################################################################
+
+PYTHON_BENIGET_VERSION = 0.4.1
+PYTHON_BENIGET_SOURCE = beniget-$(PYTHON_BENIGET_VERSION).tar.gz
+PYTHON_BENIGET_SITE = https://files.pythonhosted.org/packages/14/e7/50cbac38f77eca8efd39516be6651fdb9f3c4c0fab8cf2cf05f612578737
+PYTHON_BENIGET_SETUP_TYPE = setuptools
+PYTHON_BENIGET_LICENSE = BSD-3-Clause
+PYTHON_BENIGET_LICENSE_FILES = LICENSE
+HOST_PYTHON_BENIGET_DEPENDENCIES = host-python-gast
+
+$(eval $(host-python-package))
-- 
2.20.1

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

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

* [Buildroot] [PATCH v5 3/4] package/python-pythran: new host-only package
  2022-07-27 19:29 [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Guillaume W. Bres
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 2/4] package/python-beniget: " Guillaume W. Bres
@ 2022-07-27 19:29 ` Guillaume W. Bres
  2022-08-01 17:40   ` Thomas Petazzoni via buildroot
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 4/4] package/python-scipy: new package Guillaume W. Bres
  2022-08-01 17:40 ` [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Thomas Petazzoni via buildroot
  3 siblings, 1 reply; 13+ messages in thread
From: Guillaume W. Bres @ 2022-07-27 19:29 UTC (permalink / raw)
  To: buildroot
  Cc: Guillaume William Brs, Asaf Kahlon, Jagan Teki, Thomas Petazzoni,
	jmfriedt, gwen

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Generated with scanpypi and converted to host.

It is a dependency of python-scipy.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 package/python-pythran/python-pythran.hash |  6 ++++++
 package/python-pythran/python-pythran.mk   | 19 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 package/python-pythran/python-pythran.hash
 create mode 100644 package/python-pythran/python-pythran.mk

diff --git a/package/python-pythran/python-pythran.hash b/package/python-pythran/python-pythran.hash
new file mode 100644
index 0000000000..a24bb4dc4c
--- /dev/null
+++ b/package/python-pythran/python-pythran.hash
@@ -0,0 +1,6 @@
+# md5, sha256 from https://pypi.org/pypi/pythran/json
+md5  e09e90484771937ab499380858bdb18d  pythran-0.11.0.tar.gz
+sha256  0b2cba712e09f7630879dff69f268460bfe34a6d6000451b47d598558a92a875  pythran-0.11.0.tar.gz
+# Locally computed sha256 checksums
+sha256  0be9f14c66a9a3cb66d5263a6495437862ce0c9cdf60d4a6c36d1e51b1244c6e  LICENSE
+sha256  e1c0ed0a99e4462016d79d835f1f479b78c4d4a07fe66598e97f449503ffd178  docs/LICENSE.rst
diff --git a/package/python-pythran/python-pythran.mk b/package/python-pythran/python-pythran.mk
new file mode 100644
index 0000000000..8234513af3
--- /dev/null
+++ b/package/python-pythran/python-pythran.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# python-pythran
+#
+################################################################################
+
+PYTHON_PYTHRAN_VERSION = 0.11.0
+PYTHON_PYTHRAN_SOURCE = pythran-$(PYTHON_PYTHRAN_VERSION).tar.gz
+PYTHON_PYTHRAN_SITE = https://files.pythonhosted.org/packages/88/9f/161f08131abf7f23920cee29b691de27f10fd97ac09fb2f3532b3a7f9b96
+PYTHON_PYTHRAN_SETUP_TYPE = setuptools
+PYTHON_PYTHRAN_LICENSE = BSD-3-Clause
+PYTHON_PYTHRAN_LICENSE_FILES = LICENSE docs/LICENSE.rst
+HOST_PYTHON_PYTHRAN_DEPENDENCIES = \
+	host-python-beniget \
+	host-python-gast \
+	host-python-numpy \
+	host-python-ply
+
+$(eval $(host-python-package))
-- 
2.20.1

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

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

* [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-07-27 19:29 [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Guillaume W. Bres
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 2/4] package/python-beniget: " Guillaume W. Bres
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 3/4] package/python-pythran: " Guillaume W. Bres
@ 2022-07-27 19:29 ` Guillaume W. Bres
  2022-08-01 17:42   ` Thomas Petazzoni via buildroot
  2022-08-01 17:40 ` [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Thomas Petazzoni via buildroot
  3 siblings, 1 reply; 13+ messages in thread
From: Guillaume W. Bres @ 2022-07-27 19:29 UTC (permalink / raw)
  To: buildroot
  Cc: Guillaume William Brs, Asaf Kahlon, Jagan Teki, Thomas Petazzoni,
	jmfriedt, gwen

From: Jagan Teki <jagan@amarulasolutions.com>

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
[Arnout:
 - Indent hash file with two spaces.
 - Bump to 1.7.3 to fix build failure with recent GCC.
 - Get from github instead of PyPI.
 - Add host-meson and host-python-pythran dependencies.
 - Properly propagate Config.in dependencies.
 - Correct usage of BR2_INSTALL_LIBSTDCPP symbol.
 - Remove F77, no longer used.
]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Guillaume:
 - -lnpymath: npymath.ini localization problem
 - -lnpyrandom resolution problem
 - fix legal-info for latest version LICENSE.txt
 - zlib is a scipy::io module runtime requirement
 - update serie for scipy 1.8.1 (latest)
]
Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 DEVELOPERS                             |  3 ++
 package/Config.in                      |  1 +
 package/python-scipy/Config.in         | 30 ++++++++++++
 package/python-scipy/python-scipy.hash |  9 ++++
 package/python-scipy/python-scipy.mk   | 63 ++++++++++++++++++++++++++
 5 files changed, 106 insertions(+)
 create mode 100644 package/python-scipy/Config.in
 create mode 100644 package/python-scipy/python-scipy.hash
 create mode 100644 package/python-scipy/python-scipy.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 50a295a743..ee6cb536ab 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1180,6 +1180,7 @@ F:	package/libxcrypt/
 F:	package/liquid-dsp/
 F:	package/pixiewps/
 F:	package/python-pybind/
+F:	package/python-scipy/
 F:	package/reaver/
 F:	support/testing/tests/package/br2-external/python-pybind
 F:	support/testing/tests/package/sample_python_pybind.py
@@ -1307,6 +1308,8 @@ F:	configs/orangepi_win_defconfig
 F:	configs/orangepi_zero_plus2_defconfig
 F:	configs/pine64_defconfig
 F:	configs/pine64_sopine_defconfig
+F:	package/python-pybind/
+F:	package/python-scipy/
 
 N:	James Hilliard <james.hilliard1@gmail.com>
 F:	package/apcupsd/
diff --git a/package/Config.in b/package/Config.in
index 174cfde73e..985de3aedb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1228,6 +1228,7 @@ menu "External python modules"
 	source "package/python-scandir/Config.in"
 	source "package/python-scapy/Config.in"
 	source "package/python-schedule/Config.in"
+	source "package/python-scipy/Config.in"
 	source "package/python-sdnotify/Config.in"
 	source "package/python-secretstorage/Config.in"
 	source "package/python-see/Config.in"
diff --git a/package/python-scipy/Config.in b/package/python-scipy/Config.in
new file mode 100644
index 0000000000..a016d411af
--- /dev/null
+++ b/package/python-scipy/Config.in
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_PYTHON_SCIPY
+	bool "python-scipy"
+	depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # openblas
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS # python-numpy
+	depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS # lapack
+	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
+	depends on BR2_TOOLCHAIN_HAS_FORTRAN # lapack
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_LAPACK
+	select BR2_PACKAGE_OPENBLAS
+	select BR2_PACKAGE_ZLIB # runtime scipy::io
+	select BR2_PACKAGE_PYTHON_NUMPY # runtime
+	select BR2_PACKAGE_PYTHON_PYBIND
+	help
+	  The SciPy library is one of the core packages that make up the
+	  SciPy stack. It provides many user-friendly and efficient
+	  numerical routines such as routines for numerical integration,
+	  interpolation, optimization, linear algebra and statistics.
+
+	  https://www.scipy.org/scipylib/
+
+comment "python-scipy needs toolchain w/ fortran and c++ and glibc or musl"
+	depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PYTHON3
+	depends on !BR2_TOOLCHAIN_HAS_FORTRAN || \
+		!BR2_INSTALL_LIBSTDCPP || \
+		(!BR2_TOOLCHAIN_USES_GLIBC && !BR2_TOOLCHAIN_USES_MUSL)
diff --git a/package/python-scipy/python-scipy.hash b/package/python-scipy/python-scipy.hash
new file mode 100644
index 0000000000..bdded7a1a6
--- /dev/null
+++ b/package/python-scipy/python-scipy.hash
@@ -0,0 +1,9 @@
+# Locally generated
+sha256  0140dd24d14ce194fdb3df496c2190f0896ca84ac98bf5d69c3b3fb7bde1a1e9  scipy-1.8.1.tar.xz
+sha256  32b2f41fb8c1193a066c1686bb3237e79f918685bf545cb6dfcb68753ac35152  LICENSE.txt
+sha256  37e64a498894ac7c3b070023e3689e954a8ecf8a23b90968d09a455f1b4f7b35  scipy/linalg/src/lapack_deprecations/LICENSE
+sha256  606209a000716c5f66e33e180ce08434b96ed17db4975ab9723c6b5fbcc89609  scipy/ndimage/LICENSE.txt
+sha256  3df9207af2fdb861af0ae3b22026f163b9bcfab4e525dc4943afe2ffa3f77624  scipy/optimize/tnc/LICENSE
+sha256  f0cedf52503b2d42b83411a0a16e6fefac346dfad8fddc66f50050150123470c  scipy/sparse/linalg/dsolve/SuperLU/License.txt
+sha256  0926566f9f406178d1214f8cc796e166b1213dd7c05e0c5b461a8b8ac9e50bbe  scipy/sparse/linalg/eigen/arpack/ARPACK/COPYING
+sha256  34db0c0c4f931861d720555c9cd7a2e228d1290ba29af0f2ee80c41bb2038afb  scipy/spatial/qhull_src/COPYING.txt
diff --git a/package/python-scipy/python-scipy.mk b/package/python-scipy/python-scipy.mk
new file mode 100644
index 0000000000..de240198df
--- /dev/null
+++ b/package/python-scipy/python-scipy.mk
@@ -0,0 +1,63 @@
+################################################################################
+#
+# python-scipy
+#
+################################################################################
+
+PYTHON_SCIPY_VERSION = 1.8.1
+PYTHON_SCIPY_SOURCE = scipy-$(PYTHON_SCIPY_VERSION).tar.xz
+PYTHON_SCIPY_SITE = https://github.com/scipy/scipy/releases/download/v$(PYTHON_SCIPY_VERSION)
+PYTHON_SCIPY_LICENSE = \
+	BSD-3-Clause, \
+	BSD-2-Clause, \
+	BSD, \
+	BSD-Style, \
+	Apache-2.0, \
+	MIT
+PYTHON_SCIPY_LICENSE_FILES = \
+	LICENSE.txt \
+	scipy/linalg/src/lapack_deprecations/LICENSE \
+	scipy/ndimage/LICENSE.txt \
+	scipy/optimize/tnc/LICENSE \
+	scipy/sparse/linalg/dsolve/SuperLU/License.txt \
+	scipy/sparse/linalg/eigen/arpack/ARPACK/COPYING \
+	scipy/spatial/qhull_src/COPYING.txt
+PYTHON_SCIPY_DEPENDENCIES += \
+	host-meson \
+	host-python-numpy \
+	host-python-pythran \
+	zlib \
+	lapack \
+	openblas \
+	python-numpy \
+	python-pybind
+PYTHON_SCIPY_INSTALL_STAGING = YES
+
+PYTHON_SCIPY_SETUP_TYPE = setuptools
+PYTHON_SCIPY_BUILD_OPTS = config_fc --fcompiler=gnu95
+
+# -lnpymath npymath.ini localization
+PYTHON_SCIPY_NPY_PKG_CONFIG_PATH = \
+	$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/numpy/core/lib/npy-pkg-config
+
+PYTHON_SCIPY_LDFLAGS = $(TARGET_LDFLAGS) -shared \
+	-L$(PYTHON3_PATH)/site-packages/numpy/core/lib
+# -lnpyrandom localization
+PYTHON_SCIPY_LDFLAGS += \
+	-L$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/numpy/random/lib
+
+PYTHON_SCIPY_ENV = \
+	F90=$(TARGET_FC) \
+	NPY_PKG_CONFIG_PATH=$(PYTHON_SCIPY_NPY_PKG_CONFIG_PATH) \
+	LDFLAGS="$(PYTHON_SCIPY_LDFLAGS)"
+
+# Provide system configuration options to numpy distutils extenions, telling
+# to find all include files and libraries in staging directory.
+define PYTHON_SCIPY_CONFIGURE_CMDS
+	-rm -f $(@D)/site.cfg
+	echo "[DEFAULT]" >> $(@D)/site.cfg
+	echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
+	echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
+endef
+
+$(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] 13+ messages in thread

* Re: [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package
  2022-07-27 19:29 [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Guillaume W. Bres
                   ` (2 preceding siblings ...)
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 4/4] package/python-scipy: new package Guillaume W. Bres
@ 2022-08-01 17:40 ` Thomas Petazzoni via buildroot
  3 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-01 17:40 UTC (permalink / raw)
  To: Guillaume W. Bres; +Cc: jmfriedt, gwen, Jagan Teki, Asaf Kahlon, buildroot

On Wed, 27 Jul 2022 21:29:45 +0200
"Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:

> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
> 
> Generated with scanpypi and converted to host.
> 
> It is a dependency of python-beniget and python-pythran.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
> ---
>  package/python-gast/python-gast.hash |  5 +++++
>  package/python-gast/python-gast.mk   | 14 ++++++++++++++
>  2 files changed, 19 insertions(+)
>  create mode 100644 package/python-gast/python-gast.hash
>  create mode 100644 package/python-gast/python-gast.mk

Applied to master with an entry in the DEVELOPERS file pointing to
Guillaume, assuming he is willing to maintain this package. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 2/4] package/python-beniget: new host-only package
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 2/4] package/python-beniget: " Guillaume W. Bres
@ 2022-08-01 17:40   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-01 17:40 UTC (permalink / raw)
  To: Guillaume W. Bres; +Cc: jmfriedt, gwen, Jagan Teki, Asaf Kahlon, buildroot

On Wed, 27 Jul 2022 21:29:46 +0200
"Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:

> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
> 
> Generated with scanpypi and converted to host.
> 
> It is a dependency of python-pythran.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
> ---
>  package/python-beniget/python-beniget.hash |  5 +++++
>  package/python-beniget/python-beniget.mk   | 15 +++++++++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 package/python-beniget/python-beniget.hash
>  create mode 100644 package/python-beniget/python-beniget.mk

Applied to master with an entry in the DEVELOPERS file pointing to
Guillaume, assuming he is willing to maintain this package. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 3/4] package/python-pythran: new host-only package
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 3/4] package/python-pythran: " Guillaume W. Bres
@ 2022-08-01 17:40   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-01 17:40 UTC (permalink / raw)
  To: Guillaume W. Bres; +Cc: jmfriedt, gwen, Jagan Teki, Asaf Kahlon, buildroot

On Wed, 27 Jul 2022 21:29:47 +0200
"Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:

> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
> 
> Generated with scanpypi and converted to host.
> 
> It is a dependency of python-scipy.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
> ---
>  package/python-pythran/python-pythran.hash |  6 ++++++
>  package/python-pythran/python-pythran.mk   | 19 +++++++++++++++++++
>  2 files changed, 25 insertions(+)
>  create mode 100644 package/python-pythran/python-pythran.hash
>  create mode 100644 package/python-pythran/python-pythran.mk

Applied to master with an entry in the DEVELOPERS file pointing to
Guillaume, assuming he is willing to maintain this package. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-07-27 19:29 ` [Buildroot] [PATCH v5 4/4] package/python-scipy: new package Guillaume W. Bres
@ 2022-08-01 17:42   ` Thomas Petazzoni via buildroot
  2022-08-01 17:58     ` Guillaume Bres
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-01 17:42 UTC (permalink / raw)
  To: Guillaume W. Bres; +Cc: jmfriedt, gwen, Jagan Teki, Asaf Kahlon, buildroot

Hello,

On Wed, 27 Jul 2022 21:29:48 +0200
"Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:

> From: Jagan Teki <jagan@amarulasolutions.com>
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> [Arnout:
>  - Indent hash file with two spaces.
>  - Bump to 1.7.3 to fix build failure with recent GCC.
>  - Get from github instead of PyPI.
>  - Add host-meson and host-python-pythran dependencies.
>  - Properly propagate Config.in dependencies.
>  - Correct usage of BR2_INSTALL_LIBSTDCPP symbol.
>  - Remove F77, no longer used.
> ]
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> [Guillaume:
>  - -lnpymath: npymath.ini localization problem
>  - -lnpyrandom resolution problem
>  - fix legal-info for latest version LICENSE.txt
>  - zlib is a scipy::io module runtime requirement
>  - update serie for scipy 1.8.1 (latest)
> ]
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>

I have applied, with the following changes:

    [Thomas:
     - add runtime test
     - drop dependency on OpenBLAS, which is not needed in a minimal
       configuration
     - remove PYTHON_SCIPY_NPY_PKG_CONFIG_PATH logic as it is no longer
       needed
    ]

Could you please:

 (1) Review the runtime test, to see if it can be improved with some
     better testing.

 (2) Review the OpenBLAS dependency, to see if it needs to be added as
     an optional dependency in some way.

> +# Provide system configuration options to numpy distutils extenions, telling
> +# to find all include files and libraries in staging directory.
> +define PYTHON_SCIPY_CONFIGURE_CMDS
> +	-rm -f $(@D)/site.cfg
> +	echo "[DEFAULT]" >> $(@D)/site.cfg
> +	echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
> +	echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
> +endef

This part is a bit annoying, as it's duplicated from python-numpy.mk. I
looked a bit, but couldn't really find a good way of avoiding this
duplication.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-08-01 17:42   ` Thomas Petazzoni via buildroot
@ 2022-08-01 17:58     ` Guillaume Bres
  2022-08-01 18:15       ` Arnout Vandecappelle
  2022-08-01 18:59       ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 13+ messages in thread
From: Guillaume Bres @ 2022-08-01 17:58 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: jmfriedt, gwenhael.goavec, Jagan Teki, Asaf Kahlon, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 2671 bytes --]

Hello,
thank you Thomas for merging this serie and also for adding the runtime
test, I did try to provide it but could not get it to work.
I will give it a try in the next few days

Guillaume W. Bres
Software engineer
<guillaume.bressaix@gmail.com>


Le lun. 1 août 2022 à 19:42, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a écrit :

> Hello,
>
> On Wed, 27 Jul 2022 21:29:48 +0200
> "Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:
>
> > From: Jagan Teki <jagan@amarulasolutions.com>
> >
> > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> > [Arnout:
> >  - Indent hash file with two spaces.
> >  - Bump to 1.7.3 to fix build failure with recent GCC.
> >  - Get from github instead of PyPI.
> >  - Add host-meson and host-python-pythran dependencies.
> >  - Properly propagate Config.in dependencies.
> >  - Correct usage of BR2_INSTALL_LIBSTDCPP symbol.
> >  - Remove F77, no longer used.
> > ]
> > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> > [Guillaume:
> >  - -lnpymath: npymath.ini localization problem
> >  - -lnpyrandom resolution problem
> >  - fix legal-info for latest version LICENSE.txt
> >  - zlib is a scipy::io module runtime requirement
> >  - update serie for scipy 1.8.1 (latest)
> > ]
> > Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
>
> I have applied, with the following changes:
>
>     [Thomas:
>      - add runtime test
>      - drop dependency on OpenBLAS, which is not needed in a minimal
>        configuration
>      - remove PYTHON_SCIPY_NPY_PKG_CONFIG_PATH logic as it is no longer
>        needed
>     ]
>
> Could you please:
>
>  (1) Review the runtime test, to see if it can be improved with some
>      better testing.
>
>  (2) Review the OpenBLAS dependency, to see if it needs to be added as
>      an optional dependency in some way.
>
> > +# Provide system configuration options to numpy distutils extenions,
> telling
> > +# to find all include files and libraries in staging directory.
> > +define PYTHON_SCIPY_CONFIGURE_CMDS
> > +     -rm -f $(@D)/site.cfg
> > +     echo "[DEFAULT]" >> $(@D)/site.cfg
> > +     echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
> > +     echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
> > +endef
>
> This part is a bit annoying, as it's duplicated from python-numpy.mk. I
> looked a bit, but couldn't really find a good way of avoiding this
> duplication.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>

[-- Attachment #1.2: Type: text/html, Size: 4328 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

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

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-08-01 17:58     ` Guillaume Bres
@ 2022-08-01 18:15       ` Arnout Vandecappelle
  2022-08-01 18:59       ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 13+ messages in thread
From: Arnout Vandecappelle @ 2022-08-01 18:15 UTC (permalink / raw)
  To: Guillaume Bres, Thomas Petazzoni
  Cc: jmfriedt, buildroot, gwenhael.goavec, Asaf Kahlon, Jagan Teki



On 01/08/2022 19:58, Guillaume Bres wrote:
> Hello,
> thank you Thomas for merging this serie and also for adding the runtime test, I 
> did try to provide it but could not get it to work.
> I will give it a try in the next few days

  Don't hesitate to post even a non-working version that people can comment on. 
Please do post it as an RFC though (--subject-prefix=RFC). And of course there's 
no promise that people will *actually* comment on it :-).

  Regards,
  Arnout

> 
> Guillaume W. Bres
> Software engineer
> <guillaume.bressaix@gmail.com <mailto:guillaume.bressaix@gmail.com>>
> 
> 
> Le lun. 1 août 2022 à 19:42, Thomas Petazzoni <thomas.petazzoni@bootlin.com 
> <mailto:thomas.petazzoni@bootlin.com>> a écrit :
> 
>     Hello,
> 
>     On Wed, 27 Jul 2022 21:29:48 +0200
>     "Guillaume W. Bres" <guillaume.bressaix@gmail.com
>     <mailto:guillaume.bressaix@gmail.com>> wrote:
> 
>      > From: Jagan Teki <jagan@amarulasolutions.com
>     <mailto:jagan@amarulasolutions.com>>
>      >
>      > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com
>     <mailto:jagan@amarulasolutions.com>>
>      > [Arnout:
>      >  - Indent hash file with two spaces.
>      >  - Bump to 1.7.3 to fix build failure with recent GCC.
>      >  - Get from github instead of PyPI.
>      >  - Add host-meson and host-python-pythran dependencies.
>      >  - Properly propagate Config.in dependencies.
>      >  - Correct usage of BR2_INSTALL_LIBSTDCPP symbol.
>      >  - Remove F77, no longer used.
>      > ]
>      > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be
>     <mailto:arnout@mind.be>>
>      > [Guillaume:
>      >  - -lnpymath: npymath.ini localization problem
>      >  - -lnpyrandom resolution problem
>      >  - fix legal-info for latest version LICENSE.txt
>      >  - zlib is a scipy::io module runtime requirement
>      >  - update serie for scipy 1.8.1 (latest)
>      > ]
>      > Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com
>     <mailto:guillaume.bressaix@gmail.com>>
> 
>     I have applied, with the following changes:
> 
>          [Thomas:
>           - add runtime test
>           - drop dependency on OpenBLAS, which is not needed in a minimal
>             configuration
>           - remove PYTHON_SCIPY_NPY_PKG_CONFIG_PATH logic as it is no longer
>             needed
>          ]
> 
>     Could you please:
> 
>       (1) Review the runtime test, to see if it can be improved with some
>           better testing.
> 
>       (2) Review the OpenBLAS dependency, to see if it needs to be added as
>           an optional dependency in some way.
> 
>      > +# Provide system configuration options to numpy distutils extenions, telling
>      > +# to find all include files and libraries in staging directory.
>      > +define PYTHON_SCIPY_CONFIGURE_CMDS
>      > +     -rm -f $(@D)/site.cfg
>      > +     echo "[DEFAULT]" >> $(@D)/site.cfg
>      > +     echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
>      > +     echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
>      > +endef
> 
>     This part is a bit annoying, as it's duplicated from python-numpy.mk
>     <http://python-numpy.mk>. I
>     looked a bit, but couldn't really find a good way of avoiding this
>     duplication.
> 
>     Thanks!
> 
>     Thomas
>     -- 
>     Thomas Petazzoni, co-owner and CEO, Bootlin
>     Embedded Linux and Kernel engineering and training
>     https://bootlin.com <https://bootlin.com>
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-08-01 17:58     ` Guillaume Bres
  2022-08-01 18:15       ` Arnout Vandecappelle
@ 2022-08-01 18:59       ` Thomas Petazzoni via buildroot
  2022-08-02  5:33         ` Guillaume Bres
  1 sibling, 1 reply; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-01 18:59 UTC (permalink / raw)
  To: Guillaume Bres
  Cc: jmfriedt, gwenhael.goavec, Jagan Teki, Asaf Kahlon, buildroot

On Mon, 1 Aug 2022 19:58:23 +0200
Guillaume Bres <guillaume.bressaix@gmail.com> wrote:

> thank you Thomas for merging this serie and also for adding the runtime
> test, I did try to provide it but could not get it to work.

Could you give some details on what didn't work? Our runtime test
infrastructure is (I believe?) reasonably simple and straightforward to
use, with tons of existing examples.

The one thing that was tricky here is that most Python test cases use a
CPIO filesystem loaded as an initrd, but that doesn't work for SciPy as
the filesystem is too large for an initrd. Which is why my test case
uses an ext2 filesystem on a hard drive.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-08-01 18:59       ` Thomas Petazzoni via buildroot
@ 2022-08-02  5:33         ` Guillaume Bres
  2022-08-02  7:53           ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 13+ messages in thread
From: Guillaume Bres @ 2022-08-02  5:33 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: jmfriedt, gwenhael.goavec, Jagan Teki, Asaf Kahlon, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1581 bytes --]

Hello Thomas

>Could you give some details on what didn't work? Our runtime test
>infrastructure is (I believe?) reasonably simple and straightforward to
>use, with tons of existing examples
I was trying to get the runtime test (the emulator) to execute the scipy
fulltest ("python -c import scipy; scipy.test()"), as I was thinking it
would be the best thing to do.
But it's not a straightforward scenario and it's super heavy, you need the
repo sources and the pytest suite.

Running small but several portions of the lib is probably the best thing to
do.

Guillaume W. Bres
Software engineer
<guillaume.bressaix@gmail.com>


Le lun. 1 août 2022 à 20:59, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a écrit :

> On Mon, 1 Aug 2022 19:58:23 +0200
> Guillaume Bres <guillaume.bressaix@gmail.com> wrote:
>
> > thank you Thomas for merging this serie and also for adding the runtime
> > test, I did try to provide it but could not get it to work.
>
> Could you give some details on what didn't work? Our runtime test
> infrastructure is (I believe?) reasonably simple and straightforward to
> use, with tons of existing examples.
>
> The one thing that was tricky here is that most Python test cases use a
> CPIO filesystem loaded as an initrd, but that doesn't work for SciPy as
> the filesystem is too large for an initrd. Which is why my test case
> uses an ext2 filesystem on a hard drive.
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>

[-- Attachment #1.2: Type: text/html, Size: 2652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

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

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

* Re: [Buildroot] [PATCH v5 4/4] package/python-scipy: new package
  2022-08-02  5:33         ` Guillaume Bres
@ 2022-08-02  7:53           ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-02  7:53 UTC (permalink / raw)
  To: Guillaume Bres
  Cc: jmfriedt, gwenhael.goavec, Jagan Teki, Asaf Kahlon, buildroot

Hello Guillaume,

On Tue, 2 Aug 2022 07:33:05 +0200
Guillaume Bres <guillaume.bressaix@gmail.com> wrote:

> I was trying to get the runtime test (the emulator) to execute the scipy
> fulltest ("python -c import scipy; scipy.test()"), as I was thinking it
> would be the best thing to do.
> But it's not a straightforward scenario and it's super heavy, you need the
> repo sources and the pytest suite.
> 
> Running small but several portions of the lib is probably the best thing to
> do.

Indeed, full test suites are often too heavy/too complex to run in the
context of our runtime tests, so we tend to create smaller test cases
instead.

Of course, my very small test case could certainly be improved with
additional tests, if necessary.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-02  7:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 19:29 [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Guillaume W. Bres
2022-07-27 19:29 ` [Buildroot] [PATCH v5 2/4] package/python-beniget: " Guillaume W. Bres
2022-08-01 17:40   ` Thomas Petazzoni via buildroot
2022-07-27 19:29 ` [Buildroot] [PATCH v5 3/4] package/python-pythran: " Guillaume W. Bres
2022-08-01 17:40   ` Thomas Petazzoni via buildroot
2022-07-27 19:29 ` [Buildroot] [PATCH v5 4/4] package/python-scipy: new package Guillaume W. Bres
2022-08-01 17:42   ` Thomas Petazzoni via buildroot
2022-08-01 17:58     ` Guillaume Bres
2022-08-01 18:15       ` Arnout Vandecappelle
2022-08-01 18:59       ` Thomas Petazzoni via buildroot
2022-08-02  5:33         ` Guillaume Bres
2022-08-02  7:53           ` Thomas Petazzoni via buildroot
2022-08-01 17:40 ` [Buildroot] [PATCH v5 1/4] package/python-gast: new host-only package Thomas Petazzoni via buildroot

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.