forked from UARENForecasting/PVLIB_Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (62 loc) · 1.9 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
#!/usr/bin/env python
import os
import re
import shutil
import sys
try:
from setuptools import setup, Command
from setuptools.extension import Extension
except ImportError:
raise RuntimeError('setuptools is required')
DESCRIPTION = 'Pythonic port of the python port of the PVLIB package'
LONG_DESCRIPTION = open('README.md').read()
# consider changing name to pythonic-pvlib
DISTNAME = 'pvlib'
LICENSE = 'The BSD 3-Clause License'
AUTHOR = 'Dan Riley, Clifford Hanson, Rob Andrews, Will Holmgren, github contributors'
MAINTAINER_EMAIL = '[email protected]'
URL = 'https://github.com/UARENForecasting/pythonic-PVLIB'
MAJOR = 0
MINOR = 2
MICRO = 0
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
# check python version.
#if sys.version_info[:2] != (2, 7):
# sys.exit('%s requires Python 2.7' % DISTNAME)
setuptools_kwargs = {
'zip_safe': False,
'install_requires': ['numpy >= 1.7.0',
'pandas >= 0.13',
'pytz',
],
'scripts': [],
'include_package_data': True
}
# more packages that we should consider requiring:
# 'scipy >= 0.14.0',
# 'matplotlib',
# 'ipython >= 2.0',
# 'pyzmq >= 2.1.11',
# 'jinja2',
# 'tornado',
# 'pyephem',
# set up pvlib packages to be installed and extensions to be compiled
PACKAGES = ['pvlib',
'pvlib.spa_c_files']
extensions = []
spa_ext = Extension('pvlib.spa_c_files.spa_py',
sources = ['pvlib/spa_c_files/spa.c',
'pvlib/spa_c_files/spa_py.c'],
depends = ['pvlib/spa_c_files/spa.h'])
extensions.append(spa_ext)
setup(name=DISTNAME,
version=VERSION,
packages=PACKAGES,
ext_modules=extensions,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
maintainer_email=MAINTAINER_EMAIL,
license=LICENSE,
url=URL,
**setuptools_kwargs)