-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·27 lines (18 loc) · 988 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import setuptools
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.core import Extension
config = Configuration('geospatialtools', parent_package, top_path)
config.add_extension('terrain_tools_fortran',
sources=['src/planchon_2001.f90','src/terrain_tools.f90'],
extra_f90_compile_args = ['-fPIC','-lgomp','-Wall','-pedantic','-fopenmp','-O3']
),
config.add_extension('upscaling_tools_fortran',
sources=['src/upscaling_tools.f90'],
extra_f90_compile_args = ['-fPIC','-lgomp','-Wall','-pedantic','-fopenmp','-O3']
),
config.add_subpackage('',subpackage_path='libraries')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(**configuration(top_path='').todict())