python: fix clingo bootstrapping on Apple M1/M2 (#31792)

This commit is contained in:
Adam J. Stewart
2022-08-01 08:48:07 -07:00
committed by GitHub
parent ae3c039908
commit 90dbfea895
2 changed files with 10 additions and 7 deletions

View File

@@ -74,8 +74,8 @@ def cmake_python_hints(self):
"""
python = self.spec["python"]
return [
self.define("Python_EXECUTABLE", str(python.command)),
self.define("Python_INCLUDE_DIR", python.package.config_vars["include"]),
self.define("Python_EXECUTABLE", python.command),
self.define("Python_INCLUDE_DIR", python.headers.directories[0]),
]
@property