Hi. I'm packaging turbogears for openSUSE on the openSUSE build
service. One of the problems I'm currently dealing with is that
openSUSE 11.1 will ship python 2.6. I fixed most of the turbogears
required packages but ran into a problem with python-ruledispatch
(RuleDispatch from peak.telecommunity.org). One of the changes in
python 2.6 as defined by PEP 361 is that "as" is now a keyword. That
means that def as(): will return a syntax error.
Unfortunately, RuleDispatch-0.5a1.dev-r2506/src/dispatch/__init__.py
has a function 'as':
def as(*decorators):
"""Use Python 2.4 decorators w/Python 2.2+
Example:
import dispatch
class Foo(object):
[dispatch.as(classmethod)]
def something(cls,etc):
\"""This is a classmethod\"""
"""
This causes the build to fail when python byte compiles the .py files.
I guess I'll have to report the bug upstream and consult with the
other maintainers to try to figure out what we can do
On Oct 13, 9:31 am, Christopher Arndt <[EMAIL PROTECTED]> wrote:
> MOD Films wrote:
> > I first tried to make py2.6 the default like this
>
> > chief:/usr/bin# ln -s /usr/local/bin/python2.6 python
>
> > Then ran easy_install manually like this
>
> >http://paste.turbogears.org/paste/9563
>
> /usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/package_index.py:155:
>
> ^^^^^
>
> It seems that you installed an setuptools egg for Python 2.5 under
> Python2.6. That will NOT work correctly.
>
> You should first get a working setuptools installation for Python2.6
> before you continue trying to install TG under Python2.6.
>
> But, honestly, I'd recommend just using Python 2.5 instead, unless you
> want to help us get TG running under2.6. But then you'll need a little
> experience with how setuptools works to be able to fix simple problems
> like this.
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---