Skip to content

python-gdcm: Add version 3.2.6 - #2167

Merged
luhenry merged 1 commit into
mainfrom
port/python-gdcm
Sep 21, 2026
Merged

luhenry merged 1 commit into
mainfrom
port/python-gdcm

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026

Copy link
Copy Markdown
Member

Compiles the GDCM (Grassroots DICOM) C++ libraries and their SWIG Python bindings, plus the gdcm* command-line applications the wheel installs. Upstream publishes no riscv64 wheel.

Mirrors upstream's wheels.yml.

Differs from upstream

  • Rocky 10's swig instead of upstream's from-source SWIG build - its fallback for images without one.
  • PIP_ONLY_BINARY=cmake,ninja against our registry - neither build requirement has a riscv64 wheel on PyPI.

Testing

  • Upstream tests import gdcm; this also round-trips a DICOM image through the writer, the reader and the RLE, deflate, JPEG-LS and JPEG 2000 codecs, and runs the packaged gdcmdump.

License: Wheel bundles GDCM (BSD-3-Clause), its vendored CharLS, Expat, libjpeg, OpenJPEG, libuuid, zlib, md5, getopt and socket++ copies, and the image's OpenSSL (Apache-2.0); upstream ships only its own licence text, so the patches add theirs.

Patches

  • 0001-Ship-the-licences-of-the-bundled-GDCM-libraries.patch - Upstream-Status: To upstream. Without it the wheel redistributes every bundled library with no copyright notice. Not riscv64-specific.
  • 0002-Ship-the-licence-of-the-bundled-OpenSSL.patch - Upstream-Status: Inappropriate. Lists the licence this workflow stages for the OpenSSL auditwheel vendors.

Built on cp311 locally (x86_64) for the rehearsal; the test above passes.


Generated by Claude Code

@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-21 20:11 UTC

@luhenry
luhenry force-pushed the port/python-gdcm branch 2 times, most recently from 5e0ed16 to 8675277 Compare September 21, 2026 15:44
Build the SWIG Python bindings of GDCM (Grassroots DICOM) and the GDCM
C++ libraries they wrap for riscv64, mirroring the Linux leg of
upstream's wheels.yml. Rocky 10's swig replaces upstream's from-source
SWIG build, and cmake/ninja come from pypi.riseproject.dev since public
PyPI has no riscv64 wheel for either.

Two patches add the licences of everything the wheel bundles to the
glob-less [project] license-files list.
@luhenry
luhenry marked this pull request as ready for review September 21, 2026 20:06
@luhenry
luhenry merged commit afdd437 into main Sep 21, 2026
25 of 27 checks passed
@luhenry
luhenry deleted the port/python-gdcm branch September 21, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant