python3: fix distutils path to package when using bytecodes
authorAlexandru Ardelean <redacted>
Mon, 12 Jun 2017 20:17:05 +0000 (23:17 +0300)
committerAlexandru Ardelean <redacted>
Mon, 12 Jun 2017 20:26:54 +0000 (23:26 +0300)
commit576c45eb0a5314121aeb2f8d8931644b65e5be99
treed8bfa44206c63a47f4422d055774c38f2dc44085
parent3c820ff9adf8d137e967607cd37961515592fbee
python3: fix distutils path to package when using bytecodes

If there is only Python bytecodes, then
the __init__.py script will be concatenated, and
the __init__.pyc as well.

This is becase this bit `path = os.path.join(path, '__init__'+extension)`
is iterated twice.

This is a bug in Python3, also because we ship bytecodes
instead of source code [ with Python & Python3 ].
Python is not affected.

Reported-by: Mirko Vogt <redacted>
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python3/Makefile
lang/python/python3/patches/008-fix-distutils-path-creation.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT