Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
58c697c5
Commit
58c697c5
authored
Oct 14, 2022
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempting to fix compilation for 2.7/appveyor.
parent
fa8f5261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
.github/workflows/ci.yml
.github/workflows/ci.yml
+3
-2
src/gevent/libuv/_corecffi_build.py
src/gevent/libuv/_corecffi_build.py
+12
-0
No files found.
.github/workflows/ci.yml
View file @
58c697c5
...
...
@@ -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
:
|
...
...
src/gevent/libuv/_corecffi_build.py
View file @
58c697c5
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment