[issue32419] Add unittest support for pyc projects

Bassem Girgis report at bugs.python.org
Mon Dec 25 13:10:03 EST 2017


Bassem Girgis <brgirgis at gmail.com> added the comment:

Hi Eric,

Yes it is like David said. For the projects you don't distribute the code
with the deployment package, you end up distributing only pyc files. As of
how to get these files, you can make use of py_compile or compileall
modules. For compileall, however, you have to pass the legacy flag to avoid
the __pycache__ standard.

What I found strange in the unittest code while trying to resolve this
issue is that, it is relying on hardcoded searches for __init__.py to find
if a module is loadable. I would have imagined that there is a standard why
to answer this question.

Best regards,
Bassem

Bassem Girgis, PhD

Email: brgirgis at gmail.com

On Sun, Dec 24, 2017 at 10:53 AM, Serhiy Storchaka <report at bugs.python.org>
wrote:

>
> Change by Serhiy Storchaka <storchaka+cpython at gmail.com>:
>
>
> ----------
> stage:  -> test needed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue32419>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32419>
_______________________________________


More information about the Python-bugs-list mailing list