Commit 429297c9 authored by Denis Bilenko's avatar Denis Bilenko

setup.py cython: strip full paths from comments in core.c (for easier diffing)

parent 487f797d
......@@ -77,6 +77,8 @@ def run_cython(cython_command='cython'):
if 0 == system('%s gevent/core.pyx -o core.c && mv core.* gevent/' % (cython_command, )):
data = open(cython_output).read()
data = data.replace('\n\n#endif /* Py_PYTHON_H */', '\n#include "callbacks.c"\n#endif /* Py_PYTHON_H */')
full_path = join(os.getcwd(), 'gevent/')
data = data.replace(full_path, 'gevent/')
open(cython_output, 'w').write(data)
......
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