icu4c: Add missing python dependency (#12683)
This commit is contained in:
parent
c184e79b91
commit
d7a92adb93
@ -27,6 +27,8 @@ class Icu4c(AutotoolsPackage):
|
|||||||
multi=False,
|
multi=False,
|
||||||
description='Use the specified C++ standard when building')
|
description='Use the specified C++ standard when building')
|
||||||
|
|
||||||
|
depends_on('python', type='build', when='@64.1:')
|
||||||
|
|
||||||
configure_directory = 'source'
|
configure_directory = 'source'
|
||||||
|
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
@ -45,6 +47,11 @@ def flag_handler(self, name, flags):
|
|||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = []
|
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
|
# The --enable-rpath option is only needed on MacOS, and it
|
||||||
# breaks the build for xerces-c on Linux.
|
# breaks the build for xerces-c on Linux.
|
||||||
if 'platform=darwin' in self.spec:
|
if 'platform=darwin' in self.spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user