Initial Work on Cython Code

This commit is contained in:
2022-12-06 21:15:09 -03:00
parent be8f3fba42
commit 4b863c0ad8
25 changed files with 758 additions and 327 deletions

20
makefile Normal file
View File

@@ -0,0 +1,20 @@
WORK=./yoshi_seals
PROCESS=$(WORK)/process
SHARED=$(WORK)/shared
SETUP_CYTHON=setup_cython.py
OBJS= $(PROCESS)/process.pyx $(SHARED)/array.pyx $(SETUP_CYTHON)
PYTHON?=python
PARALLEL?=$(shell ${PYTHON} -c 'import sys; print("-j5" if sys.version_info >= (3,5) else "")' || true)
all: $(OBJS)
python3 $(SETUP_CYTHON) build_ext --inplace $(PARALLEL) && \
rm -r build
clean:
rm $(WORK)/**/*.cpython-310-x86_64-linux-gnu.so
rm $(WORK)/**/*.c