at 23.05-pre 777 B view raw
1diff --git a/skimage/data/setup.py b/skimage/data/setup.py 2index 528e9c284ce..ba0e155559c 100644 3--- a/skimage/data/setup.py 4+++ b/skimage/data/setup.py 5@@ -11,7 +11,11 @@ def configuration(parent_package='', top_path=None): 6 # further notice. 7 # Testing data and additional datasets should only 8 # be made available via pooch 9- config.add_data_files(*legacy_datasets) 10+ # Nix patch: add ALL images to facilitate testing of a fully-built package 11+ from pathlib import Path 12+ config.add_data_files( 13+ *(path.name for path in Path(__file__).parent.glob("*") if path.suffix != ".py") 14+ ) 15 # It seems hard to create a consistent hash for README.txt since 16 # the line endings keep getting converted 17 config.add_data_files('README.txt')