-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (64 loc) · 2.02 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
"""
setup.py for pyBadlands
"""
from numpy.distutils.core import setup, Extension
ext_modules = []
'''
# NOTE: compilation of f90 source is not working yet. You must run `make` from the libUtils directory.
# You can install the package using 'pip install -e <checkout dir>', but a packaged installation is not likely to work.
PDstack_mod = Extension(name = "PDstack",
sources=['libUtils/PDstack.f90'],
#extra_f90_compile_args=["-ffixed-form"],
)
ext_modules = [
Extension(
name="SFDalgo",
sources=['libUtils/SFDalgo.f90'],
#extra_f90_compile_args=["-ffixed-form"],
),
Extension(
name="FLOWalgo",
sources=['libUtils/FLOWalgo.f90'],
#extra_f90_compile_args=["-ffixed-form"],
),
Extension(
name="FLWnetwork",
sources=['libUtils/FLOWstack.f90', 'libUtils/FLWnetwork.f90'],
#extra_f90_compile_args=["-ffixed-form"],
),
Extension(
name="PDalgo",
# sources=['libUtils/PDstack.f90', 'libUtils/PDalgo.f90'],
sources=['libUtils/PDalgo.f90'],
#extra_f90_compile_args=["-ffixed-form"],
),
#Extension(
#name="FVclass",
#sources=['libUtils/FVclass.f90'],
##extra_f90_compile_args=["-ffixed-form"],
#),
#Extension(
#name="FVframe",
##sources=['libUtils/FVframe.f90'],#, 'libUtils/FVclass.f90'],
#sources=['libUtils/FVclass.f90', 'libUtils/FVframe.f90'],
##extra_f90_compile_args=["-ffixed-form"],
#),
]
'''
setup(
name="pyBadlands",
version="0.1",
author="Tristan Salles",
author_email="",
description=("Python interface to Badlands"),
long_description=open('README.md').read(),
classifiers=[
"Development Status :: 3 - Alpha",
],
packages=['pyBadlands', 'pyBadlands.libUtils'],#, 'pyBadlands.raster2TIN', 'pyBadlands.FVmethod'],
# py_modules = modules,
ext_package='pyBadlands',
ext_modules=ext_modules,
scripts=[],
)