diff options
author | midipix <writeonce@midipix.org> | 2018-12-05 00:49:28 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-06 20:58:31 -0500 |
commit | ec618c98e8afdf2e5083a8dd045953cdc43781e1 (patch) | |
tree | 60af3c19e6498ecdbe8ec031c1cfed9d6b1bdd34 /profiles | |
parent | 05a469061a9553e0fe2ffdf2b9833394f28192f5 (diff) | |
download | sbpython2-ec618c98e8afdf2e5083a8dd045953cdc43781e1.tar.bz2 sbpython2-ec618c98e8afdf2e5083a8dd045953cdc43781e1.tar.xz |
project: pycompile: extend to allow .pyc generation of all pydist scripts.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/linkage/inittab.h | 4 | ||||
-rw-r--r-- | profiles/linkage/pycompile.h | 26 |
2 files changed, 30 insertions, 0 deletions
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 |