Thursday, January 17, 2008

installing the plugin

now edit setup.py to look like the following.

then follow the standard python setup.py config, build and install --prefix .

After this step if you try tg-admin info at the command line, you should see something like the following in the output [ your versions may vary]:

Template Engines

* genshi-markup (Genshi 0.4.1)
* genshi-text (Genshi 0.4.1)
* genshi (Genshi 0.4.1)
* kid (TurboKid 1.0.1)
* cheetah (TurboCheetah 0.9.5)
* json (TurboJson 1.0)
* mako (Mako 0.1.6)
* antlr_string (RamBuffetString 0.1.1)

Now there is only one final step to start using ANTLR StringTemplate to create the view for your new website or wiki.












Pasted as Python by ramontg [ Remove line numbers | Show as plain text | Create new paste ]
Description: setup.py for antlrstringtemplate
URL: http://rafb.net/p/3GEE1916.html









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from setuptools import setup, find_packages

setup(
name="RamBuffetString",
version="0.1.1",
description="Python plugin for ANTLR StringTemplate",
author="Sriram Durbha",
author_email="sriram.durbha@gmail.com",
url="http://ramontg.blogspot.com",
#scripts = [],

packages=find_packages(),
zip_safe=False,
entry_points = """
[python.templating.engines]
antlr_string = buffetstring.stringsupport:AntlrStringTemplatePlugin
"
""
)

No comments: