python27: Enable building with alternate UCS encoding

This commit is contained in:
Shea Levy 2017-12-09 12:00:52 -05:00
parent ca6952fcb7
commit d077d22893
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -16,6 +16,8 @@
, libffi
, CF, configd, coreutils
, python-setup-hook
# Some proprietary libs assume UCS2 unicode, especially on darwin :(
, ucsEncoding ? 4
# For the Python package set
, pkgs, packageOverrides ? (self: super: {})
}:
@ -107,7 +109,7 @@ let
configureFlags = [
"--enable-shared"
"--with-threads"
"--enable-unicode=ucs4"
"--enable-unicode=ucs${toString ucsEncoding}"
] ++ optionals (hostPlatform.isCygwin || hostPlatform.isAarch64) [
"--with-system-ffi"
] ++ optionals hostPlatform.isCygwin [