Catching python syntax errors at build time

Florian Festi ffesti at redhat.com
Fri Feb 20 21:52:57 UTC 2009


Panu Matilainen wrote:
> If somebody feels like scripting a bit, it should be possible to fairly 
> accurately determine affected packages: if a package has *.py files but 
> not the corresponding *.pyc and *.pyo files for each of them, the 
> byte-compile has failed and with the new check, building the package 
> will fail.

Unfortunately this is not that precise. Attached is a list of packages from 
the x86_64 repo which contain .py files without .pyc or .pyo files. The file 
list has 0.5 MB so I am not posting it here. Use rpm -qpl or ask me off list 
if you are interested or owner of one of those packages. To me it looks like 
all those files are not failing to be compiled but are just not even tried 
to be compiled.

Florian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uncompiled_python_packages.txt
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090220/d715c4e5/attachment.txt>


More information about the fedora-devel-list mailing list