Commit Graph

8 Commits

Author SHA1 Message Date
Christoph Reiter
91a728c082 python3: fix HAVE_INET_PTON configure check on Windows. Fixes #5184
HAVE_INET_PTON is hardcoded to 1 in the official Windows build. Since we use autotools
we need to make the check work on Windows.

This makes socket.inet_ntop() and socket.inet_pton() available like with the official build.
2019-04-13 17:56:50 +02:00
Алексей
ab5330dd37 Revert "Revert "python3: Improve patching _sysconfigdata.py"" 2019-03-19 10:02:39 +03:00
Алексей
f8b5c1212f Revert "python3: Improve patching _sysconfigdata.py" 2019-03-18 15:13:13 +03:00
Philipp Hörist
a403fbaa9b python3: Improve patching _sysconfigdata.py
Add code at the end of `_sysconfigdata.py` that modifys `build_time_vars` at
module load time with python syntax.

Remove all the sed replaces from PKGBUILD because its hard to review and prone to breakage

Finally a test is added to detect syntax errors next time early on

Fixes https://github.com/msys2/MINGW-packages/issues/5048
2019-03-17 11:31:56 +01:00
Christoph Reiter
e73064270e python3: add a ctypes import to the tests
the last build is missing ctypes, this makes it easier to detect it early next time
2018-10-21 19:54:42 +02:00
Christoph Reiter
c054d829f0 python3: undef _POSIX_THREADS in one more place; switch back to nt-threads
python uses _POSIX_THREADS to decide if it uses posix or nt threads,
but _POSIX_THREADS get included all the time by header includes
(pthread, unistd) in mingw. This was already patched but py3.7 added a new
header with a similar check which was missing.

This resulted in a mix of ntthread/posix api usage an crashes.
2018-07-07 09:32:43 +02:00
Christoph Reiter
fbca0b8b73 python3: Fix _PyIsSelectable_fd(). See #4048
It should always return true under Windows but used _MSC_VER to check for that.
This fixes nonblocking sockets (or when used with a timeout).
2018-07-06 17:33:23 +02:00
Christoph Reiter
3f6c286d6a python3: Make multiprocessing.Queue work; Add some tests. Fixes #837 (#2619)
With non-mingw builds POSIX_SEMAPHORES_NOT_ENABLED is not enabled and
sem_unlink is a no-op. Change it to always be provided on Windows instead.

This adds a minimal test suite which makes it easier to catch regressions
in the future for common MSYS2 related bugs.
2017-06-26 07:02:42 +03:00