mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 11:53:32 +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
|
||||
|
||||
irpf90.c: irpf90.py
|
||||
cython --embed irpf90.py
|
||||
|
||||
clean:
|
||||
rm *.c *.so *.pyc 2>/dev/null
|
||||
|
@ -179,7 +179,7 @@ do_$LONG = property(fget=do_$LONG)
|
||||
"""
|
||||
for short in options:
|
||||
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):
|
||||
if '_do_run' not in self.__dict__:
|
||||
|
@ -4,7 +4,7 @@ from distutils.extension import Extension
|
||||
from Cython.Distutils import build_ext
|
||||
import os
|
||||
|
||||
to_remove = """cython_setup.py command_line.py irpf90.py""".split()
|
||||
to_remove = """cython_setup.py command_line.py""".split()
|
||||
ext_modules = []
|
||||
|
||||
files = os.listdir('.')
|
||||
@ -16,7 +16,6 @@ for file in files:
|
||||
module = file.split('.')[0]
|
||||
ext_modules += [ Extension(module,[file]) ]
|
||||
|
||||
|
||||
setup(
|
||||
name = 'IRPF90 extensions',
|
||||
cmdclass = {'build_ext': build_ext},
|
||||
@ -24,3 +23,5 @@ setup(
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -28,9 +28,12 @@
|
||||
|
||||
import vim
|
||||
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.path.insert(0,(wd+"/../src/"))
|
||||
|
||||
def main():
|
||||
from command_line import command_line
|
||||
|
@ -1 +1 @@
|
||||
version = "1.2.9"
|
||||
version = "1.2.10"
|
||||
|
Loading…
Reference in New Issue
Block a user