From a7c3a1f326388348ddbfa41af853686a4bd40786 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Richter Date: Sun, 21 Jun 2015 16:06:04 +0200 Subject: [PATCH] added python3 assertion to setup.py --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b85d7e3..6deab08 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,15 @@ #!/usr/bin/env python3.3 from setuptools import setup +import sys + +app_name = 'blocks' + +if sys.version_info < (3,): + raise Exception("%s's setup.py needs to be run with python3" % (app_name,)) setup( - name='blocks', + name=app_name, version='0.1.4', author='Gabriel de Perthuis', author_email='g2p.code+blocks@gmail.com',