Add ucs4 unicode variant to Python package
This commit is contained in:
parent
2b9d02d594
commit
61fe89bda0
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue