forked from BreakingBytes/simkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (40 loc) · 1.39 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
"""
To install Carousel from source, a cloned repository or an archive, use
``python setup.py install``.
Use ``python setup.py bdist_wheel`` to make distribute as a wheel.bdist_wheel.
"""
# try to use setuptools if available, otherwise fall back on distutils
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from carousel import __version__, __author__, __email__, __url__
import os
README = 'README.rst'
try:
with open(os.path.join(os.path.dirname(__file__), README), 'r') as readme:
README = readme.read()
except IOError:
pass
REQUIRES = [
'numpy', 'xlrd', 'scipy', 'python_dateutil', 'numexpr', 'pint (==0.7.2)',
'UncertaintyWrapper (>=0.4.1)', 'sphinx', 'nose', 'pandas', 'pytz',
'pvlib (>=0.4.2)', 'dulwich'
]
INST_REQ = ['%s%s' % (r[0], r[1][1:-1]) if len(r) == 2 else r[0]
for r in (r.split() for r in REQUIRES)]
setup(name='Carousel',
version=__version__,
description='Model Simulation Framework',
long_description=README,
author=__author__,
author_email=__email__,
url=__url__,
packages=['carousel', 'carousel.core', 'carousel.contrib'],
requires=REQUIRES,
install_requires=INST_REQ,
license='BSD 3-clause',
scripts=['carousel-quickstart.py'],
package_data={'carousel': [
'docs/conf.py', 'docs/*.rst', 'docs/Makefile', 'docs/make.bat'
]})