Skip to content

Conversation

bgilbert
Copy link
Member

@bgilbert bgilbert commented Mar 28, 2024

Prefer loading OpenSlide from the openslide-bin package if available.

For ease of use, document openslide-bin as the preferred installation option. Don't document manual installation of openslide-bin binaries on Linux and macOS, since there isn't generally an advantage to doing that, but leave the existing Windows Zip instructions for compatibility and to explain os.add_dll_directory().

Add an explanatory ModuleNotFoundError on Linux if OpenSlide is not found.

@openslide-bot
Copy link
Member

openslide-bot commented Mar 28, 2024

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

@Mr-Milk
Copy link

Mr-Milk commented May 27, 2024

May I ask when this PR will be merged and the potential release date of openslide-python 1.4.0?

@bgilbert
Copy link
Member Author

Hopefully within the next couple months. The missing pieces for this PR are docs and error message updates, which don't affect the functionality, so while you're waiting you should be able to use a local OpenSlide Python build with this patch applied.

@Mr-Milk
Copy link

Mr-Milk commented May 28, 2024

I can help with the docs and the error message part if this can accelerate the release process.

@bgilbert
Copy link
Member Author

Thanks for the offer. 1.4.0 isn't only waiting for this PR, though. Type hints and some additional cleanups are also planned, and my attention is currently on some work in the main OpenSlide repo.

If you'd like to contribute the docs and error updates, feel free to submit a new PR to this repo with just those changes. If they look good, I can merge them into this branch or land them separately.

@bgilbert bgilbert force-pushed the bin branch 2 times, most recently from cf5574e to 60bf607 Compare September 7, 2024 09:51
@bgilbert bgilbert changed the title WIP: Support openslide-bin Support openslide-bin Sep 7, 2024
@bgilbert bgilbert force-pushed the bin branch 2 times, most recently from d4a23fd to 49e906b Compare September 7, 2024 21:50
It reads a bit better.

Signed-off-by: Benjamin Gilbert <[email protected]>
@bgilbert bgilbert force-pushed the bin branch 2 times, most recently from fb35b48 to 6283e77 Compare September 7, 2024 23:07
@bgilbert bgilbert marked this pull request as ready for review September 7, 2024 23:07
@bgilbert bgilbert force-pushed the bin branch 2 times, most recently from b4aeb97 to fa9f1be Compare September 7, 2024 23:17
Prefer loading OpenSlide from the openslide-bin package if available.

For ease of use, document openslide-bin as the preferred installation
option.  Don't document manual installation of openslide-bin binaries on
Linux and macOS, since there isn't generally an advantage to doing that,
but leave the existing Windows Zip instructions for compatibility and to
explain os.add_dll_directory().

Add an explanatory ModuleNotFoundError on Linux if OpenSlide is not found.

Signed-off-by: Benjamin Gilbert <[email protected]>
@bgilbert bgilbert merged commit be71273 into openslide:main Sep 7, 2024
40 checks passed
@bgilbert bgilbert deleted the bin branch September 7, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants