From bcd0250f3de73b76b8668a9fa082e5cb9a915261 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Feb 18 2022 16:19:52 +0000 Subject: fix: correct collections import --- diff --git a/neuron.spec b/neuron.spec index 2e1dff2..3e8c13b 100644 --- a/neuron.spec +++ b/neuron.spec @@ -181,6 +181,10 @@ Requires: %{name}-openmpi%{?_isa} = %{version}-%{release} # Remove executable perms from source files find src -type f -executable ! -name '*.sh' -exec chmod -x {} + +# fix collections import: not needed in new versions +sed -i 's/collections.Callable/collections.abc.Callable/' share/lib/python/neuron/rxd/node.py +sed -i 's/collections.Callable/collections.abc.Callable/' share/lib/python/neuron/rxd/species.py + # Remove bundled Random123 rm -rf src/Random123 rm -rf src/readline