[gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
Hi All I just want emerge retext and run it by python3.3, how to set PYTHON_TAGETS just for this package If can't, tell me why python3.2 case problem below return u'[%s-%s]' % (unichr(a), unichr(b)) ^ SyntaxError: invalid syntax Thank you

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Tom Wijsman
On Wed, 2 Apr 2014 19:56:44 +0800 林守磊 wrote: > I just want emerge retext Which version of retext are you trying to emerge? > and run it by python3.3, Python 3.3 is supported in retext 4.0.1-r2 and 4.1.1. > how to set PYTHON_TAGETS just for this package In package.use you can put: app-ed

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-02 19:56 GMT+08:00 林守磊 : > tell me why python3.2 case problem below > > > return u'[%s-%s]' % (unichr(a), unichr(b)) > ^ > SyntaxError: invalid syntax Well, it seems to be an upstream bug, as Python 3.2 does not recognize the old (Python 2.x) style for Unic

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-02 20:26 GMT+08:00 Wang Xuerui : > 2014-04-02 19:56 GMT+08:00 林守磊 : >> return u'[%s-%s]' % (unichr(a), unichr(b)) > [snip] > so the program will work in Python 3.3 but not 3.2 Oops, there is also unichr. Seems the program is Python 2.x only, in which case you can try using package.env

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Tom Wijsman
On Wed, 2 Apr 2014 20:29:41 +0800 Wang Xuerui wrote: > 2014-04-02 20:26 GMT+08:00 Wang Xuerui : > > 2014-04-02 19:56 GMT+08:00 林守磊 : > >> return u'[%s-%s]' % (unichr(a), unichr(b)) > > [snip] > > so the program will work in Python 3.3 but not 3.2 > > Oops, there is also unichr. Seems the pro

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
Thank you all my retext version and package use [I] app-editors/retext Available versions: (~)4.0.1 (~)4.0.1-r1 4.0.1-r2 (~)4.1.0 (~)4.1.1 ** {+spell LINGUAS="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk zh_CN zh_TW" PYTHON_TARGETS="python2_7 python3_2 python3_3"} Installe

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
@all I found that is a bug from package pygments-1.6_p20140324, and I downgrade to 1.6-r1. problem solved ! @Tom that mean pygments-1.6_p20140324 do not support python3_2, thank you a lot thank you all regards 2014-04-03 9:02 GMT+08:00 林守磊 : > Thank you all > > my retext version and package u

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-03 13:15 GMT+08:00 林守磊 : > @all > > I found that is a bug from package pygments-1.6_p20140324, and I downgrade > to 1.6-r1. problem solved ! Oh, I overlooked the name of the offending file. Yes it's pygments that's at fault, not retext :)

Re: [gentoo-user] How to appoint python version for a package

2014-04-03 Thread Tom Wijsman
On Thu, 3 Apr 2014 13:15:59 +0800 林守磊 wrote: > @all > > I found that is a bug from package pygments-1.6_p20140324, and I > downgrade to 1.6-r1. problem solved ! > > @Tom that mean pygments-1.6_p20140324 do not support python3_2, thank > you a lot Indeed. Bugs appear to have been filed about th