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

Update setup.py #8

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

Conversation

wanjunling168
Copy link

much reasonable (no CFLAGS tricks)
I checked it under Windows and WSL, compile and import are both OK.
To build under Windows: python setup.py build_ext --inplace --compiler=msvc (setuptools/distutils will call vcvarsall.bat, should be no worry about environment variables)
To build under WSL: python3 setup.py build_ext --inplace (just like before)

Previous setup.py will fail under Windows due to a Cython's old issue [cython/cython#1480], success under Linux is due to that CFLAGS trick which doesn't seem to work with MSVC.

much reasonable and OK for Windows
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