Skip to content
Snippets Groups Projects
Forked from kwant / kwant
Source project has a limited visibility.
  • Christoph Groth's avatar
    874b6c29
    move ensure_python() from setup.py into Kwant and use it · 874b6c29
    Christoph Groth authored
    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.
    874b6c29
    History
    move ensure_python() from setup.py into Kwant and use it
    Christoph Groth authored
    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.