Add ucs4 unicode variant to Python package

This commit is contained in:
Paul Hopkins 2016-07-06 18:29:54 +01:00
parent 2b9d02d594
commit 61fe89bda0

View file

@ -47,6 +47,8 @@ class Python(Package):
extendable = True extendable = True
variant('ucs4', default=False, description='Enable UCS4 unicode strings')
depends_on("openssl") depends_on("openssl")
depends_on("bzip2") depends_on("bzip2")
depends_on("readline") depends_on("readline")
@ -82,6 +84,9 @@ def install(self, spec, prefix):
"LDFLAGS=-L{0}".format(ldflags) "LDFLAGS=-L{0}".format(ldflags)
] ]
if '+ucs4' in spec:
config_args.append('--enable-unicode=ucs4')
if spec.satisfies('@3:'): if spec.satisfies('@3:'):
config_args.append('--without-ensurepip') config_args.append('--without-ensurepip')