Skip to content

Commit 7f247a0

Browse files
committed
More tweaks to prevent installation from python2.
1 parent 0f87e11 commit 7f247a0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
from setuptools import setup
1010

1111

12+
class NotSupportedException(BaseException): pass
13+
14+
15+
if sys.version_info.major < 3:
16+
raise NotSupportedException("Only Python 3.x Supported")
17+
18+
1219
def platform_detection(install_binaries=True):
1320
"""
1421
Detect the platform and adapt the binaries location.
@@ -31,7 +38,7 @@ def platform_detection(install_binaries=True):
3138

3239
# Set some variables (PKGBUILD inspired)
3340
DATA_FILES = platform_detection()
34-
VERSION = "0.2.1"
41+
VERSION = "0.2.2"
3542
URL = "https://github.com/StuntsPT/Structure_threader"
3643

3744

0 commit comments

Comments
 (0)