forked from socolofs/tamoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (84 loc) · 3.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""
SETUP.py - Setup utility for TAMOC: Texas A&M Oilspill Calculator
This script manages the installation of the TAMOC package into a standard
Python distribution.
For more information on TAMOC, see README.txt, LICENSE.txt, and CHANGES.txt.
Notes
-----
To install, use:
> python setup.py build
> python setup.py install
To uninstall, use:
> pip uninstall TAMOC
To create a source distribution, use:
> python setup.py sdist --formats=gztar,zip
Author
------
S. Socolofsky, January 2012, Texas A&M University <[email protected]>.
"""
from numpy.distutils.core import Extension
# Describe some attributes of the software
classifiers = """\
Development Status :: beta
Environment :: Console
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: MIT
Operating System :: OS Independent
Programming Language :: Python
Topic :: Scientific/Engineering
Topic :: Software Development :: Libraries :: Python Modules
"""
# Define the sample programs to include
bin_files = ['./bin/dbm/air_eos.py',
'./bin/dbm/co2_eos.py',
'./bin/dbm/dead_oil.py',
'./bin/dbm/equilibrium.py',
'./bin/dbm/equil_test.py',
'./bin/dbm/gas_bubbles.py',
'./bin/dbm/hydrocarbon_drops.py',
'./bin/ambient/profile_extending.py',
'./bin/ambient/profile_append.py',
'./bin/ambient/profile_from_ctd.py',
'./bin/ambient/profile_from_lab.py',
'./bin/ambient/profile_from_roms.py',
'./bin/ambient/profile_from_txt.py',
'./bin/sbm/bubble.py',
'./bin/sbm/drop.py',
'./bin/sbm/sbm_file_io.py',
'./bin/sbm/particle.py',
'./bin/sbm/seep_bubble.py',
'./bin/spm/blowout.py',
'./bin/spm/lake_bub.py',
'./bin/spm/lake_part.py',
'./bin/spm/spm_file_io.py',
'./bin/sintef/particle_size_distribution.py',
'./bin/params/scales.py',
'./bin/bpm/blowout.py',
'./bin/bpm/crossflow_plume.py']
# Define the external Fortran sources
ext_dbm_f = Extension(name = 'dbm_f',
sources = ['tamoc/src/dbm_eos.f95',
'tamoc/src/dbm_phys.f95',
'tamoc/src/math_funcs.f95'])
# Provide the setup utility
if __name__ == '__main__':
#from numpy.distutils.core import setup
from numpy.distutils.core import setup
setup(
name = 'TAMOC',
version = '0.1.17',
description = 'Texas A&M Oilspill Calculator',
long_description = open('README.txt').read(),
license = 'LICENSE.txt',
author = 'Scott A. Socolofsky',
author_email = '[email protected]',
url="https://ceprofs.civil.tamu.edu/ssocolofsky/",
scripts=bin_files,
packages = ['tamoc'],
package_data={'tamoc': ['data/*.csv', 'data/*.cnv', 'data/*.dat']},
platforms = ['any'],
ext_package = 'tamoc',
ext_modules = [ext_dbm_f],
classifiers = filter(None, classifiers.split("\n")),
)