From d7a92adb937e7a2fd5414c339155947724e61080 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Mon, 2 Sep 2019 16:52:51 +0200 Subject: icu4c: Add missing python dependency (#12683) --- var/spack/repos/builtin/packages/icu4c/package.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/icu4c/package.py b/var/spack/repos/builtin/packages/icu4c/package.py index 4f4610fd42..b3ac585154 100644 --- a/var/spack/repos/builtin/packages/icu4c/package.py +++ b/var/spack/repos/builtin/packages/icu4c/package.py @@ -27,6 +27,8 @@ class Icu4c(AutotoolsPackage): multi=False, description='Use the specified C++ standard when building') + depends_on('python', type='build', when='@64.1:') + configure_directory = 'source' def url_for_version(self, version): @@ -45,6 +47,11 @@ class Icu4c(AutotoolsPackage): def configure_args(self): args = [] + if 'python' in self.spec: + # Make sure configure uses Spack's python package + # Without this, configure could pick a broken global installation + args.append('PYTHON={0}'.format(self.spec['python'].command)) + # The --enable-rpath option is only needed on MacOS, and it # breaks the build for xerces-c on Linux. if 'platform=darwin' in self.spec: -- cgit v1.2.3-60-g2f50