10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 12:23:32 +01:00

Fixed bug with Cython

This commit is contained in:
Anthony Scemama 2013-12-11 14:49:02 +01:00
parent fd3b743792
commit f1d3eba3bc
3 changed files with 3 additions and 6 deletions

View File

@ -1 +1 @@
../src/irpf90_python.exe ../src/irpf90.exe

Binary file not shown.

View File

@ -3,11 +3,8 @@ PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
HAS_CYTHON=$(shell bash -c "which cython &> /dev/null && echo 1 || echo 0") HAS_CYTHON=$(shell bash -c "which cython &> /dev/null && echo 1 || echo 0")
ifneq ($(HAS_CYTHON),0) ifneq ($(HAS_CYTHON),0)
../bin/irpf90: irpf90.exe ../bin/irpf90: irpf90.so
rm ../bin/irpf90 ; cd ../bin ; ln -s ../src/irpf90.exe irpf90 rm ../bin/irpf90 ; cd ../bin ; ln -s ../src/irpf90_python.exe irpf90
irpf90.exe: irpf90.so
gcc build/*/irpf90.o -L/usr/lib64 -lpython$(PYVERSION) -o irpf90.exe
irpf90.so : $(wildcard *.py) irpf90.c irpf90.so : $(wildcard *.py) irpf90.c
./cython_setup.py build_ext --inplace ./cython_setup.py build_ext --inplace