maweigert / gputools

GPU accelerated image/volume processing in Python
BSD 3-Clause "New" or "Revised" License
108 stars 20 forks source link

Add support for py310 #29

Closed tlambert03 closed 2 years ago

tlambert03 commented 2 years ago

some very minor changes for python 3.10. In trying to create a conda-forge package, it currently fails trying to build py3.10 since there is a collections.Callable import. It's easy enough to support py3.10, so might as well.

This just changes that line to callable(x) instead of isinstance(x, collections.abc.Callable), but if you want me to use the isinstance check instead, let me know.

tlambert03 commented 2 years ago

sorry... must have branched off something super old... lemme rebase

maweigert commented 2 years ago

Cool, thx!

This just changes that line to callable(x) instead of isinstance(x, collections.abc.Callable), but if you want me to use the isinstance check instead, let me know.

Are the currently displayed changes before the rebase? I'm seeing a lot more diffs than just a single line :)

tlambert03 commented 2 years ago

yeah, it's a mess sorry ... have a meeting, then will clean. it's just two lines :joy:

maweigert commented 2 years ago

Ah, ok. Just wanted to be sure :)