* [Buildroot] [PATCH 1/2] package/python-fonttools: add host-python package
@ 2026-05-04 15:16 Alexandre Ondet
0 siblings, 0 replies; only message in thread
From: Alexandre Ondet @ 2026-05-04 15:16 UTC (permalink / raw)
To: buildroot; +Cc: Alexandre Ondet, James Hilliard, Thomas Petazzoni
Some setuptools-based packages (e.g. fpdf2) invoke fonttools CLI tools such as pyftsubset during the build. Register the host variant so host-python-fonttools can be selected as a build dependency.
HOST_PYTHON_FONTTOOLS_* mirror the existing Cython-enabled target recipe.
Signed-off-by: Alexandre Ondet <frcomdev@gmail.com>
---
package/Config.in.host | 1 +
package/python-fonttools/Config.in.host | 7 +++++++
package/python-fonttools/python-fonttools.mk | 3 +++
3 files changed, 11 insertions(+)
create mode 100644 package/python-fonttools/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index bb6732a639..4668c2ad42 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -88,6 +88,7 @@ menu "Host utilities"
source "package/pru-software-support/Config.in.host"
source "package/pwgen/Config.in.host"
source "package/python-cython/Config.in.host"
+ source "package/python-fonttools/Config.in.host"
source "package/python-greenlet/Config.in.host"
source "package/python-iniparse/Config.in.host"
source "package/python-kflash/Config.in.host"
diff --git a/package/python-fonttools/Config.in.host b/package/python-fonttools/Config.in.host
new file mode 100644
index 0000000000..5263963b79
--- /dev/null
+++ b/package/python-fonttools/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_PYTHON_FONTTOOLS
+ bool "host python-fonttools"
+ help
+ Tools to manipulate font files (host). Provides CLI utilities such as
+ pyftsubset used by some Python packages at build time.
+
+ https://github.com/fonttools/fonttools
diff --git a/package/python-fonttools/python-fonttools.mk b/package/python-fonttools/python-fonttools.mk
index 1eb8224197..9e3a53d871 100644
--- a/package/python-fonttools/python-fonttools.mk
+++ b/package/python-fonttools/python-fonttools.mk
@@ -12,5 +12,8 @@ PYTHON_FONTTOOLS_LICENSE = MIT
PYTHON_FONTTOOLS_LICENSE_FILES = LICENSE
PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
+HOST_PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
+HOST_PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.53.0.windows.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-04 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 15:16 [Buildroot] [PATCH 1/2] package/python-fonttools: add host-python package Alexandre Ondet
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.