mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-11-09 07:33:43 +01:00
Updates
Version:1.2.10
This commit is contained in:
parent
0262309896
commit
c9429db649
11
src/Makefile
11
src/Makefile
@ -1,5 +1,14 @@
|
|||||||
default: $(wildcard %.py)
|
PYTHON=python
|
||||||
|
PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
|
||||||
|
|
||||||
|
irpf90.exe: irpf90.so
|
||||||
|
gcc build/*/irpf90.o -L/usr/lib -lpython$(PYVERSION) -o irpf90.exe
|
||||||
|
|
||||||
|
irpf90.so : $(wildcard %.py) irpf90.c
|
||||||
./cython_setup.py build_ext --inplace
|
./cython_setup.py build_ext --inplace
|
||||||
|
|
||||||
|
irpf90.c: irpf90.py
|
||||||
|
cython --embed irpf90.py
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm *.c *.so *.pyc 2>/dev/null
|
rm *.c *.so *.pyc 2>/dev/null
|
||||||
|
@ -179,7 +179,7 @@ do_$LONG = property(fget=do_$LONG)
|
|||||||
"""
|
"""
|
||||||
for short in options:
|
for short in options:
|
||||||
long = options[short][0]
|
long = options[short][0]
|
||||||
exec t.replace("$LONG",long).replace("$SHORT",short)
|
exec t.replace("$LONG",long).replace("$SHORT",short) #in locals()
|
||||||
|
|
||||||
def do_run(self):
|
def do_run(self):
|
||||||
if '_do_run' not in self.__dict__:
|
if '_do_run' not in self.__dict__:
|
||||||
|
@ -4,7 +4,7 @@ from distutils.extension import Extension
|
|||||||
from Cython.Distutils import build_ext
|
from Cython.Distutils import build_ext
|
||||||
import os
|
import os
|
||||||
|
|
||||||
to_remove = """cython_setup.py command_line.py irpf90.py""".split()
|
to_remove = """cython_setup.py command_line.py""".split()
|
||||||
ext_modules = []
|
ext_modules = []
|
||||||
|
|
||||||
files = os.listdir('.')
|
files = os.listdir('.')
|
||||||
@ -16,7 +16,6 @@ for file in files:
|
|||||||
module = file.split('.')[0]
|
module = file.split('.')[0]
|
||||||
ext_modules += [ Extension(module,[file]) ]
|
ext_modules += [ Extension(module,[file]) ]
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'IRPF90 extensions',
|
name = 'IRPF90 extensions',
|
||||||
cmdclass = {'build_ext': build_ext},
|
cmdclass = {'build_ext': build_ext},
|
||||||
@ -24,3 +23,5 @@ setup(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,9 +28,12 @@
|
|||||||
|
|
||||||
import vim
|
import vim
|
||||||
import os,sys
|
import os,sys
|
||||||
wd = os.path.abspath(os.path.dirname(__file__))
|
try:
|
||||||
|
wd = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
sys.path.insert(0,(wd+"/../src/"))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
sys.setcheckinterval(1000)
|
sys.setcheckinterval(1000)
|
||||||
sys.path.insert(0,(wd+"/../src/"))
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
from command_line import command_line
|
from command_line import command_line
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "1.2.9"
|
version = "1.2.10"
|
||||||
|
Loading…
Reference in New Issue
Block a user