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

Support compiling on Windows/msvc #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nerivec
Copy link

@Nerivec Nerivec commented Jan 1, 2024

Requires setuptools._distutils._msvccompiler to circumvent a "failed: None" error with link.exe, which I assume is a cmd line length issue; as per the docs on the class, VS 2015 or later is required. The workaround I found is to override the spawn method and output the command params to a file, which is then passed to link.exe with @. There might be a better way, but in the meantime, this works.

Tested on Win11 with MS Build Tools 2022 (msvc 14.38.33130), Python (3.11 & 3.12); compiled, installed, and used without issue.
Unless I missed something, these changes shouldn't affect other build platforms at all.

Fixes #13

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.

Cannot install on windows
1 participant