summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cffi/setuptools_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
index 7c763ba..dc9c33a 100644
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -76,7 +76,7 @@ def _add_c_module(dist, ffi, module_name, source, source_extension, kwds):
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):