Skip to content

Commit 65e9f0f

Browse files
committed
-
1 parent 5ae7ea9 commit 65e9f0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
import setuptools
1010
import sys
1111

12+
### Confirming correct Python version: ########################################
13+
# #
14+
if sys.version_info[0] >= 3:
15+
raise Exception("Python 3.x is not supported")
16+
if sys.version_info[1] <= 4:
17+
raise Exception(
18+
"You're using Python <=2.4, but this package requires Python 2.5 and "
19+
"upwards, so you can't use it unless you upgrade your Python version."
20+
)
21+
# #
22+
### Finished confirming correct Python version. ###############################
1223

1324
def get_python_toolbox_packages():
1425
'''

0 commit comments

Comments
 (0)