Skip to content

Commit

Permalink
Use openslide published binaries
Browse files Browse the repository at this point in the history
Openslide is now publishing binary wheels, but as a package called
openslide-bin.  Require these for appropriate platform machine/system
combinations.  This allows openslide to be added to the list of commonly
supported sources.
  • Loading branch information
manthey committed Oct 31, 2024
1 parent 7f51c42 commit 0cfbdcd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Format dates in item lists ([#1707](../../pull/1707))

### Changes

- Openslide now requires the binary wheel on appropriate platforms ([#1709](../../pull/1709))

## 1.30.2

### Features
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def prerelease_local_scheme(version):
# from pypi with all needed dependencies.
extraReqs['common'] = list(set(itertools.chain.from_iterable(extraReqs[key] for key in {
'memcached', 'redis', 'colormaps', 'performance',
'deepzoom', 'dicom', 'multi', 'nd2', 'test', 'tifffile', 'zarr',
'deepzoom', 'dicom', 'multi', 'nd2', 'openslide', 'test', 'tifffile',
'zarr',
})) | {
f'large-image-source-pil[all]{limit_version}',
f'large-image-source-rasterio[all]{limit_version}',
Expand Down
7 changes: 6 additions & 1 deletion sources/openslide/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ def prerelease_local_scheme(version):
],
install_requires=[
f'large-image{limit_version}',
'openslide-python>=1.1.0',
'openslide-python>=1.4.1',
'openslide-bin; platform_system=="linux" and platform_machine=="x86_64"',
'openslide-bin; platform_system=="linux" and platform_machine=="aarch64"',
'openslide-bin; platform_system=="Windows" and platform_machine=="AMD64"',
'openslide-bin; platform_system=="Darwin" and platform_machine=="arm64"',
'openslide-bin; platform_system=="Darwin" and platform_machine=="x86_64"',
'tifftools>=1.2.0',
],
extras_require={
Expand Down

0 comments on commit 0cfbdcd

Please sign in to comment.