Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Platform guessing affects more than just Linux #8551

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

radarhere
Copy link
Member

Despite

Pillow/setup.py

Line 347 in 5bff2f3

("disable-platform-guessing", None, "Disable platform guessing on Linux"),

the disable_platform_guessing setting also affects macOS and Cygwin.

Pillow/setup.py

Lines 553 to 566 in 5bff2f3

if self.disable_platform_guessing:
pass
elif sys.platform == "cygwin":
# pythonX.Y.dll.a is in the /usr/lib/pythonX.Y/config directory
self.compiler.shared_lib_extension = ".dll.a"
_add_directory(
library_dirs,
os.path.join(
"/usr/lib", "python{}.{}".format(*sys.version_info), "config"
),
)
elif sys.platform == "darwin":

@hugovk hugovk merged commit dc84811 into python-pillow:main Dec 27, 2024
66 of 67 checks passed
@radarhere radarhere deleted the guessing branch December 27, 2024 19:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants