Skip to content

Commit

Permalink
Remove need for looseversion
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Jan 23, 2024
1 parent 21836e4 commit c967d97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0", "pybind11>=2.10.0", "looseversion"]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0", "pybind11>=2.10.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand Down
8 changes: 0 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from setuptools.command.build import build
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
from looseversion import LooseVersion

BUILD_HOOKS = []
INSTALL_HOOKS = []
Expand Down Expand Up @@ -101,13 +100,6 @@ def run(self):
+ ", ".join(e.name for e in self.extensions)
)

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

for ext in self.extensions:
self.build_extension(ext)

Expand Down

0 comments on commit c967d97

Please sign in to comment.