Commit ac8d44a4 authored by Stefan Behnel's avatar Stefan Behnel

make embedded Cython meta data more trivial to parse

parent 56dfb178
...@@ -552,10 +552,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -552,10 +552,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("/* Generated by Cython %s */" % Version.watermark) code.putln("/* Generated by Cython %s */" % Version.watermark)
code.putln("") code.putln("")
if metadata: if metadata:
code.putln("/* Cython Metadata */") code.putln("/* BEGIN: Cython Metadata")
code.putln("/*")
code.putln(json.dumps(metadata, indent=4)) code.putln(json.dumps(metadata, indent=4))
code.putln("*/") code.putln("END: Cython Metadata */")
code.putln("") code.putln("")
code.putln("#define PY_SSIZE_T_CLEAN") code.putln("#define PY_SSIZE_T_CLEAN")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment