Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Do not distribute Cython-generated C++ sources in binary wheels #31

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

musicinmybrain
Copy link
Contributor

I would argue that including the Cython-generated .cpp C++ sources in the binary wheels is not likely to be useful to end users, and dropping them greatly decreases the size of the binary wheels. In my testing, the .whl file goes from 440K to 176K, and the uncompressed installation goes from 2.3M to 528K.

The .pyx and .pxd files aren’t strictly necessary either, but they are much smaller, and they do help provide better tracebacks. There’s a discussion of this topic in aio-libs/aiohttp#6399, where I proposed a similar change in aiohttp.

This change does not affect the contents of the sdist.

@anthrotype anthrotype merged commit c24d26b into fonttools:master Jan 30, 2025
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.

2 participants