mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-27 16:39:49 +03:00
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
e430bde7e2
commit
f42822239e
|
@ -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")
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user