Skip to content

win32: copy only necessary VC runtimes #65

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

Merged
merged 1 commit into from
Dec 3, 2022
Merged

win32: copy only necessary VC runtimes #65

merged 1 commit into from
Dec 3, 2022

Conversation

enkore
Copy link
Member

@enkore enkore commented Nov 28, 2022

Fixes #64

Checked which imports the .pyds and ssh.dll + libcrypto/libssl have, seems to be the easiest way to figure this out. No idea why they link VCRUNTIME 140, but Visual C Runtime 120. Maybe the version numbers are just independent. These two DLLs also don't import any of the other DLLs we previously shipped.

Quick check says this should reduce the windows wheel size from 6.2 MB to 2.3 MB (-60 %).

@enkore enkore changed the title win32: only copy required VC runtimes win32: copy only necessary VC runtimes Nov 28, 2022
@pkittenis pkittenis merged commit 4cb7cb0 into master Dec 3, 2022
@pkittenis pkittenis deleted the win32vc branch December 3, 2022 16:59
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.

Windows C Runtime issues
2 participants