diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-14 11:16:23 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-14 11:16:23 +0100 |
commit | 1f24710e8e3a9127964d84d74d24e80150a306b4 (patch) | |
tree | 372d3b6b2c713bde98c70d7cbd49d5263f8ba06c | |
parent | 65408e6c70074c4fec128805888d18c7e933895a (diff) | |
download | cython-1f24710e8e3a9127964d84d74d24e80150a306b4.tar.gz |
make JSON dict order predictable for build metadata
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 47858583d..20b052cb8 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -553,7 +553,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("") if metadata: code.putln("/* BEGIN: Cython Metadata") - code.putln(json.dumps(metadata, indent=4)) + code.putln(json.dumps(metadata, indent=4, sort_keys=True)) code.putln("END: Cython Metadata */") code.putln("") code.putln("#define PY_SSIZE_T_CLEAN") |