You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
721 B
Python
32 lines
721 B
Python
15 years ago
|
"""
|
||
12 years ago
|
Builds rindmod.pyd
|
||
|
|
||
|
See also
|
||
|
http://www.scipy.org/Cookbook/CompilingExtensionsOnWindowsWithMinGW
|
||
14 years ago
|
|
||
15 years ago
|
"""
|
||
|
import os
|
||
12 years ago
|
import sys
|
||
10 years ago
|
from wafo.f2py_tools import f2py_call_str
|
||
15 years ago
|
|
||
14 years ago
|
|
||
|
def compile_all():
|
||
10 years ago
|
f2py_call = f2py_call_str()
|
||
|
print '=' * 75
|
||
14 years ago
|
print 'compiling rind2007'
|
||
10 years ago
|
print '=' * 75
|
||
|
|
||
|
files = ['intmodule', 'jacobmod', 'swapmod',
|
||
|
'fimod', 'rindmod', 'rind71mod']
|
||
14 years ago
|
compile1_format = 'gfortran -fPIC -c %s.f'
|
||
|
format1 = '%s.o ' * len(files)
|
||
10 years ago
|
for file_ in files:
|
||
|
os.system(compile1_format % file_)
|
||
|
file_objects = format1 % tuple(files)
|
||
|
|
||
|
os.system(f2py_call + ' -m rindmod -c %s rind_interface.f ' %
|
||
|
file_objects)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
15 years ago
|
compile_all()
|