summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-12-23 13:09:15 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-12-23 13:09:15 +0100
commit1b7d2d823e64ba191a5b9324cfd2e0ef0191767a (patch)
tree2ddf31d60a7685b807b1defd56045021c3c3e1bd
parent0177b8bde0334ccfdca11cb2c65bc006d859e96b (diff)
downloadcython-1b7d2d823e64ba191a5b9324cfd2e0ef0191767a.tar.gz
Prevent extension-local directives from leaking into the build-global directives.
-rw-r--r--Cython/Distutils/old_build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Distutils/old_build_ext.py b/Cython/Distutils/old_build_ext.py
index 882f72666..c82aa249c 100644
--- a/Cython/Distutils/old_build_ext.py
+++ b/Cython/Distutils/old_build_ext.py
@@ -271,7 +271,7 @@ class old_build_ext(_build_ext.build_ext):
# 1. Start with the command line option.
# 2. Add in any (unique) entries from the extension
# cython_directives (if Cython.Distutils.extension is used).
- directives = self.cython_directives
+ directives = dict(self.cython_directives)
if hasattr(extension, "cython_directives"):
directives.update(extension.cython_directives)