From 3658d16c87302b71f9712feb4c33e5f11a19f39a Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Thu, 10 Apr 2025 15:08:06 +0200 Subject: [PATCH] Add cowsay as an example additional python module --- README.md | 2 +- package.cmake | 1 + projects.cmake | 2 +- projects/pythoncowsay.cmake | 12 ++++++++++++ versions.cmake | 5 +++++ 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 projects/pythoncowsay.cmake diff --git a/README.md b/README.md index 349709b..a6a3a04 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ This will produce an relocatable archive/installer containing ParaView with the You should be able to copy this repository and replace project files by your own files for your dependencies and plugins, exactly as if adding a project in the ParaView superbuild. -You will also want to modify `package.cmake` to add your own plugins there. +You will also want to modify `package.cmake` to add your own plugins and python modules there. You could even add a `bundle.cmake` in order to specify a custom bundling logic to ship your own executables and dynamically loaded libraries if needed, using superbuild macros. diff --git a/package.cmake b/package.cmake index 62f63a7..cc98515 100644 --- a/package.cmake +++ b/package.cmake @@ -1 +1,2 @@ list(APPEND paraview_additional_plugins ElevationFilter) +list(APPEND paraview_additional_python_modules cowsay) diff --git a/projects.cmake b/projects.cmake index 3168d4b..082dcef 100644 --- a/projects.cmake +++ b/projects.cmake @@ -1 +1 @@ -list(APPEND projects draco paraviewciexample) +list(APPEND projects draco paraviewciexample pythoncowsay) diff --git a/projects/pythoncowsay.cmake b/projects/pythoncowsay.cmake new file mode 100644 index 0000000..0dd160d --- /dev/null +++ b/projects/pythoncowsay.cmake @@ -0,0 +1,12 @@ +superbuild_add_project_python_pyproject(pythoncowsay + PACKAGE + cowsay + DEPENDS + pythonsetuptools + LICENSE_FILES + LICENSE.txt + SPDX_LICENSE_IDENTIFIER + GPL-3.0 + SPDX_COPYRIGHT_TEXT + "Cowsay and pythoncowsay contributors" + ) diff --git a/versions.cmake b/versions.cmake index 6349e47..22f3927 100644 --- a/versions.cmake +++ b/versions.cmake @@ -2,6 +2,11 @@ superbuild_set_revision(draco URL "https://github.com/google/draco/archive/refs/tags/1.5.6.tar.gz" URL_MD5 dbe3a9e286ee5b79016470349d78b2a3) +superbuild_set_revision(pythoncowsay + # https://github.com/VaasuDevanS/cowsay-python + URL "https://github.com/VaasuDevanS/cowsay-python/archive/refs/tags/v6.1.tar.gz" + URL_MD5 01e17486e939e1d4396cb41e271243f2) + superbuild_set_selectable_source(paraviewciexample SELECT git CUSTOMIZABLE DEFAULT GIT_REPOSITORY "https://gitlab.kitware.com/paraview/paraview-ci-example.git" -- GitLab