Commit 92bc5c93 authored by Jason Madden's avatar Jason Madden

Configure only the required files on pypy.

parent e02b0650
......@@ -116,18 +116,18 @@ install:
# XXX: Most of this is a copy of the Makefile. Remember to update.
- cmd:
IF "%PYTHON_EXE%" == "python" (
"%PYEXE% util/cythonpp.py -o gevent.corecext.c gevent/core.ppyx"
"type gevent\\callbacks.c >> gevent.corecext.c"
"move gevent.corecext.* gevent"
"cython -o gevent.ares.c gevent/ares.pyx"
"move gevent.ares.* gevent"
"move gevent\\_semaphore.pyx gevent\\_semaphore.py"
"cython -o gevent._semaphore.c gevent/_semaphore.py"
"move gevent._semaphore.* gevent"
"del gevent\\_semaphore.py"
"cython -o gevent._util.c gevent/_util.pyx"
"move gevent._util.* gevent"
%PYEXE% util/cythonpp.py -o gevent.corecext.c gevent/core.ppyx
type gevent\\callbacks.c >> gevent.corecext.c
move gevent.corecext.* gevent
)
cython -o gevent.ares.c gevent/ares.pyx
move gevent.ares.* gevent
move gevent\\_semaphore.pyx gevent\\_semaphore.py
cython -o gevent._semaphore.c gevent/_semaphore.py
move gevent._semaphore.* gevent
del gevent\\_semaphore.py
cython -o gevent._util.c gevent/_util.pyx
move gevent._util.* gevent
cache:
- "%TMP%\\py\\"
......
......@@ -227,8 +227,13 @@ _watcher_types = [
'ev_timer',
]
_source = """ // passed to the real C compiler
_source = """
// passed to the real C compiler
#define LIBEV_EMBED 1
#ifdef _WIN32
#define EV_STANDALONE 1
#endif
#include "libev_vfd.h"
#include "libev.h"
......
......@@ -340,6 +340,7 @@ elif PYPY:
# XXX ugly - need to find a better way
system('cp -r libev gevent/libev')
system('touch gevent/libev/__init__.py')
if sys.platform != 'win32':
system('cd gevent/libev && ./configure > configure_output.txt')
# XXX: Note that we're NOT adding the distutils extension module, but
# doing so compiles the module already: import gevent._corecffi_build
......
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