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
d0be3cba
Commit
d0be3cba
authored
Mar 27, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hmm, gcc failed on travis. Try not parallel the cython part.
parent
82e3709a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
gevent/callbacks.c
gevent/callbacks.c
+4
-0
util/cythonpp.py
util/cythonpp.py
+14
-9
No files found.
gevent/callbacks.c
View file @
d0be3cba
/* Copyright (c) 2011-2012 Denis Bilenko. See LICENSE for details. */
#ifdef Py_PYTHON_H
#if 0
#define _GEVENTLOOP struct __pyx_vtabstruct_8corecext_loop
#else
#define _GEVENTLOOP struct __pyx_vtabstruct_6gevent_8corecext_loop
#endif
static
void
gevent_handle_error
(
struct
PyGeventLoopObject
*
loop
,
PyObject
*
context
)
{
PyThreadState
*
tstate
;
...
...
util/cythonpp.py
View file @
d0be3cba
...
...
@@ -4,6 +4,7 @@
from
__future__
import
print_function
import
sys
import
os
import
os.path
import
re
import
traceback
import
datetime
...
...
@@ -22,7 +23,10 @@ class Thread(threading.Thread):
value
=
None
def
run
(
self
):
self
.
value
=
self
.
_target
(
*
self
.
_args
)
target
=
getattr
(
self
,
'_target'
,
None
)
# Py3
if
target
is
None
:
target
=
getattr
(
self
,
'_Thread__target'
,
None
)
self
.
value
=
target
(
*
self
.
_args
)
do_exec
=
None
if
sys
.
version_info
>=
(
3
,
0
):
...
...
@@ -71,8 +75,6 @@ def _run_cython_on_file(configuration, pyx_filename,
output_filename,
counter, lines,
cache=None):
# XXX: Note that this causes cython to generate
# a "corecext" name instead of "gevent.corecext"
value = ''.join(lines)
sourcehash = md5(value.encode("utf-8")).hexdigest()
comment = format_tag(frozenset(configuration))
...
...
@@ -80,14 +82,17 @@ def _run_cython_on_file(configuration, pyx_filename,
raise ValueError("output cannot be absolute")
# We can'
t
change
the
actual
name
of
the
pyx
file
because
# cython generates function names based in that string.
# XXX: Note that this causes cython to generate
# a "corecext" name instead of "gevent.corecext"
tempdir
=
tempfile
.
mkdtemp
()
#unique_pyx_filename = pyx_filename #os.path.join(tempdir, pyx_filename)
#unique_output_filename = output_filename #os.path.join(tempdir, output_filename)
unique_pyx_filename
=
os
.
path
.
join
(
tempdir
,
pyx_filename
)
unique_output_filename
=
os
.
path
.
join
(
tempdir
,
output_filename
)
unique_pyx_filename
=
pyx_filename
unique_output_filename
=
output_filename
#unique_pyx_filename = os.path.join(tempdir, pyx_filename)
#unique_output_filename = os.path.join(tempdir, output_filename)
dirname
=
os
.
path
.
dirname
(
unique_pyx_filename
)
# output must be in same dir
log
(
"Output filename %s"
,
unique_output_filename
)
if
dirname
:
if
dirname
and
not
os
.
path
.
exists
(
dirname
)
:
print
(
"Making dir"
,
dirname
)
os
.
makedirs
(
dirname
)
try
:
...
...
@@ -116,7 +121,7 @@ def _run_cython_on_files(pyx_filename, py_banner, banner, output_filename, prepr
counter
,
lines
,
cache
)))
threads
[
-
1
].
start
()
#
threads[-1].join()
threads
[
-
1
].
join
()
for
t
in
threads
:
t
.
join
()
...
...
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