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`.
Installation procedure:
- set up python virtualenv `venv` - activate virtualenv - 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`.
Regards Joe
P.S. the non-standard Python shell prompts `<<<` were used because Gmane accuses me of top-posting if I use `>>>`
I've debugged this somewhat weird issue together with Joseph. It's not related in any way to pip.
Joseph was extracting the Kwant tarball und building it inside some _other_ git repository. Now, in order to determine its version, Kwant's setup.py checks whether it lives inside a git repository and extracts the version from git in that case.
In order to fix this (not very relevant) issue, Kwant's setup.py needs to be taught to only extract the version from git when the repository is a Kwant repository and not something further up the file system hierarchy.
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`.
Installation procedure:
set up python virtualenv `venv`
activate virtualenv
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`.
Regards Joe
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.
Joe