Skip to content
Snippets Groups Projects
Commit 149c06f2 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Use cmake3 instead (for now)

parent 58329ac4
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,6 @@ import setuptools ...@@ -6,8 +6,6 @@ import setuptools
from setuptools import Extension from setuptools import Extension
from setuptools.command.build_ext import build_ext from setuptools.command.build_ext import build_ext
CMAKE_EXE = os.environ.get("CMAKE_EXE", shutil.which("cmake"))
class CMakeExtension(Extension): class CMakeExtension(Extension):
def __init__(self, name, sourcedir=""): def __init__(self, name, sourcedir=""):
...@@ -17,6 +15,7 @@ class CMakeExtension(Extension): ...@@ -17,6 +15,7 @@ class CMakeExtension(Extension):
class CMakeBuild(build_ext): class CMakeBuild(build_ext):
def build_extension(self, ext): def build_extension(self, ext):
CMAKE_EXE = os.environ.get("CMAKE_EXE", shutil.which("cmake3"))
if not isinstance(ext, CMakeExtension): if not isinstance(ext, CMakeExtension):
return super().build_extension(ext) return super().build_extension(ext)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment