Merge pull request #1179 from paulhopkins/features/python-ucs4
Add ucs4 unicode variant to Python package
This commit is contained in:
		| @@ -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') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Todd Gamblin
					Todd Gamblin