Apply suggestions from code review

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Russell Keith-Magee 2025-06-21 17:58:28 +08:00 committed by GitHub
parent e430bde7e2
commit f42822239e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ def test_wheel_features() -> None:
expected_features.remove("zlib_ng") expected_features.remove("zlib_ng")
elif sys.platform == "ios": elif sys.platform == "ios":
# Can't distribute raqm due to licensing, and there's no system version; # Can't distribute raqm due to licensing, and there's no system version;
# fribid and harfbuzz won't be available if raqm isn't available. # fribidi and harfbuzz won't be available if raqm isn't available.
expected_features.remove("fribidi") expected_features.remove("fribidi")
expected_features.remove("raqm") expected_features.remove("raqm")
expected_features.remove("harfbuzz") expected_features.remove("harfbuzz")

View File

@ -683,7 +683,7 @@ class pil_build_ext(build_ext):
_add_directory(include_dirs, os.path.join(best_path, "include")) _add_directory(include_dirs, os.path.join(best_path, "include"))
elif sys.platform == "darwin": elif sys.platform == "darwin":
# Alwasy include the macOS SDK path. # Always include the macOS SDK path.
sdk_path = self.get_macos_sdk_path() sdk_path = self.get_macos_sdk_path()
if sdk_path: if sdk_path:
_add_directory(library_dirs, os.path.join(sdk_path, "usr", "lib")) _add_directory(library_dirs, os.path.join(sdk_path, "usr", "lib"))