ROOT: set PYTHON_EXECUTABLE (#11583)

Per @adamjstewart  use spec['python'].command.path
This commit is contained in:
Patrick Gartung 2019-05-29 15:41:13 -05:00 committed by Adam J. Stewart
parent ca05c2cbd8
commit 7438bb7f45

View file

@ -504,8 +504,8 @@ def cmake_args(self):
# see https://github.com/spack/spack/pull/11579
if '+python' in self.spec:
options.append('-DPYTHON_EXECUTABLE=%s/python' %
self.spec['python'].prefix.bin)
options.append('-DPYTHON_EXECUTABLE=%s' %
spec['python'].command.path)
return options