Joseph Weston <joseph.weston08@...> writes:
It appears that the version number of the kwant package on the cheese-shop is incorrect. On `https://pypi.python.org/pypi/kwant/%60 the version is correctly stated as `1.0.0`, and the tar archive is version `1.0.0` as required, however when installing via `pip` the version is quoted as `0.1.6`.
set up python virtualenv `venv`
installed all dependencies via `pip` (cython, numpy, scipy, tinyarray)
installed kwant via `pip`
launch python shell:
<<< import kwant <<< print kwant.__file__ /<path redacted>/venv/local/lib/python2.7/site-packages/kwant/__init__.pyc <<< print kwant.version.version 0.1.6
The API for this package seems to be commensurate with that for version `1.0.0`, so I believe that this is just a case of `kwant/_static_version.py` having not been regenerated correctly when kwant was packaged and published on the cheese-shop.
This is no a major issue, but may be confusing for people who have downloaded kwant via `pip` especially if they then seek help and quote the version as `0.1.6`.
P.S. the non-standard Python shell prompts `<<<` were used because Gmane accuses me of top-posting if I use `>>>`
After discussion with Christoph it appears that we have found the root of the problem.
The virtual environment was created inside a git repository in which another code is being developed (kwant is a dependency). When the kwant package was installed via `pip` kwant detected that it was inside a git repository and generated the `_static_version.py` using this (incorrect) data.