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
6ac4a329
Commit
6ac4a329
authored
Jan 20, 2021
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to workaround bug in libev4.33 on Windows where have_monotonic is not defined.
parent
78115f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
_setuplibev.py
_setuplibev.py
+6
-1
No files found.
_setuplibev.py
View file @
6ac4a329
...
...
@@ -75,8 +75,13 @@ def build_extension():
'src/gevent/libev/stathelper.c'
,
'src/gevent/libev/libev*.h'
,
'deps/libev/*.[ch]'
))
# While we don't actually use periodic watchers,
# on Windows we need to enable them to work around an issue
# in libev 4.33 where ``have_monotonic`` is not defined.
EV_PERIODIC_ENABLE
=
"0"
if
WIN
:
CORE
.
define_macros
.
append
((
'EV_STANDALONE'
,
'1'
))
EV_PERIODIC_ENABLE
=
"1"
# QQQ libev can also use -lm, however it seems to be added implicitly
if
LIBEV_EMBED
:
...
...
@@ -88,7 +93,7 @@ def build_extension():
# libev watchers that we don't use currently:
(
'EV_CLEANUP_ENABLE'
,
'0'
),
(
'EV_EMBED_ENABLE'
,
'0'
),
(
"EV_PERIODIC_ENABLE"
,
'0'
),
(
"EV_PERIODIC_ENABLE"
,
EV_PERIODIC_ENABLE
),
# Time keeping. If possible, use the realtime and/or monotonic
# clocks. On Linux, this can reduce the number of observable syscalls.
# On older linux, such as the version in manylinux2010, this requires
...
...
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