diff --git a/setup.py b/setup.py index f0ff98e7..6a3b5fd9 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # read the contents of your README file from pathlib import Path -from packaging.version import LegacyVersion +from packaging import version from skbuild import setup from skbuild.cmaker import get_cmake_version from skbuild.exceptions import SKBuildError @@ -13,7 +13,7 @@ # or is too low a version setup_requires = [] try: - if LegacyVersion(get_cmake_version()) < LegacyVersion("3.4"): + if version.parse(get_cmake_version()) < version.parse("3.4"): setup_requires.append("cmake") except SKBuildError: setup_requires.append("cmake")