Skip to content
Snippets Groups Projects
Commit 12fe5156 authored by Christoph Groth's avatar Christoph Groth
Browse files

setup.py: check version of Python

parent a526e8f5
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,15 @@
from __future__ import print_function
import sys
v = sys.version_info
if v[:2] not in [(2, 7), (2, 6)]:
error = "This version of Kwant requires Python 2.6 or 2.7.\n"
if v[0] >= 2:
error += "Please use Kwant 1.2 or above."
print(error, file=sys.stderr)
sys.exit(1)
import re
import os
import glob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment