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

simplify and improve version determination

The file kwant/_static_version.py is no longer written upon every
invocation of setup.py.  Instead, a file kwant/_kwant_version.py is
injected into source and binary distributions.

The static version in kwant/_kwant_version.py now takes precedence
before any version from git.  This makes the --no-git option to setup.py
no longer necessary, since the existence of kwant/_kwant_version.py has
the same role.  The motivation behind this change is to allow keeping
Kwant distributions in git repositories that have a different layout
from the canonical Kwant git repository.  This is useful for example for
packaging.

The name of the static version file was changed to avoid problems with
stale files.
parent 0c85ed62
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