finding the Cython version (was: Cython 0.21 released)
Alex K schrieb am 11.09.2014 um 13:49:
tables 3.0.0 (maybe later version too) fails to install with `pip install tables==3.0.0` due to changes in naming. PyTables's build script expects Cython.Compiler.Main.Version, and gives an error when it doesn't find it. Cython 0.21 provides Cython.Compiler.Main.version.
The right way to check for the Cython version is Cython.__version__ as with most Python packages. For backwards compatibility with old Cython versions that didn't have it yet, you can use Cython.Compiler.Version.version Relying on a re-exported import like "Cython.Compiler.Main.Version" is like asking for "os.sys" to work because the "os" module happens to do "import sys". Stefan
On Thu, 2014-09-11 at 14:02 +0200, Stefan Behnel wrote:
The right way to check for the Cython version is
Cython.__version__
as with most Python packages.
Hi Stefan, I've just send a pull request to PyTables to fix this: https://github.com/PyTables/PyTables/pull/387 I would appreciate if you could chime in and vet it in the case that it looks sane to you. Thanks, -- Sincerely yours, Yury V. Zaytsev
participants (2)
-
Stefan Behnel -
Yury V. Zaytsev