Merge pull request #1179 from paulhopkins/features/python-ucs4

Add ucs4 unicode variant to Python package
This commit is contained in:
Todd Gamblin 2016-07-06 12:27:04 -07:00 committed by GitHub
commit 58487accdd

View file

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