summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2019-09-02 16:52:51 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2019-09-02 09:52:51 -0500
commitd7a92adb937e7a2fd5414c339155947724e61080 (patch)
treef1b5ad83d69021511a43ae7625fc79b970ccc427
parentc184e79b91a63299c249e207dba1e8cd95a8e5d0 (diff)
downloadspack-d7a92adb937e7a2fd5414c339155947724e61080.tar.gz
spack-d7a92adb937e7a2fd5414c339155947724e61080.tar.bz2
spack-d7a92adb937e7a2fd5414c339155947724e61080.tar.xz
spack-d7a92adb937e7a2fd5414c339155947724e61080.zip
icu4c: Add missing python dependency (#12683)
-rw-r--r--var/spack/repos/builtin/packages/icu4c/package.py7
1 files changed, 7 insertions, 0 deletions
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: