Skip to content

Fix linking for legacy Windows#41

Open
icanhasmath wants to merge 1 commit into
6.2.xfrom
6.2.2.9-Windows
Open

Fix linking for legacy Windows#41
icanhasmath wants to merge 1 commit into
6.2.xfrom
6.2.2.9-Windows

Conversation

@icanhasmath
Copy link
Copy Markdown

Summary

Fixes native linking for legacy Windows builds in setup.py:

  • Use Windows-specific library names: libpng (png) and libbz2 (bz2).
  • Skip sharpyuv when building for 32-bit Windows, where it is not available to link against.

Notes

All three changes only diverge from default behavior on Windows. In particular, the 32-bit skip is guarded by sys.platform == "win32" so non-Windows 32-bit builds (e.g. 32-bit Linux/macOS) still link sharpyuv as before.

🤖 Generated with Claude Code

@icanhasmath
Copy link
Copy Markdown
Author

Added as a local patch for now - let's make sure this gets into future releases.

Use Windows-specific library names for png and bz2, and skip sharpyuv
when building for 32-bit Windows where it is not available to link.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant