changeset 204:d6b205e8c1f9

Generate WSGI script in buildout.
author Daniele Nicolodi <daniele@grinta.net>
date Wed, 16 Nov 2011 19:10:22 +0100
parents fefbc0193dbe
children fd572809cb18
files buildout.cfg
diffstat 1 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/buildout.cfg	Wed Nov 16 19:10:16 2011 +0100
+++ b/buildout.cfg	Wed Nov 16 19:10:22 2011 +0100
@@ -1,18 +1,28 @@
 [buildout]
 include-site-packages = false
-parts = flask
+parts = flask wsgi
 develop = src
 
 [flask]
 recipe = zc.recipe.egg
 eggs = 
-     distribute
-     Flask
-     WTForms
-     ordereddict
-     argparse
-     itsdangerous
-     python-dateutil < 2.0
-     ltpdarepo
+  distribute
+  Flask
+  WTForms
+  ordereddict
+  argparse
+  itsdangerous
+  python-dateutil < 2.0
+  ltpdarepo
 interpreter = python
 scripts = run admin
+
+[wsgi]
+recipe = zc.recipe.egg:script
+eggs = ${flask:eggs}
+scripts = wsgi
+entry-points =
+  wsgi=ltpdarepo:main
+initialization = 
+  from ltpdarepo import Application
+  application = Application()