Skip to content

Commit face13b

Browse files
Check the minimum supported Python version and raise an exception if an older
Python version is being used.
1 parent 809ead0 commit face13b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
import os
1313
import sys
1414

15+
# check minimum supported Python version
16+
if sys.version_info[:2] < (3, 5):
17+
raise Exception("Python 3.5 or higher is required.")
18+
1519
# if setuptools is detected, use it to add support for eggs
1620
try:
1721
from setuptools import setup, Extension

0 commit comments

Comments
 (0)