From 9f71776118fc9b830bd4d991d250f8fa2523b5f6 Mon Sep 17 00:00:00 2001 From: Sandro Gauci Date: Sun, 1 Mar 2020 06:48:52 +0100 Subject: [PATCH] added a check in setup.py for python3 --- setup.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f3394f6..4e22139 100644 --- a/setup.py +++ b/setup.py @@ -21,9 +21,19 @@ # MA 02110-1301, USA. import io +import sys + +if sys.version_info[0] < 3: + raise Exception("Must be using Python 3") + + from os import path -from setuptools import setup, find_packages + +from setuptools import find_packages, setup + from sipvicious.libs.svhelper import __author__, __version__ + + this_directory = path.abspath(path.dirname(__file__)) with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: desc = f.read()