Commit 448f9ad5 authored by Denis Bilenko's avatar Denis Bilenko

replace cython_ifdef.py with cythonpp.py; m4 and unifdef are no longer needed to build gevent

* Rename core_.pyx to core.ppyx and use C preprocessor macros here instead of m4 macros

--HG--
rename : gevent/core_.pyx => gevent/core.ppyx
parent 79cb702b
......@@ -2,23 +2,17 @@
# run it. If you want setup.py to run "make" automatically, rename it back to "Makefile".
PYTHON ?= python
CYTHON ?= cython
M4 ?= m4
all: gevent/gevent.core.c gevent/gevent.ares.c
gevent/core.pyx: gevent/core_.pyx
$(M4) -P gevent/core_.pyx > core.pyx && mv core.pyx gevent/
gevent/gevent.core.c: gevent/core.pyx gevent/libev.pxd
$(PYTHON) util/cython_ifdef.py -o gevent.core.c gevent/core.pyx
gevent/gevent.core.c: gevent/core.ppyx gevent/libev.pxd util/cythonpp.py
$(PYTHON) util/cythonpp.py -o gevent.core.c gevent/core.ppyx
echo >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
gevent/gevent.ares.c: gevent/*.pyx gevent/*.pxd
$(CYTHON) -o gevent.ares.c gevent/ares.pyx
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
clean:
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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