python3: revert puting the encodings folder into a python3-codecs 1037/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 14 Mar 2015 14:13:51 +0000 (16:13 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 14 Mar 2015 19:24:31 +0000 (21:24 +0200)
Some notes about the 'encodings' module, which is about 1.7 MB.
Unfortunately that one cannot be moved into the 'python3-codecs'
package, because Python tries to load up all available encodings
at startup.
Some efforts to add a dummy folder/python file have failed so far,
since there's a C code (Python/codecs.c) that tries to evaluate that
all encodings (in the encodings folder/module) are valid.

Basically the encodings module is a repository of encodings,
and it seemst there are quite a few of them.

Maybe a request to upstream Python would work for this, to
make encodings a bit more decoupled from the interpreter.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python3/Makefile
lang/python3/files/python3-package-codecs.mk

index 1fb001aa0ee4b0aa6cc54681ed0bb0922d86d235..1cd18750dc1e52c42cf18f99036e7dc311e4beda 100644 (file)
@@ -156,6 +156,7 @@ define Build/InstallDev
 endef
 
 PYTHON3_BASE_LIB_FILES:= \
+       /usr/lib/python$(PYTHON_VERSION)/encodings \
        /usr/lib/python$(PYTHON_VERSION)/_collections_abc.py \
        /usr/lib/python$(PYTHON_VERSION)/_sitebuiltins.py \
        /usr/lib/python$(PYTHON_VERSION)/_sysconfigdata.py \
index 67c3ee51a9f6cdd2f3b849dadf9833cbc3d398d7..66101e1fb80247010bf05007d6e3ec09ef35109e 100644 (file)
@@ -12,7 +12,6 @@ $(call Package/python3/Default)
 endef
 
 $(eval $(call Py3BasePackage,python3-codecs, \
-       /usr/lib/python$(PYTHON3_VERSION)/encodings \
        /usr/lib/python$(PYTHON3_VERSION)/lib-dynload/_codecs_cn.$(PYTHON3_SO_SUFFIX) \
        /usr/lib/python$(PYTHON3_VERSION)/lib-dynload/_codecs_hk.$(PYTHON3_SO_SUFFIX) \
        /usr/lib/python$(PYTHON3_VERSION)/lib-dynload/_codecs_iso2022.$(PYTHON3_SO_SUFFIX) \