Mercurial > hgrepos > Python > libs > ConfigMix
diff setup.py @ 545:6501fe0e116c
Build the speedup C-extension against the stable API.
This is done by emulating PyUnicode_New()/PyUnicode_WriteChar() with
encoding the UCS4 character to UTF-8 and using PyUnicode_FromStringAndSize().
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 01 Jan 2022 20:36:46 +0100 |
| parents | f71d34dda19f |
| children | adf65c31f8fc |
line wrap: on
line diff
--- a/setup.py Sat Jan 01 18:05:32 2022 +0100 +++ b/setup.py Sat Jan 01 20:36:46 2022 +0100 @@ -57,7 +57,7 @@ and (sys.version_info[0] > 3 or (sys.version_info[0] == 3 and sys.version_info[1] >= 7))): - py_limited_api = False + py_limited_api = True if py_limited_api: define_macros = [("Py_LIMITED_API", "0x03070000")]
