vdt: add missing python dependency (#31795)

* vdt: add missing python dependency

* vdt: fix dependency and add explicit exe path
This commit is contained in:
Seth R. Johnson 2022-07-29 12:27:19 -04:00 committed by GitHub
parent 9d67d1e034
commit e35b69ca57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,8 @@ class Vdt(CMakePackage):
variant('preload', default=False,
description='Create in the library the symbols to preload the library')
depends_on('python', type='build')
@property
def build_directory(self):
d = join_path(self.stage.path, 'spack-build')
@ -40,12 +42,14 @@ def cmake_args(self):
elif spec.satisfies('target=ppc64le:'):
disable_features.add('fma')
options = []
args = [
self.define_from_variant('PRELOAD'),
self.define('PYTHON_EXECUTABLE', spec['python'].command),
]
for f in ['sse', 'avx', 'avx2', 'fma', 'neon']:
options.append(self.define(
args.append(self.define(
f.upper(),
f not in disable_features and f in self.spec.target
))
options.append(self.define_from_variant('PRELOAD'))
return options
return args