★ wanayoo — archive 1999 https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/issues/200Nouvelle recherche | Portail wanayoo
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

socket module not built when cross compiling with mingw #200

Open
woggioni opened this issue Nov 17, 2017 · 1 comment
Open

socket module not built when cross compiling with mingw #200

woggioni opened this issue Nov 17, 2017 · 1 comment

Comments

@woggioni
Copy link

@woggioni woggioni commented Nov 17, 2017

Compiling with latest mingw-w64 (GCC 7.2.0) from archlinux, the build runs but the socket module is not built: when imported from the interpreter it gives this error:

>>> import socket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "Z:\home\woggioni\build\python-cmake-buildsystem\build\Lib\socket.py", line 47, in <module>
    import _socket
ImportError: No module named _socket
@woggioni
Copy link
Author

@woggioni woggioni commented Nov 17, 2017

I managed to enable the socket module setting BUILTIN_SOCKET=ON in cmake cache (and had to patch the name of mstcpip.h header to all lowercase in python sources), but stil I do not understand why this is not enbled by default, as it is when making a native build
I'm now having troubles with the ssl module, but it doesn't seem to something related to the build system

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.