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
93e73bad
Commit
93e73bad
authored
May 01, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need EV_COMMON for the CFFI embedded case.
parent
dd7d123a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
.travis.yml
.travis.yml
+1
-1
_setuplibev.py
_setuplibev.py
+3
-1
src/gevent/libev/_corecffi_build.py
src/gevent/libev/_corecffi_build.py
+9
-2
No files found.
.travis.yml
View file @
93e73bad
...
...
@@ -141,7 +141,7 @@ jobs:
# libev builds a manpage each time, and it includes today's date, so it frequently changes.
# delete to avoid repacking the archive
-
rm -rf $BUILD_LIBS/share/man/
-
ls -l $BUILD_LIBS $BUILD_LIBS/lib
-
ls -l $BUILD_LIBS $BUILD_LIBS/lib
$BUILD_LIBS/include
-
pip install --no-build-isolation .[test]
-
objdump -p src/gevent/libev/*so
script
:
...
...
_setuplibev.py
View file @
93e73bad
...
...
@@ -85,7 +85,9 @@ def build_extension():
if
LIBEV_EMBED
:
CORE
.
define_macros
+=
[(
'LIBEV_EMBED'
,
'1'
),
(
'EV_COMMON'
,
''
),
# we don't use void* data
# we don't use void* data in the cython implementation;
# the CFFI implementation does and removes this line.
(
'EV_COMMON'
,
''
),
# libev watchers that we don't use currently:
(
'EV_CLEANUP_ENABLE'
,
'0'
),
(
'EV_EMBED_ENABLE'
,
'0'
),
...
...
src/gevent/libev/_corecffi_build.py
View file @
93e73bad
...
...
@@ -70,12 +70,19 @@ _source = read_source('_corecffi_source.c')
distutils_ext
=
_setuplibev
.
build_extension
()
macros
=
list
(
distutils_ext
.
define_macros
)
try
:
# We need the data pointer.
macros
.
remove
((
'EV_COMMON'
,
''
))
except
ValueError
:
pass
ffi
.
cdef
(
_cdef
)
ffi
.
set_source
(
'gevent.libev._corecffi'
,
_source
,
include_dirs
=
distutils_ext
.
include_dirs
,
define_macros
=
distutils_ext
.
define_
macros
,
include_dirs
=
distutils_ext
.
include_dirs
+
[
thisdir
],
# "libev.h"
define_macros
=
macros
,
libraries
=
distutils_ext
.
libraries
,
)
...
...
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