[Python-apps-team] Help with bug #476929
Luca Falavigna
dktrkranz at ubuntu.com
Wed Apr 23 14:28:26 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I recently discovered boa-constructor broke python2.4 -> python2.5
transition (see bug #476929). I thought this issue was fixed with
0.6.1-2 upload, but it was solved partially.
Several files have SyntaxErrors, e.g. ZopeLib/zoa/props/DBAdapter.py:
Compiling /usr/share/boa-constructor/ZopeLib/zoa/props/DBAdapter.py ...
~ File "/usr/share/boa-constructor/ZopeLib/zoa/props/DBAdapter.py", line 10
~ return {'title': context.title,
SyntaxError: 'return' outside function
This bug is triggered when "pycentral updatedefault" is invoked, which
tries to recompile every python module installed. My initial solution
was not byte-compile affected modules, but this happens if a new
byte-compilation is scheduled.
Is there a way to exclude some modules to be recompiled by
python-central? I can't drop affected modules from binary package
(they're required somewhere else), and I'm not aware of any method to
patch source files to avoid SyntaxError exceptions. Any suggestions?
Regards,
- --
Luca Falavigna
GPG Key: 0x86BC2A50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgPR4oACgkQnXjXEYa8KlBIVACfcwLJlc+al1HgD/Yu8V1OBIVh
VqEAn0q+18MLEKPIe+w6F9bsg0p5xxKt
=26Ei
-----END PGP SIGNATURE-----
More information about the Python-apps-team
mailing list