Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 221935

Summary: app-text/calibre requires Python 2.5
Product: Gentoo Linux Reporter: Cirus <s-worm>
Component: New packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: RESOLVED FIXED    
Severity: normal CC: python, s-worm
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Cirus 2008-05-13 13:01:40 UTC
cd src/calibre/gui2 && python make.py
cd src/calibre && python translations/__init__.py
python resources.py
Traceback (most recent call last):
  File "resources.py", line 10, in ?
    from calibre import __appname__
  File "/var/tmp/portage/app-text/calibre-0.4.53/work/calibre-0.4.53/src/calibre/__init__.py", line 222
    codec = 'cp1252' if iswindows else 'utf8'
                      ^
SyntaxError: invalid syntax
make: *** [resources] Error 1
make: *** Waiting for unfinished jobs....
  File "make.py", line 58
    alias = ' alias="library"' if x == p/'library.png' else ''
                                ^
SyntaxError: invalid syntax
make: *** [gui2] Error 1
Traceback (most recent call last):
  File "translations/__init__.py", line 7, in ?
    import sys, os, cStringIO, tempfile, subprocess, functools, tarfile
ImportError: No module named functools
make: *** [translations] Error 1

http://calibre.kovidgoyal.net/ticket/492
http://docs.python.org/lib/module-functools.html
version dev-lang/python-2.5 need support
and missing ~x86 support
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-05-13 13:23:20 UTC
Python team, what's the best way to require Python 2.5? Simply >= in the dependency?
Comment 2 Ali Polatel (RETIRED) gentoo-dev 2008-05-13 13:38:40 UTC
(In reply to comment #1)
> Python team, what's the best way to require Python 2.5? Simply >= in the
> dependency?
> 

add NEED_PYTHON=2.5 before inheriting distutils.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-05-14 21:44:28 UTC
Thanks Ali, thanks Cirus, this is fixed :)