From 6c734f76133f659ff4018f6121f0afc61ff37903 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Nov 2010 10:34:30 +0100 Subject: [PATCH] move 'official' version number to Cython/__init__.py to avoid importing the complete compiler package for a version check --- Cython/Compiler/Version.py | 4 +++- Cython/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Version.py b/Cython/Compiler/Version.py index e8dfdaf0..1969eb78 100644 --- a/Cython/Compiler/Version.py +++ b/Cython/Compiler/Version.py @@ -1 +1,3 @@ -version = '0.13' +# for backwards compatibility + +from Cython import __version__ as version diff --git a/Cython/__init__.py b/Cython/__init__.py index 424bd952..782a106f 100644 --- a/Cython/__init__.py +++ b/Cython/__init__.py @@ -1,4 +1,4 @@ -from Compiler.Version import version as __version__ +__version__ = '0.13' # Void cython.* directives (for case insensitive operating systems). from Cython.Shadow import * diff --git a/setup.py b/setup.py index 81d2eb65..58e55c86 100644 --- a/setup.py +++ b/setup.py @@ -197,7 +197,7 @@ except ValueError: setup_args.update(setuptools_extra_args) -from Cython.Compiler.Version import version +from Cython import __version__ as version setup( name = 'Cython', -- 2.26.2