From: Markus Heidelberg via ptxdist <ptxdist@pengutronix.de>
To: <ptxdist@pengutronix.de>
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: [ptxdist] [PATCH 4/5] python3-pydot: new package
Date: Mon, 1 Dec 2025 18:43:46 +0100 [thread overview]
Message-ID: <20251201174347.129488-5-m.heidelberg@cab.de> (raw)
In-Reply-To: <20251201174347.129488-1-m.heidelberg@cab.de>
DOT graphs can be generated even without the graphviz package,
so this optional dependency could be omitted.
Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
rules/python3-pydot.in | 11 ++++++++
rules/python3-pydot.make | 57 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 rules/python3-pydot.in
create mode 100644 rules/python3-pydot.make
diff --git a/rules/python3-pydot.in b/rules/python3-pydot.in
new file mode 100644
index 000000000..839765f12
--- /dev/null
+++ b/rules/python3-pydot.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_PYDOT
+ tristate
+ select HOST_PYTHON3_PYBUILD
+ select HOST_PYTHON3_SETUPTOOLS
+ select PYTHON3
+ select PYTHON3_PYPARSING if RUNTIME
+ prompt "pydot"
+ help
+ Pydot is a Python interface to Graphviz and its DOT language.
diff --git a/rules/python3-pydot.make b/rules/python3-pydot.make
new file mode 100644
index 000000000..33d081cc4
--- /dev/null
+++ b/rules/python3-pydot.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Markus Heidelberg <m.heidelberg@cab.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYDOT) += python3-pydot
+
+#
+# Paths and names
+#
+PYTHON3_PYDOT_VERSION := 4.0.1
+PYTHON3_PYDOT_MD5 := ca020739825a4d6cc3bfcb57dba08460
+PYTHON3_PYDOT := pydot-$(PYTHON3_PYDOT_VERSION)
+PYTHON3_PYDOT_SUFFIX := tar.gz
+PYTHON3_PYDOT_URL := $(call ptx/mirror-pypi, pydot, $(PYTHON3_PYDOT).$(PYTHON3_PYDOT_SUFFIX))
+PYTHON3_PYDOT_SOURCE := $(SRCDIR)/$(PYTHON3_PYDOT).$(PYTHON3_PYDOT_SUFFIX)
+PYTHON3_PYDOT_DIR := $(BUILDDIR)/$(PYTHON3_PYDOT)
+PYTHON3_PYDOT_LICENSE := MIT AND Python-2.0
+PYTHON3_PYDOT_LICENSE_FILES := \
+ file://README.md;startline=252;endline=260;md5=77506fc37df43b60adaca86e24e2e819 \
+ file://pyproject.toml;startline=13;endline=16;md5=856135553b53b2a31192376e7eb8be91 \
+ file://LICENSES/MIT.txt;md5=7dda4e90ded66ab88b86f76169f28663 \
+ file://LICENSES/Python-2.0.txt;md5=a13a605eb35c59f1295e7ad38386132e
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYDOT_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pydot.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-pydot)
+ @$(call install_fixup, python3-pydot,PRIORITY,optional)
+ @$(call install_fixup, python3-pydot,SECTION,base)
+ @$(call install_fixup, python3-pydot,AUTHOR,"Markus Heidelberg <m.heidelberg@cab.de>")
+ @$(call install_fixup, python3-pydot,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-pydot, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES),, *.py)
+
+ @$(call install_finish, python3-pydot)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.43.0
next prev parent reply other threads:[~2025-12-01 17:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 17:43 [ptxdist] [PATCH 0/5] new python3-statemachine package + new/updated dependencies Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 1/5] python3-pyparsing: version bump 2.4.7 -> 3.2.5 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 2/5] python3-packaging: version bump 23.1 -> 25.0 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 3/5] python3-setuptools: version bump 71.1.0 -> 80.9.0 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` Markus Heidelberg via ptxdist [this message]
2025-12-01 17:43 ` [ptxdist] [PATCH 5/5] python3-statemachine: new package Markus Heidelberg via ptxdist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251201174347.129488-5-m.heidelberg@cab.de \
--to=ptxdist@pengutronix.de \
--cc=m.heidelberg@cab.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox