-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
66 lines (58 loc) · 2.22 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
#!/usr/bin/env python
import os
from numpy.distutils.core import setup, Extension
VERSION = '0.4.2.post1'
src_dir = "src"
pkg_dir = "mie"
DESCRIPTION = "Python wrapper for Mie theory calculators"
LONG_DESCRIPTION = """
This package wraps several widely-used and vetted Mie theory calculators, originally implemented in Fortran. It includes several reference functions for highlighting how to adapt these calculators for more complex tasks, such as integrating over particle size distributions with variable optical properties. Furthermore, it includes implementations for both homogenous particles and simple mixture models such as core-shells.
"""
NAME = "py-mie"
AUTHOR = "Daniel Rothenberg"
AUTHOR_EMAIL = "[email protected]"
MAINTAINER = "Daniel Rothenberg"
MAINTAINER_EMAIL = "[email protected]"
URL = 'http://github.com/darothen/py-mie'
DOWNLOAD_URL = 'http://github.com/darothen/py-mie'
LICENSE = 'MIT'
## Setup the compiled library modules
mie_files = ["mod_%s.f90" % s for s in ["kinds", "dmiess", "bhmie", "dmilay"]]
sources = [os.path.join(src_dir, s) for s in mie_files]
sources += [os.path.join(pkg_dir, "mod_mie.pyf"), ]
mie_ext = Extension(
'mie._mie', sources=sources
)
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
#long_description=LONG_DESCRIPTION,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
url = URL,
download_url = DOWNLOAD_URL,
license = LICENSE,
install_requires = ['numpy', ],
packages = ['mie','mie.tests', ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: Unix',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Fortran',
'Topic :: Scientific/Engineering :: Atmospheric Science',
],
ext_modules = [
mie_ext,
]
)