PYDISTUTILS_AUTOPLIST question
Ruslan Makhmatkhanov
cvs-src at yandex.ru
Sun Jan 26 14:45:02 UTC 2014
Marcus von Appen wrote on 26.01.2014 18:22:
>> As we can see *.pyc/*.pyo pkg-plist entries were generated for
>> pwreset_constructURL.py despite the fact that byte-compiling had failed.
>
> Thanks - I just checked, what exactly happens within the record magic for
> those cases. distutils (and thus setuptools, since it does not do anything
> special in that area) just picks up the .py files and adds entries for
> matching .pyc and .pyo files without actually checking, if those files
> could be compiled successfully.
> The code snippet (distutils/install_lib.py, _bytecode_filenames()) actually
> needs to verify, if .pyc/.pyo files exist, since the bytecode compiler
> function (distutils/util.py, byte_compile() in indirect mode)
> does not break on errors, but silently proceeds.
>
> Rather than adding a hack to bsd.python.mk to filter out such entries, I'd
> like to see that issue fixed upstream: http://bugs.python.org/issue20397.
> My current (quick'n'dirty) idea is to add a simple file existence verification
> check into our currently supported versions.
>
> Cheers
> Marcus
Thank you for this. I though this is something under our control. Let's
see what guys at python.org say.
--
Regards,
Ruslan
T.O.S. Of Reality
More information about the freebsd-python
mailing list