We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b42ed0 commit bc6f674Copy full SHA for bc6f674
python/treeutils.py
@@ -14,7 +14,7 @@
14
import os
15
import numpy
16
import sys
17
-from distutils.version import StrictVersion
+from packaging.version import Version
18
import dendropy
19
import time
20
import math
@@ -23,7 +23,7 @@
23
import warnings
24
import traceback
25
from io import open
26
-if StrictVersion(dendropy.__version__) < StrictVersion('4.0.0'): # not sure on the exact version I need, but 3.12.0 is missing lots of vital tree fcns
+if Version(dendropy.__version__) < Version('4.0.0'): # not sure on the exact version I need, but 3.12.0 is missing lots of vital tree fcns
27
raise RuntimeError("dendropy version 4.0.0 or later is required (found version %s)." % dendropy.__version__)
28
import yaml
29
try:
0 commit comments