Skip to content

Commit

Permalink
fix for newer packaging versions (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Dec 8, 2022
1 parent 9162a9d commit 44daadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import io
import os.path

from packaging.version import LegacyVersion
from packaging.version import Version
from setuptools import find_packages
from skbuild import setup
from skbuild.cmaker import get_cmake_version
Expand All @@ -15,7 +15,7 @@
# Add CMake as a build requirement if cmake is not installed or is too low a version
setup_requires = []
try:
if LegacyVersion(get_cmake_version()) < LegacyVersion("3.17"):
if Version(get_cmake_version()) < Version("3.17"):
setup_requires.append("cmake>=3.17")
except SKBuildError:
setup_requires.append("cmake>=3.17")
Expand Down

0 comments on commit 44daadc

Please sign in to comment.