[3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)



Automerge-Triggered-By: @pablogsal
diff --git a/Include/compile.h b/Include/compile.h
index 12417ce..98adee3 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -9,6 +9,9 @@
 
 /* Public interface */
 struct _node; /* Declare the existence of this type */
+#ifndef Py_BUILD_CORE
+Py_DEPRECATED(3.9)
+#endif
 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
 /* XXX (ncoghlan): Unprefixed type name in a public API! */