icu4c: Add missing python dependency (#12683)

This commit is contained in:
Michael Kuhn 2019-09-02 16:52:51 +02:00 committed by Adam J. Stewart
parent c184e79b91
commit d7a92adb93

View File

@ -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 @@ def flag_handler(self, name, flags):
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: