Dear all,

I tried installing weepy-0.36 with py24 today, got an error:

$ python2.4 setup.py build
Traceback (most recent call last):
File "setup.py", line 6, in ?
from web import __version__
File "/Volumes/Data/zhb/web.py-0.36/web/__init__.py", line 27, in ?
from application import *
File "/Volumes/Data/zhb/web.py-0.36/web/application.py", line 639
SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
^
SyntaxError: invalid syntax



Simple patch to fix it:

--- web/application.py 2011-07-04 18:10:39.000000000 +0800
+++ ../web.py-0.36-patched/web/application.py 2012-02-04 00:28:10.000000000 
+0800
@@ -636,7 +636,9 @@
if so, reloads them.
"""

- SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
+ SUFFIX = '.pyc'
+ if sys.platform.startswith('java'):
+ SUFFIX = '$py.class'
"""File suffix of compiled modules."""

def __init__(self):




----
Zhang Huangbin

iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux,
CentOS, Scientific Linux, Debian, Ubuntu, openSUSE, FreeBSD:
http://www.iredmail.org/


-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to