Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1608:84b177cfda19
Date: 2014-12-29 09:43 +0100
http://bitbucket.org/cffi/cffi/changeset/84b177cfda19/
Log: Disossiate the version encoded in the verifier module file names and
the version of CFFI itself
diff --git a/cffi/__init__.py b/cffi/__init__.py
--- a/cffi/__init__.py
+++ b/cffi/__init__.py
@@ -6,3 +6,8 @@
__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
--- 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 @@
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')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit