From c967d97ea6cc1f9948272ba5a37c8509b0d86d25 Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Mon, 22 Jan 2024 16:05:01 -0800 Subject: [PATCH] Remove need for looseversion --- pyproject.toml | 2 +- setup.py | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 53a25d32..a70d9254 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/setup.py b/setup.py index ff7e4562..cb10b38a 100644 --- a/setup.py +++ b/setup.py @@ -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 = [] @@ -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)