Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231384 - dev-python/pyreverse fails with dev-lang/python-2.5
Summary: dev-python/pyreverse fails with dev-lang/python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://www.logilab.org/2560/
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2008-07-10 07:46 UTC by Christian Faulhammer (RETIRED)
Modified: 2009-04-23 23:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for dev-python/pyreverse-0.4.2-r1.ebuild with patches to make it work with python 2.5 (pyreverse-0.4.2-r1.ebuild,670 bytes, text/plain)
2008-07-17 04:26 UTC, Jesus Rivero (RETIRED)
Details
Patch to fix some encodings in __pkginfo__.py and __init__.py (pyreverse-0.4.2_encoding.patch,623 bytes, patch)
2008-07-17 04:27 UTC, Jesus Rivero (RETIRED)
Details | Diff
Patch to make it work with python2.5 (pyreverse-0.4.2_python2.5.patch,701 bytes, patch)
2008-07-17 04:28 UTC, Jesus Rivero (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Faulhammer (RETIRED) gentoo-dev 2008-07-10 07:46:12 UTC
>>> 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.
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2008-07-14 11:21:49 UTC
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.
Comment 2 Jesus Rivero (RETIRED) gentoo-dev 2008-07-17 04:26:21 UTC
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,
Comment 3 Jesus Rivero (RETIRED) gentoo-dev 2008-07-17 04:27:06 UTC
Created attachment 160616 [details, diff]
Patch to fix some encodings in __pkginfo__.py and __init__.py
Comment 4 Jesus Rivero (RETIRED) gentoo-dev 2008-07-17 04:28:14 UTC
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
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-04-23 23:13:57 UTC
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` :) .