diff options
author | Armin Rigo <arigo@tunes.org> | 2014-12-29 09:43:50 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2014-12-29 09:43:50 +0100 |
commit | 9ee55dda4d2ba8e310bb0c956989bbd8cc3e3703 (patch) | |
tree | 4b46e636a03a0c26f1c405eb3a34a7ee4a959138 /cffi | |
parent | 0e4549dad250506228fd4e8cd324f14902e4bed4 (diff) | |
download | cffi-9ee55dda4d2ba8e310bb0c956989bbd8cc3e3703.tar.gz |
Disossiate the version encoded in the verifier module file names
and the version of CFFI itself
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/__init__.py | 5 | ||||
-rw-r--r-- | cffi/verifier.py | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/cffi/__init__.py b/cffi/__init__.py index df981fd..0fe4444 100644 --- a/cffi/__init__.py +++ b/cffi/__init__.py @@ -6,3 +6,8 @@ from .ffiplatform import VerificationError, VerificationMissing __version__ = "0.8.6" __version_info__ = (0, 8, 6) + +# The verifier module file names are based on the CRC32 of a string that +# contains the following version number. It may be older than __version__ +# if nothing is clearly incompatible. +__version_verifier_modules__ = "0.8.6" diff --git a/cffi/verifier.py b/cffi/verifier.py index 64fef77..688a172 100644 --- a/cffi/verifier.py +++ b/cffi/verifier.py @@ -1,5 +1,5 @@ import sys, os, binascii, shutil -from . import __version__ +from . import __version_verifier_modules__ from . import ffiplatform if sys.version_info >= (3, 3): @@ -32,8 +32,8 @@ class Verifier(object): if tag: raise TypeError("can't specify both 'modulename' and 'tag'") else: - key = '\x00'.join([sys.version[:3], __version__, preamble, - flattened_kwds] + + key = '\x00'.join([sys.version[:3], __version_verifier_modules__, + preamble, flattened_kwds] + ffi._cdefsources) if sys.version_info >= (3,): key = key.encode('utf-8') |