mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-91349: Replace zlib with zlib-ng in Windows build (GH-131438)
This commit is contained in:
parent
c1a02f9101
commit
63a638c43f
18 changed files with 1277 additions and 38 deletions
|
|
@ -2101,6 +2101,12 @@ zlib_exec(PyObject *mod)
|
|||
PyUnicode_FromString(zlibVersion())) < 0) {
|
||||
return -1;
|
||||
}
|
||||
#ifdef ZLIBNG_VERSION
|
||||
if (PyModule_Add(mod, "ZLIBNG_VERSION",
|
||||
PyUnicode_FromString(ZLIBNG_VERSION)) < 0) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
if (PyModule_AddStringConstant(mod, "__version__", "1.0") < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue