Commit 5b2bcc1a authored by Jason Madden's avatar Jason Madden

Set EV_USE_REALTIME, EV_USE_MONOTONIC and EV_USE_FLOOR.

Fixes #1648
parent d817b3c3
...@@ -184,6 +184,7 @@ jobs: ...@@ -184,6 +184,7 @@ jobs:
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure # 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) # output (pip install uses a random temporary directory, making this difficult)
- python setup.py bdist_wheel - python setup.py bdist_wheel
- cat deps/libev/configure-output.txt
- ls -l dist - ls -l dist
- twine check dist/* - twine check dist/*
- pip uninstall -y gevent - pip uninstall -y gevent
......
...@@ -88,7 +88,17 @@ def build_extension(): ...@@ -88,7 +88,17 @@ def build_extension():
# libev watchers that we don't use currently: # libev watchers that we don't use currently:
('EV_CLEANUP_ENABLE', '0'), ('EV_CLEANUP_ENABLE', '0'),
('EV_EMBED_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 CORE.configure = configure_libev
if os.environ.get('GEVENTSETUP_EV_VERIFY') is not None: if os.environ.get('GEVENTSETUP_EV_VERIFY') is not None:
......
...@@ -34,7 +34,7 @@ export CCACHE_DIR="/ccache" ...@@ -34,7 +34,7 @@ export CCACHE_DIR="/ccache"
# Disable some warnings produced by libev especially and also some Cython generated code. # Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches # 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 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 if [ -d /gevent -a -d /opt/python ]; then
# Running inside docker # Running inside docker
......
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