Hello, At preparing zope2.11.3 packages, I found several python (test-)modules that do have python2.5/python2.6 code. This code is mostly for checking python2.5/python2.6 support, and thus isn't relevant for the functionality of zope itself.
Zope2.11.3 still requires python2.4, so when the package is installed, python-central exits with a byte-compiling error, see below. Is there any possiblity to exclude/ignore the modules in question at byte-compilation time? I found -X for dh_pycentral, but that one doesn't seem to do what I expected it to do. Another solution would be to completely remove the test modules in question, but that would require a lot of work, as at least the mechanize module (last error) is used in several other test modules of zope2.11.3, and I don't want to remove all/most test modules after all. here are the errors I do get: Setting up zope2.11 (2.11.3-1) ... Compiling /usr/lib/zope2.11/lib/python/RestrictedPython/tests/before_and_after25.py ... File "/usr/lib/zope2.11/lib/python/RestrictedPython/tests/before_and_after25.py", line 30 x.y = y.z if y.z else y.x ^ SyntaxError: invalid syntax Compiling /usr/lib/zope2.11/lib/python/RestrictedPython/tests/before_and_after26.py ... File "/usr/lib/zope2.11/lib/python/RestrictedPython/tests/before_and_after26.py", line 30 with whatever as x: ^ SyntaxError: invalid syntax Compiling /usr/lib/zope2.11/lib/python/RestrictedPython/tests/security_in_syntax26.py ... File "/usr/lib/zope2.11/lib/python/RestrictedPython/tests/security_in_syntax26.py", line 6 with x as _leading_underscore: ^ SyntaxError: invalid syntax Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ... File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91 yield row SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause greetings, jonas -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org