Skip to contentSkip to conversation

python3-kaleido: Add a lightweight graphics library

RFC PATCH Mark Hatle 1 participant 2 messages Mar 23, 2022 – Mar 24, 2022 2 messages not in the archive

lore
Share & tools
lore

Mark Hatle

author
#1 lore raw
In reply to a message not in the archive

I've already been talking with Tim about this. It's rough and I'd not promise that it's "perfect". So it's definitely RFC quality right now.

If someone uses Kaleido and notices an issue let me know and I'll try to fix it, but Tim suggested that RDEPENDS on python3-misc is likely missing.

(The person I wrote this for should be testing it over the next few days, and I'll send an update if they find issues with it.)

--Mark

Quoted 53 lines · Mark Hatle

From: Mark Hatle <[email protected]>

---
  .../python/python3-kaleido_0.2.1.bb           | 27 +++++++++++++++++++
  1 file changed, 27 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-kaleido_0.2.1.bb

meta-python/recipes-devtools/python/python3-kaleido_0.2.1.bb new file +27 -1
new file mode 100644
index 0000000000..3b95f3cb18
@@ -0,0 +1,27 @@
+SUMMARY = "Cross-platform library for generating static images"
+DESCRIPTION = "Kaleido is a cross-platform library for generating static images \
+(e.g. png, svg, pdf, etc.) for web-based visualization libraries, with a particular \
+focus on eliminating external dependencies."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=33ee0e1da4dbba9e5232bb1dcabfd47f"
+
+SRC_URI = "git://github.com/plotly/Kaleido.git;protocol=https"
+SRCREV = "624c30ca29b3a120215264b3b2e9341bf1bb4247"
+
+inherit python3native setuptools3
+
+DEPENDS += "python3-wheel-native"
+
+DISTUTILS_SETUP_PATH = "${WORKDIR}/git/repos/kaleido/py"
+S = "${WORKDIR}/git"
+
+DISTUTILS_BUILD_ARGS = "package"
+
+do_compile:prepend() {
+        mkdir -p ${S}/repos/build/kaleido
+
+        cp ${S}/README.md ${S}/repos/kaleido/.
+        cp ${S}/LICENSE.txt ${S}/repos/kaleido/.
+
+	python3 ${S}/repos/version/build_pep440_version.py
+}
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#96174): https://lists.openembedded.org/g/openembedded-devel/message/96174
Mute This Topic: https://lists.openembedded.org/mt/89988783/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw
In reply to a message not in the archive

On more follow up. This does not work, apparently the module is calling an executable that isn't built. It appears the executable may contain part of chromium?! Need to do more investigation, but if that is the case, then this might be a dead end (not worth the effort).

--Mark

Quoted 69 lines · Mark Hatle

I've already been talking with Tim about this. It's rough and I'd not promise that it's "perfect". So it's definitely RFC quality right now.

If someone uses Kaleido and notices an issue let me know and I'll try to fix it, but Tim suggested that RDEPENDS on python3-misc is likely missing.

(The person I wrote this for should be testing it over the next few days, and I'll send an update if they find issues with it.)

--Mark

Quoted 57 lines · Mark Hatle

From: Mark Hatle <[email protected]>

---
   .../python/python3-kaleido_0.2.1.bb           | 27 +++++++++++++++++++
   1 file changed, 27 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-kaleido_0.2.1.bb

meta-python/recipes-devtools/python/python3-kaleido_0.2.1.bb new file +27 -1
new file mode 100644
index 0000000000..3b95f3cb18
@@ -0,0 +1,27 @@
+SUMMARY = "Cross-platform library for generating static images"
+DESCRIPTION = "Kaleido is a cross-platform library for generating static images \
+(e.g. png, svg, pdf, etc.) for web-based visualization libraries, with a particular \
+focus on eliminating external dependencies."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=33ee0e1da4dbba9e5232bb1dcabfd47f"
+
+SRC_URI = "git://github.com/plotly/Kaleido.git;protocol=https"
+SRCREV = "624c30ca29b3a120215264b3b2e9341bf1bb4247"
+
+inherit python3native setuptools3
+
+DEPENDS += "python3-wheel-native"
+
+DISTUTILS_SETUP_PATH = "${WORKDIR}/git/repos/kaleido/py"
+S = "${WORKDIR}/git"
+
+DISTUTILS_BUILD_ARGS = "package"
+
+do_compile:prepend() {
+        mkdir -p ${S}/repos/build/kaleido
+
+        cp ${S}/README.md ${S}/repos/kaleido/.
+        cp ${S}/LICENSE.txt ${S}/repos/kaleido/.
+
+	python3 ${S}/repos/version/build_pep440_version.py
+}
 
 
 
 
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#96175): https://lists.openembedded.org/g/openembedded-devel/message/96175
Mute This Topic: https://lists.openembedded.org/mt/89988783/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-