Skip to content

Commit

Permalink
remove distutils
Browse files Browse the repository at this point in the history
- deprecated in py312
  • Loading branch information
ravnoor committed Dec 20, 2023
1 parent 518b6dd commit 5dbf932
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import subprocess
import sys
import time
from distutils.version import LooseVersion
from functools import cmp_to_key

import setuptools
Expand Down Expand Up @@ -106,9 +105,7 @@ def run(self):
+ ", ".join(e.name for e in self.extensions)
)

cmake_version = LooseVersion(
re.search(r"version\s*([\d.]+)", out.decode()).group(1)
)
cmake_version = re.search(r"version\s*([\d.]+)", out.decode()).group(1)
if cmake_version < "3.10.0":
raise RuntimeError("CMake >= 3.10.0 is required")

Expand Down

0 comments on commit 5dbf932

Please sign in to comment.