forked from DEQrmichie/heatsource-9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (63 loc) · 3.1 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
#!/usr/bin/env python3
from setuptools import setup
from setuptools import Extension
from sys import version_info as vi
installed_version = (vi[0], vi[1])
if installed_version < (3, 0):
raise Exception("The default Python version must be 3.0 or higher, not {0}.{1}".format(vi[0], vi[1]))
USE_CYTHON = True
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize('src/heatsource9/Stream/*.pyx', compiler_directives={'language_level': "3"})
else:
extensions = [Extension('heatsource9.Stream.PyHeatsource', ['src/heatsource9/Stream/PyHeatsource.c']),
Extension('heatsource9.Stream.StreamNode', ['src/heatsource9/Stream/StreamNode.c'])]
setup(name='heatsource9',
version='9.0.0b26',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering'
],
long_description="""Heat Source is a computer model used by the
Oregon Department of Environmental Quality to simulate stream
thermodynamics and hydraulic routing. It was originally developed
by Matt Boyd in 1996 as a Masters Thesis at Oregon State University
in the Departments of Bioresource Engineering and Civil
Engineering. Since then it has grown and changed significantly.
Oregon DEQ currently maintains the Heat Source methodology and
computer programming. Appropriate model use and application are
the sole responsibility of the user.""",
description='One-dimensional stream temperature modeling program',
url='https://www.oregon.gov/deq/wq/tmdls/Pages/TMDLs-Tools.aspx',
project_urls={
'Documentation': 'https://www.oregon.gov/deq/FilterDocs/heatsourcemanual.pdf',
'Source': 'https://github.com/DEQrmichie/heatsource-9/'},
author='Matt Boyd, Brian Kasper, John Metta, Ryan Michie, Dan Turner',
maintainer='Ryan Michie, Oregon DEQ',
maintainer_email='[email protected]',
platforms=['darwin', 'linux', 'win32'],
license='GNU General Public License v3 (GPLv3)',
zip_safe=False,
entry_points={'console_scripts': ['hs = heatsource9.BigRedButton:hs']},
packages=['heatsource9',
'heatsource9.ModelSetup',
'heatsource9.Dieties',
'heatsource9.Stream',
'heatsource9.Utils'],
package_dir={'': 'src'},
install_requires=['Cython'],
ext_modules=extensions,
python_requires='>=3, <4'
)