-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use zlib-ng instead of zlib #8500
Changes from all commits
3e0849b
7885066
c07e089
ed910a6
5ab79bc
3f5f3bb
69c9a7f
dab795c
4986609
01bc487
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ def test_wheel_features() -> None: | |
"fribidi", | ||
"harfbuzz", | ||
"libjpeg_turbo", | ||
"zlib_ng", | ||
"xcb", | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -120,11 +120,10 @@ def cmd_msbuild( | |||||
"OPENJPEG": "2.5.3", | ||||||
"TIFF": "4.6.0", | ||||||
"XZ": "5.6.3", | ||||||
"ZLIB": "1.3.1", | ||||||
"ZLIBNG": "2.2.2", | ||||||
} | ||||||
V["LIBPNG_DOTLESS"] = V["LIBPNG"].replace(".", "") | ||||||
V["LIBPNG_XY"] = "".join(V["LIBPNG"].split(".")[:2]) | ||||||
V["ZLIB_DOTLESS"] = V["ZLIB"].replace(".", "") | ||||||
|
||||||
|
||||||
# dependencies, listed in order of compilation | ||||||
|
@@ -160,18 +159,22 @@ def cmd_msbuild( | |||||
"bins": ["cjpeg.exe", "djpeg.exe"], | ||||||
}, | ||||||
"zlib": { | ||||||
"url": "https://zlib.net/FILENAME", | ||||||
"filename": f"zlib{V['ZLIB_DOTLESS']}.zip", | ||||||
"dir": f"zlib-{V['ZLIB']}", | ||||||
"license": "README", | ||||||
"license_pattern": "Copyright notice:\n\n(.+)$", | ||||||
"url": f"https://github.com/zlib-ng/zlib-ng/archive/refs/tags/{V['ZLIBNG']}.zip", | ||||||
"filename": f"zlib-ng-{V['ZLIBNG']}.zip", | ||||||
"dir": f"zlib-ng-{V['ZLIBNG']}", | ||||||
"license": "LICENSE.md", | ||||||
"patch": { | ||||||
r"CMakeLists.txt": { | ||||||
"set_target_properties(zlib PROPERTIES OUTPUT_NAME zlibstatic${{SUFFIX}})": "set_target_properties(zlib PROPERTIES OUTPUT_NAME zlib)", # noqa: E501 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If zlib-ng creates zlibstatic.lib by default, then wouldn't it seem helpful to detect that in setup.py, in case a user had built it themselves? nulano#44 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, is the concern that zlib-ng might have been built without --zlib-compat? |
||||||
}, | ||||||
}, | ||||||
"build": [ | ||||||
cmd_nmake(r"win32\Makefile.msc", "clean"), | ||||||
cmd_nmake(r"win32\Makefile.msc", "zlib.lib"), | ||||||
cmd_copy("zlib.lib", "z.lib"), | ||||||
*cmds_cmake( | ||||||
"zlib", "-DBUILD_SHARED_LIBS:BOOL=OFF", "-DZLIB_COMPAT:BOOL=ON" | ||||||
), | ||||||
], | ||||||
"headers": [r"z*.h"], | ||||||
"libs": [r"*.lib"], | ||||||
"libs": [r"zlib.lib"], | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}, | ||||||
"xz": { | ||||||
"url": f"https://github.com/tukaani-project/xz/releases/download/v{V['XZ']}/FILENAME", | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created #8601 to change this to .tar.gz, so that it matches wheels-dependencies.sh