mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-02-05 06:49:32 +03:00
Build in Windows CPython wheels
This commit is contained in:
parent
34ee627e07
commit
5c5ed1de50
|
|
@ -27,7 +27,8 @@ def test_wheel_modules() -> None:
|
|||
except ImportError:
|
||||
expected_modules.remove("tkinter")
|
||||
|
||||
expected_modules.remove("jpegxl")
|
||||
if hasattr(sys, "pypy_translation_info"):
|
||||
expected_modules.remove("jpegxl")
|
||||
|
||||
# libavif is not available on Windows for ARM64 architectures
|
||||
if platform.machine() == "ARM64":
|
||||
|
|
|
|||
|
|
@ -341,7 +341,17 @@ DEPS: dict[str, dict[str, Any]] = {
|
|||
"url": f"https://github.com/google/highway/archive/{V['HIGHWAY']}.tar.gz",
|
||||
"filename": f"highway-{V['HIGHWAY']}.tar.gz",
|
||||
"license": "LICENSE",
|
||||
"build": [*cmds_cmake("hwy")],
|
||||
"patch": {
|
||||
r"CMakeLists.txt": {
|
||||
"cmake_minimum_required(VERSION 3.10)": "cmake_minimum_required(VERSION 3.15)", # noqa: E501
|
||||
}
|
||||
},
|
||||
"build": [
|
||||
*cmds_cmake(
|
||||
"hwy",
|
||||
'-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>"',
|
||||
)
|
||||
],
|
||||
"libs": ["hwy.lib"],
|
||||
},
|
||||
"libjxl": {
|
||||
|
|
@ -356,6 +366,7 @@ DEPS: dict[str, dict[str, Any]] = {
|
|||
r"-DLCMS2_INCLUDE_DIR=..\..\inc",
|
||||
"-DJPEGXL_ENABLE_SJPEG:BOOL=OFF",
|
||||
"-DJPEGXL_ENABLE_SKCMS:BOOL=OFF",
|
||||
"-DJPEGXL_STATIC:BOOL=ON",
|
||||
"-DBUILD_TESTING:BOOL=OFF",
|
||||
"-DBUILD_SHARED_LIBS:BOOL=OFF",
|
||||
),
|
||||
|
|
@ -664,7 +675,7 @@ def build_dep_all(disabled: list[str], prefs: dict[str, str], verbose: bool) ->
|
|||
print(f"Skipping disabled dependency {dep_name}")
|
||||
continue
|
||||
script = build_dep(dep_name, prefs, verbose)
|
||||
if dep_name in ("highway", "libjxl"):
|
||||
if dep_name in ("highway", "libjxl") and hasattr(sys, "pypy_translation_info"):
|
||||
continue
|
||||
if gha_groups:
|
||||
lines.append(f"@echo ::group::Running {script}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user