Skip to content

Commit 373eaea

Browse files
committed
add version checking. remove old comments
1 parent 078079a commit 373eaea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

setup.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
DESCRIPTION = 'The PVLIB toolbox provides a set functions for simulating the performance of photovoltaic energy systems.'
1515
LONG_DESCRIPTION = open('README.md').read()
1616

17-
# consider changing name to pythonic-pvlib
1817
DISTNAME = 'pvlib'
1918
LICENSE = 'The BSD 3-Clause License'
2019
AUTHOR = 'Dan Riley, Clifford Hanson, Rob Andrews, Will Holmgren, github contributors'
@@ -27,8 +26,8 @@
2726
exec(f.read())
2827

2928
# check python version.
30-
#if sys.version_info[:2] != (2, 7):
31-
# sys.exit('%s requires Python 2.7' % DISTNAME)
29+
if not sys.version_info[:2] in ((2,7), (3,3), (3,4)):
30+
sys.exit('%s requires Python 2.7, 3.3, or 3.4' % DISTNAME)
3231

3332
setuptools_kwargs = {
3433
'zip_safe': False,
@@ -42,15 +41,8 @@
4241
}
4342

4443
# more packages that we should consider requiring:
45-
# 'scipy >= 0.14.0',
46-
# 'matplotlib',
47-
# 'ipython >= 2.0',
48-
# 'pyzmq >= 2.1.11',
49-
# 'jinja2',
50-
# 'tornado',
5144
# 'pyephem',
5245

53-
5446
# set up pvlib packages to be installed and extensions to be compiled
5547
PACKAGES = ['pvlib',
5648
'pvlib.spa_c_files']

0 commit comments

Comments
 (0)