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
5b2bcc1a
Commit
5b2bcc1a
authored
Jun 22, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set EV_USE_REALTIME, EV_USE_MONOTONIC and EV_USE_FLOOR.
Fixes #1648
parent
d817b3c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
.travis.yml
.travis.yml
+1
-0
_setuplibev.py
_setuplibev.py
+11
-1
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+1
-1
No files found.
.travis.yml
View file @
5b2bcc1a
...
...
@@ -184,6 +184,7 @@ jobs:
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult)
-
python setup.py bdist_wheel
-
cat deps/libev/configure-output.txt
-
ls -l dist
-
twine check dist/*
-
pip uninstall -y gevent
...
...
_setuplibev.py
View file @
5b2bcc1a
...
...
@@ -88,7 +88,17 @@ 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"
,
'0'
),
# 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
# linking to lib rt. We handle this in make-manylinux. Newer versions
# generally don't need that.
(
"EV_USE_REALTIME"
,
"1"
),
(
"EV_USE_MONOTONIC"
,
"1"
),
# use the builtin floor() function. Every modern platform should
# have this, right?
(
"EV_USE_FLOOR"
,
"1"
),
]
CORE
.
configure
=
configure_libev
if
os
.
environ
.
get
(
'GEVENTSETUP_EV_VERIFY'
)
is
not
None
:
...
...
scripts/releases/make-manylinux
View file @
5b2bcc1a
...
...
@@ -34,7 +34,7 @@ export CCACHE_DIR="/ccache"
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
export
CFLAGS
=
"-Ofast -pipe -Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes"
export
LDFLAGS
=
"-lrt"
# Needed for clock_gettime libc support on this version.
if
[
-d
/gevent
-a
-d
/opt/python
]
;
then
# Running inside docker
...
...
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