From ec618c98e8afdf2e5083a8dd045953cdc43781e1 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 5 Dec 2018 00:49:28 -0500 Subject: project: pycompile: extend to allow .pyc generation of all pydist scripts. --- profiles/linkage/inittab.h | 4 ++++ profiles/linkage/pycompile.h | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 profiles/linkage/pycompile.h (limited to 'profiles') diff --git a/profiles/linkage/inittab.h b/profiles/linkage/inittab.h index 94474c8..86d3ea9 100644 --- a/profiles/linkage/inittab.h +++ b/profiles/linkage/inittab.h @@ -8,6 +8,10 @@ #include "static.h" #endif +#ifdef PY_FOR_PYCOMPILE +#include "pycompile.h" +#endif + struct _inittab { char * name; PY_INIT_PTR(initfunc); diff --git a/profiles/linkage/pycompile.h b/profiles/linkage/pycompile.h new file mode 100644 index 0000000..9cdd7ac --- /dev/null +++ b/profiles/linkage/pycompile.h @@ -0,0 +1,26 @@ +#ifndef PY_LINKAGE_PYCOMPILE_H +#define PY_LINKAGE_PYCOMPILE_H + +PY_INIT_FUNC(init_collections); +PY_INIT_FUNC(init_functools); +PY_INIT_FUNC(init_heapq); +PY_INIT_FUNC(init_locale); + +PY_INIT_FUNC(inititertools); +PY_INIT_FUNC(initoperator); +PY_INIT_FUNC(initreadline); +PY_INIT_FUNC(initstrop); +PY_INIT_FUNC(initunicodedata); + +#define PY_IMPORT_INITTAB_PYCOMPILE_CORE \ + {"_collections", init_collections}, \ + {"_functools", init_functools}, \ + {"_heapq", init_heapq}, \ + {"_locale", init_locale}, \ + {"itertools", inititertools}, \ + {"operator", initoperator}, \ + {"readline", initreadline}, \ + {"strop", initstrop}, \ + {"unicodedata", initunicodedata} + +#endif -- cgit v1.2.3