Fix Python configure arguments for ucs4 variant on Python 3.0 and above

This commit is contained in:
Paul Hopkins 2016-07-07 13:12:43 +01:00
parent fb6d850637
commit 8c1274bbbb

View File

@ -53,7 +53,7 @@ class Python(Package):
extendable = True
variant('ucs4', default=False, description='Enable UCS4 unicode strings')
variant('ucs4', default=False, description='Enable UCS4 (wide) unicode strings')
depends_on("openssl")
depends_on("bzip2")
@ -91,7 +91,10 @@ def install(self, spec, prefix):
]
if '+ucs4' in spec:
config_args.append('--enable-unicode=ucs4')
if spec.satisfies('@:3.0'):
config_args.append('--enable-unicode=ucs4')
elif spec.satisfies('@3.0:3.2'):
config_args.append('--with-wide-unicode')
if spec.satisfies('@3:'):
config_args.append('--without-ensurepip')