Xrootd: set PYTHON_EXECUTABLE with +python variant (#11581)

* Xrootd: set PYTHON_EXECUTABLE with +python variant

When building with python3 PYTHON_EXECUTABLE needs to be set for deprecated FindPythonInterp to work as expected.

* Add comment

* Flake8

* More flake8

* Update package.py

* typo
This commit is contained in:
Patrick Gartung 2019-05-29 15:41:30 -05:00 committed by Adam J. Stewart
parent 7438bb7f45
commit deab45e7c8

View File

@ -76,6 +76,11 @@ def cmake_args(self):
format('ON' if '+readline' in spec else 'OFF'),
'-DENABLE_CEPH:BOOL=OFF'
]
# see https://github.com/spack/spack/pull/11581
if '+python' in self.spec:
options.append('-DPYTHON_EXECUTABLE=%s' %
spec['python'].command.path)
return options
def setup_environment(self, spack_env, run_env):