From deab45e7c815078895f5057fd86b4a27b4bf3c1f Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Wed, 29 May 2019 15:41:30 -0500 Subject: 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 --- var/spack/repos/builtin/packages/xrootd/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/xrootd/package.py b/var/spack/repos/builtin/packages/xrootd/package.py index bb55f600ea..ea9ff1d710 100644 --- a/var/spack/repos/builtin/packages/xrootd/package.py +++ b/var/spack/repos/builtin/packages/xrootd/package.py @@ -76,6 +76,11 @@ class Xrootd(CMakePackage): 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): -- cgit v1.2.3-70-g09d2