Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
kwant
Commits
12fe5156
Commit
12fe5156
authored
Dec 03, 2015
by
Christoph Groth
Browse files
setup.py: check version of Python
parent
a526e8f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
12fe5156
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment