Support Python 3.12. Update optional scipy req to 1.12.0

This commit is contained in:
Griatch 2024-03-17 00:53:28 +01:00
parent abb83fc4d8
commit 11834dfe49
10 changed files with 48 additions and 43 deletions

View file

@ -10,7 +10,7 @@ usually shows as an Exit, but the length of the link has no in-game equivalent.
"""
try:
from scipy import zeros
from numpy import zeros
except ImportError as err:
raise ImportError(
f"{err}\nThe XYZgrid contrib requires the SciPy package. Install with `pip install scipy'."
@ -20,11 +20,11 @@ import uuid
from collections import defaultdict
from django.core import exceptions as django_exceptions
from evennia.prototypes import spawner
from evennia.utils.utils import class_from_module
from .utils import BIGVAL, MAPSCAN, REVERSE_DIRECTIONS, MapError, MapParserError
from .utils import (BIGVAL, MAPSCAN, REVERSE_DIRECTIONS, MapError,
MapParserError)
NodeTypeclass = None
ExitTypeclass = None