[Repoze-dev] Repoze CVS: README.txt
Tres Seaver
tseaver at agendaless.com
Mon Sep 10 21:18:56 UTC 2007
Update of /home/repoze/cvs/repoze
In directory laguna.palladion.com:/tmp/cvs-serv12301
Modified Files:
README.txt
Log Message:
- Add recipe for installing Zope2 as a library.
Index: README.txt
===================================================================
RCS file: /home/repoze/cvs/repoze/README.txt,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- README.txt 10 Sep 2007 07:28:40 -0000 1.1.1.1
+++ README.txt 10 Sep 2007 21:18:54 -0000 1.2
@@ -29,6 +29,22 @@
directory and will cause the code from within the repoze/src
directory to be used during execution.
+ Installing Zope2 as a Library
+
+ - Because we are using 'paste' to drive the application server, we
+ really only need to get the Zope2 $SOFTWARE_HOME packages onto
+ the Python search path. Here is one recipe::
+
+ $ wget http://www.zope.org/Products/Zope/2.10.4/Zope-2.10.4-final.tgz
+ $ tar xzf Zope-2.10.4-final.tgz
+ $ cd Zope-2.10.4-final
+ $ $pyprefix/bin/python setup.py build_ext -i
+ $ echo `pwd`/lib/python > $pyprefix/lib/python2.4/site-packages/Zope.pth
+
+ To test::
+
+ $ $pyprefix/bin/python -c "import Zope2"
+
Starting
Testing repoze
@@ -38,6 +54,9 @@
PYTHONPATH=/your/zope2/software_home $pyprefix/bin/python test.py
+ If you installed Zope2 as a library above, you should be able to
+ leave off the PYTHONPATH assignement.
+
Running repoze
- To start a server that serves up a demo app on port 8080, cd to the
@@ -45,6 +64,9 @@
PYTHONPATH=/your/zope2/software_home $pyprefix/bin/paster serve sample-repoze.ini
+ If you installed Zope2 as a library above, you should be able to
+ leave off the PYTHONPATH assignement.
+
When you visit http://localhost:8080/ in a browser, you should
see the Zope 2 quickstart page. The request log will be printed
to the console.
_______________________________________________
Repoze-dev mailing list
Repoze-dev at lists.repoze.org
http://lists.repoze.org/mailman/listinfo/repoze-dev
More information about the Repoze-dev
mailing list