Skip to content

Instantly share code, notes, and snippets.

@poedator
Created August 1, 2023 17:05
Show Gist options
  • Save poedator/14a1c2c0fd0e784b5a3227a7f63e7a54 to your computer and use it in GitHub Desktop.
Save poedator/14a1c2c0fd0e784b5a3227a7f63e7a54 to your computer and use it in GitHub Desktop.
winloop compilation output and test results
COMPILE OUTPUT:
---------------------
(py10) C:\petals\winloop2>python setup.py build_ext --inplace
running build_ext
building 'winloop.loop' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -D_GNU_SOURCE=1 -DWIN32=1 -D_WIN32_WINNT=0x0602 -Ilib/include/ -I, -Iincludes/ -Iwinloop\includes -Ic:\conda\envs\py10\include -Ic:\conda\envs\py10\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tcwinloop\loop.c /Fobuild\temp.win-amd64-cpython-310\Release\winloop\loop.obj /O2
loop.c
winloop\includes\socketpair.h(194): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
winloop\loop.c(24047): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(102014): warning C4267: '=': conversion from 'size_t' to 'ULONG', possible loss of data
winloop\loop.c(102707): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
winloop\loop.c(102846): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
winloop\loop.c(105288): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(105715): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(106162): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
winloop\loop.c(106649): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
winloop\loop.c(109982): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(111493): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
winloop\loop.c(124453): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(135262): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
winloop\loop.c(137493): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
winloop\loop.c(139050): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
winloop\loop.c(143419): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
creating C:\petals\winloop2\build\lib.win-amd64-cpython-310
creating C:\petals\winloop2\build\lib.win-amd64-cpython-310\winloop
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:winloop /LIBPATH:c:\conda\envs\py10\libs /LIBPATH:c:\conda\envs\py10 /LIBPATH:c:\conda\envs\py10\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x64" /EXPORT:PyInit_loop build\temp.win-amd64-cpython-310\Release\winloop\loop.obj /OUT:build\lib.win-amd64-cpython-310\winloop\loop.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-310\Release\winloop\loop.cp310-win_amd64.lib Shell32.lib Ws2_32.lib Advapi32.lib iphlpapi.lib WSock32.lib Userenv.lib User32.lib winloop\vendor\uv_a.lib
Creating library build\temp.win-amd64-cpython-310\Release\winloop\loop.cp310-win_amd64.lib and object build\temp.win-amd64-cpython-310\Release\winloop\loop.cp310-win_amd64.exp
Generating code
Finished generating code
copying build\lib.win-amd64-cpython-310\winloop\loop.cp310-win_amd64.pyd -> winloop
TEST RUN OUTPUT
------------------------------------
(py10) C:\petals\winloop2>python test.py
<frozen importlib._bootstrap>:241: UserWarning: enum class uv_fs_event not importable from winloop.includes.uv. You are probably using a cpdef enum declared in a .pxd file that does not have a .py or .pyx file.
C:\petals\winloop2\test.py:21: DeprecationWarning: There is no current event loop
self.loop = asyncio.get_event_loop()
.C:\petals\winloop2\test.py:92: DeprecationWarning: There is no current event loop
client_task = asyncio.ensure_future(client())
.
----------------------------------------------------------------------
Ran 2 tests in 2.173s
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment