Skip to content

Commit

Permalink
acts: append Python_EXECUTABLE (#475)
Browse files Browse the repository at this point in the history
### Briefly, what does this PR introduce?
Appends the CMake Python_EXECUTABLE variable to use the correct Python.
  • Loading branch information
wdconinc committed Jun 25, 2023
1 parent b8fdfc1 commit 1efb9fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/acts/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from spack import *
from spack.pkg.builtin.acts import Acts as BuiltinActs


class Acts(BuiltinActs):
patch(
"https://github.com/acts-project/acts/commit/3255dfc3dddf9c7a82aaddb041d4a6f095d19124.patch?full_index=1",
sha256="60317f6a09a7d57721c1234fcf087ae85aeab27653976d1d3ac7a846c3b85a89",
when="@20.1.0:26",
)
def cmake_args(self):
args = super().cmake_args()
args.append(self.define("Python_EXECUTABLE", self.spec["python"].command.path))
return args

0 comments on commit 1efb9fe

Please sign in to comment.