scipy and pooch fetching data during build

Antonio Valentino antonio.valentino at tiscali.it
Sun Jun 16 14:15:57 BST 2024


Dear Frederic,

Il 16/06/24 10:44, PICCA Frederic-Emmanuel ha scritto:
> Hello,
> 
> I am trying to package the next version of silx.
> 
> I get the error message bellow during the build
> 
> Indeed silx use pooch via scipy in order to download the test data.
> 
> So my question is, what is the best solution in order to solve this issue ?
> 
> I want to run the unit test with these data. So at some point we should have them packaged.
> 
> I can download this dataset and embeded it in my package, put it at the right place, so pooch knows that it already have the data.
> or should we propose a scipy-dataset packages with a collection of dataset usefull for other packages tests
> and find a way to register in pooch the fac tha these data's are already on the system.
> 
> I do not know how many packages are about to use pooch like this in the futur.
> 
> Nevetheless, it would be great to have  the pont of view of scipy and pooch maintainer.
> 
> 
> thanks
> 
> Frederic


IMHO the cleanest solution would be to have separate scipy-dataset packages.

In that case, as you, say, we will probably need a patch to scipy to 
make it look a the shared location before trying to download data in the 
user's cache folder.


kind regards
-- 
Antonio Valentino



More information about the debian-science-maintainers mailing list