>>> Emerging (1 of 1) dev-python/pyreverse-0.4.2-r1 to / * pyreverse-0.4.2.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking pyreverse-0.4.2.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking pyreverse-0.4.2.tar.gz to /var/tmp/portage/dev-python/pyreverse-0.4.2-r1/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-python/pyreverse-0.4.2-r1/work/pyreverse-0.4.2 ... File "setup.py", line 21 from __future__ import nested_scopes SyntaxError: from __future__ imports must occur at the beginning of the file Even the 0.5.1 version.
0.5.2 is out but doesn't fix the problem. Removing the __revision__ line from setup.py or swapping the position with the import __future__ should work.
Created attachment 160615 [details] Ebuild for dev-python/pyreverse-0.4.2-r1.ebuild with patches to make it work with python 2.5 Added patches moving from __future__ import ... and patches adding *-coding: utf-8-* to __pkginfo__.py and __init__.py Best regards,
Created attachment 160616 [details, diff] Patch to fix some encodings in __pkginfo__.py and __init__.py
Created attachment 160618 [details, diff] Patch to make it work with python2.5 adds from __future__ import ... to the beginning of the lines, before __revision__ line
Fixed. (In reply to comment #4) > Created an attachment (id=160618) [edit] > Patch to make it work with python2.5 I decided to use `sed` :) .