Skip to content

pylibjpeg-openjpeg: Add version 2.5.0 - #2535

Merged
luhenry merged 1 commit into
mainfrom
pylibjpeg-openjpeg
Sep 30, 2026
Merged

luhenry merged 1 commit into
mainfrom
pylibjpeg-openjpeg

Conversation

@luhenry

@luhenry luhenry commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Compiles a Cython extension over the vendored openjpeg and Little CMS C sources. Upstream publishes no riscv64 wheel.

Mirrors upstream's release-wheels.yml.

Differs from upstream

  • Tests from pytest-builds.yml run against the built wheel - upstream's release workflow runs none.

Matrix: cp312, cp313, cp314 - upstream ships no free-threaded wheel and the extension does not declare free-threading support.

Testing

  • same as upstream

License: Wheel bundles openjpeg (BSD-2-Clause) and Little CMS (MIT); upstream ships no licence text for Little CMS, so the build adds it.

Patches

  • 0001-package-the-Little-CMS-licence-in-the-built-wheel.patch - To upstream; every PyPI wheel has the same gap. Without it the wheel lacks Little CMS's required notice. Reproduces on x86.

Cython/C extension over the vendored openjpeg (v2.5.3 git submodule)
and the Little CMS copy openjpeg itself vendors, used as a pylibjpeg
plugin for the JPEG 2000 DICOM transfer syntaxes. Same build shape as
pylibjpeg-libjpeg: poetry-core's build script runs openjpeg's cmake
configure step for its config headers, then compiles everything into
one extension. No SIMD or architecture-specific code.

Tests run upstream's own suite from the installed wheel with the
pylibjpeg-data test corpus, pydicom and pylibjpeg installed, as
upstream's pytest-builds.yml does.

The patch adds Little CMS's MIT licence to the wheel, which upstream
compiles in but does not ship a notice for.
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-30 16:29 UTC

@luhenry
luhenry marked this pull request as ready for review September 30, 2026 14:54
@luhenry
luhenry merged commit df64c48 into main Sep 30, 2026
13 of 14 checks passed
@luhenry
luhenry deleted the pylibjpeg-openjpeg branch September 30, 2026 15:55
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