letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
613 stars 68 forks source link

Restore support for GPL demosaic packs for source builds with libraw >= 0.19 #72

Closed letmaik closed 5 years ago

letmaik commented 5 years ago

For licensing reasons, the binary wheels on PyPI don't contain the GPL demosaic packs. However, users in the past could either enable the buildGPLCode option in setup.py (for macOS/Windows), or build libraw themselves (on Linux).

This worked up until libraw 0.18 but stopped with 0.19 due to https://github.com/LibRaw/LibRaw-cmake/issues/8. To enable support again for 0.19 upwards, the new callback system has to be used, which likely means writing some glue code, and probably building the demosaic packs separately or as part of rawpy. It's likely a good amount of work.

Since there were nearly no requests for the GPL demosaic packs in the past for rawpy this is hard to justify. So, if anyone needs this and actually builds from source, shout here, otherwise the above mechanism will be marked deprecated and only work for libraw up until 0.18 and won't be updated.