[pypy-commit] cffi fix-multiple-sources-arguments: Fix multiple sources arguments passed to setuptools.

chrippa noreply at buildbot.pypy.org
Wed May 20 22:31:33 CEST 2015


Author: Christopher Rosell <chrippa at tanuki.se>
Branch: fix-multiple-sources-arguments
Changeset: r2068:33a80cca1c69
Date: 2015-05-20 20:26 +0200
http://bitbucket.org/cffi/cffi/changeset/33a80cca1c69/

Log:	Fix multiple sources arguments passed to setuptools.

diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -76,7 +76,7 @@
     from cffi import recompiler
 
     allsources = ['$PLACEHOLDER']
-    allsources.extend(kwds.get('sources', []))
+    allsources.extend(kwds.pop('sources', []))
     ext = Extension(name=module_name, sources=allsources, **kwds)
 
     def make_mod(tmpdir):


More information about the pypy-commit mailing list