diff --git a/setup.py b/setup.py index cf881b4b2f82d7ee8d0481bbabdfd699ec869cb9..7a612ef6b00f33d971e4448777ad0c962c875944 100644 --- a/setup.py +++ b/setup.py @@ -12,8 +12,9 @@ import toml from setuptools import setup, Extension from setuptools.command.build_ext import build_ext + def get_project_name() -> str: - with open(pathlib.Path().absolute() / "pyproject.toml", "r") as file : + with open(pathlib.Path().absolute() / "pyproject.toml", "r") as file: project_toml = toml.load(file) return project_toml["project"]["name"] @@ -24,7 +25,6 @@ class CMakeExtension(Extension): class CMakeBuild(build_ext): - def run(self): # This lists the number of processors available on the machine # The compilation will use half of them @@ -61,7 +61,7 @@ class CMakeBuild(build_ext): f"-DCMAKE_BUILD_TYPE={compile_type}", "-DPYBIND=ON", "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", - "-DCOVERAGE=OFF" + "-DCOVERAGE=OFF", ] )