[pypy-commit] cffi cffi-1.0: Tweak

arigo noreply at buildbot.pypy.org
Mon May 4 18:10:06 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1912:a9a53e904d80
Date: 2015-05-04 18:10 +0200
http://bitbucket.org/cffi/cffi/changeset/a9a53e904d80/

Log:	Tweak

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -487,6 +487,8 @@
         from _cffi1 import recompile
         #
         if not hasattr(self, '_assigned_source'):
+            if hasattr(self, 'verifier'):     # fallback, 'tmpdir' ignored
+                return self.verifier.get_extension()
             raise ValueError("set_source() must be called before"
                              " distutils_extension()")
         source, kwds = self._assigned_source


More information about the pypy-commit mailing list