[pypy-commit] cffi cffi-1.0: or like that

arigo noreply at buildbot.pypy.org
Sun May 17 13:17:22 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r2032:adfcbcb6d365
Date: 2015-05-17 13:18 +0200
http://bitbucket.org/cffi/cffi/changeset/adfcbcb6d365/

Log:	or like that

diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst
--- a/doc/source/cdef.rst
+++ b/doc/source/cdef.rst
@@ -704,11 +704,11 @@
 
     if '_cffi_backend' in sys.builtin_module_names:
         import _cffi_backend
-        old_cffi = _cffi_backend.__version__.startswith('0.')
+        new_cffi = _cffi_backend.__version__ >= "1"
     else:
-        old_cffi = False   # assume at least 1.0.0 will be installed
+        new_cffi = True   # assume at least 1.0.0 will be installed
 
-and then use the ``old_cffi`` variable to give different arguments
+and then use the ``new_cffi`` variable to give different arguments
 to ``setup()`` as needed.
 
 .. __: out-of-line-api_


More information about the pypy-commit mailing list