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

Building with MinGW #58

Open
rafael-fuente opened this issue Jun 10, 2020 · 0 comments
Open

Building with MinGW #58

rafael-fuente opened this issue Jun 10, 2020 · 0 comments

Comments

@rafael-fuente
Copy link

@rafael-fuente rafael-fuente commented Jun 10, 2020

I tried to run setup.py with MinGW instead of Visual Studio MSVC
python setup.py build --compiler=mingw32

I get the following error:
ValueError: Unknown MS Compiler version 1916

Is there any way to make it work with MinGW?

Note that a manual compilation with MinGW works perfectly running:

g++ -static -shared -std=c++11 -DMS_WIN64 -fPIC -I C:\...\Python\Python38\Lib\site-packages\pybind11\include -I C:\ ... \Python\Python38\include -L C:\ ... \Python\Python38\libs src\main.cpp -o python_example.pyd -lPython38

but I cannot manage to make it to work with setuptools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.