Commit 58c697c5 authored by Jason Madden's avatar Jason Madden

Attempting to fix compilation for 2.7/appveyor.

parent fa8f5261
......@@ -343,7 +343,8 @@ jobs:
run: |
python -mgevent.tests --second-chance $G_USE_COV --ignore tests_that_dont_use_resolver.txt
- name: "Tests: dnspython resolver"
# This has known issues on Pypy-3.6.
# This has known issues on Pypy-3.6. dnspython resolver not
# supported under anything newer than 3.10, so far.
if: (matrix.python-version == '3.9') && startsWith(runner.os, 'Linux')
env:
GEVENT_RESOLVER: dnspython
......@@ -367,7 +368,7 @@ jobs:
run: |
python -mgevent.tests --second-chance --coverage
- name: "Tests: libuv"
if: (matrix.python-version == 2.7 || matrix.python-version == '3.9')
if: (matrix.python-version == 2.7 || startsWith(matrix.python-version, '3.11'))
env:
GEVENT_LOOP: libuv
run: |
......
......@@ -27,6 +27,7 @@ __all__ = []
WIN = sys.platform.startswith('win32')
LIBUV_EMBED = _setuputils.should_embed('libuv')
PY2 = sys.version_info[0] == 2
ffi = FFI()
......@@ -297,6 +298,17 @@ elif WIN:
_define_macro('_CRT_SECURE_NO_WARNINGS', 1)
_define_macro('_WIN32_WINNT', '0x0602')
_define_macro('WIN32_LEAN_AND_MEAN', 1)
# This value isn't available on the platform that we build and
# test Python 2.7 on. It's used for getting power management
# suspend/resume notifications, maybe for keeping timers accurate?
#
# TODO: This should be a more targeted check based on the platform
# version, but that's complicated because it depends on having a
# particular patch installed to the OS, and I don't know how to
# check for that...but we're dropping Python 2 support soon, so
# I suspect it really doesn't matter.
if PY2:
_define_macro('LOAD_LIBRARY_SEARCH_SYSTEM32', 0)
_add_library('advapi32')
_add_library('iphlpapi')
_add_library('psapi')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment