forked from jgomezdans/prosail
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
29 lines (26 loc) · 1.27 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
#!/usr/bin/env python
"""Setup script for building prosail's python bindings"""
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(parent_package,top_path)
config.add_extension('prosail_fortran', ['prosail/dataSpec_P5B.f90', \
"prosail/dladgen.f", "prosail/LIDF.f90", "prosail/MODULE_PRO4SAIL.f90", \
"prosail/PRO4SAIL.f90", "prosail/prospect_5B.f90", \
"prosail/run_prosail.f90","prosail/tav_abs.f90", \
"prosail/volscatt.f90","prosail/prosail_fortran.pyf"] )
return config
if __name__ == "__main__":
from numpy.distutils.core import setup
# Global variables for this extension:
name = "prosail" # name of the generated python extension (.so)
description = "PRO4SAIL python wrappers"
long_description = "The PROSPECT + SAILh radiative transfer models from Python."
author = "J Gomez-Dans/NCEO & University College London"
author_email = "[email protected]"
url = "https://github.com/jgomezdans/prosail"
setup( name=name,\
description=description, \
author=author, \
author_email = author_email, \
configuration = configuration, version="1.1.3",\
packages=["prosail"])