Skip to content

Update setup.py#8

Open
wanjunling168 wants to merge 1 commit intoxxlong0:mainfrom
wanjunling168:patch-1
Open

Update setup.py#8
wanjunling168 wants to merge 1 commit intoxxlong0:mainfrom
wanjunling168:patch-1

Conversation

@wanjunling168
Copy link
Copy Markdown

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