summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPatrick Gartung <gartung@fnal.gov>2019-05-29 15:41:30 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-05-29 15:41:30 -0500
commitdeab45e7c815078895f5057fd86b4a27b4bf3c1f (patch)
treedd3b141c170324090c3faf5f8d88ec23cdd44852 /var
parent7438bb7f45365f75b68d723bfe9b1ee6a7aeb37d (diff)
downloadspack-deab45e7c815078895f5057fd86b4a27b4bf3c1f.tar.gz
spack-deab45e7c815078895f5057fd86b4a27b4bf3c1f.tar.bz2
spack-deab45e7c815078895f5057fd86b4a27b4bf3c1f.tar.xz
spack-deab45e7c815078895f5057fd86b4a27b4bf3c1f.zip
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
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xrootd/package.py5
1 files changed, 5 insertions, 0 deletions
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):