diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-12-23 13:09:15 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-12-23 13:09:15 +0100 |
commit | 1b7d2d823e64ba191a5b9324cfd2e0ef0191767a (patch) | |
tree | 2ddf31d60a7685b807b1defd56045021c3c3e1bd | |
parent | 0177b8bde0334ccfdca11cb2c65bc006d859e96b (diff) | |
download | cython-1b7d2d823e64ba191a5b9324cfd2e0ef0191767a.tar.gz |
Prevent extension-local directives from leaking into the build-global directives.
-rw-r--r-- | Cython/Distutils/old_build_ext.py | 2 |
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) |