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

move ensure_python() from setup.py into Kwant and use it

This allows to provide a helpful error message when someone tries to
import Kwant with Python 2.

Note that I moved the version code into a module of its own:
kwant.version.  The rationale is to separate this code from unrelated
stuff in kwant._common that requires various external libs.  The
kwant.version module should work on its own without any third-party
libraries.
parent 8f17eae6
No related branches found
No related tags found
No related merge requests found
Loading
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