Catching python syntax errors at build time

Tim Waugh twaugh at
Fri Feb 20 17:36:30 UTC 2009

It occurred to me that, since we are already byte-compiling Python code 
at build time, it is no extra effort to verify that it can be parsed and 
fail if not.

See attached patch.

Can anyone think of any reason not to do this?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-bytecompile.patch
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the fedora-devel-list mailing list