Commit fd097481 authored by Jim Fulton's avatar Jim Fulton

initial

parent 056f1e38
"""Build the Zope Extension Modules
You must be in the directory containing this script.
"""
from do import *
print
print '-'*78
print 'Building extension modules'
make('lib','python')
make('lib','python','DocumentTemplate')
make('lib','python','BoboPOS')
"""Build a PCGI
You must be in the directory containing this script.
"""
from do import *
os.chdir('pcgi')
do('./configure')
do('make')
os.chdir('..')
"""Shared routines used by the various scripts.
"""
import os, sys, string
for a in sys.argv[1:]:
n,v = string.split(a,'=')
os.environ[n]=v
def do(command, picky=1):
print command
i=os.system(command)
if i and picky: raise SystemError, i
def make(*args):
print
print '-'*48
print 'Compiling extensions in %s' % string.join(args,'/')
for a in args: os.chdir(a)
do('make -f Makefile.pre boot PYTHON=%s' % sys.executable)
do('make')
do('make clean')
for a in args: os.chdir('..')
Building and installing Zope
This document describes buiding and installing Zope on Unix.
We will provide Windows instructions in later releases.
There are some python scripts in the top-level directory that should
help you get started. You must run these scripts from the top-level
directory.
If you want to try out zope in the simplest fashion using a
Python web server, then run the script wo_pcgi::
python wo_pcgi.py
then to start the web server, run the serve script::
python serve.py
If you want to use PCGI and an existing web server, run w_pcgi::
python w_pcgi.py
and configure the web server appropriately.
This is the Zope source release.
This document provides some general information about the Zope
source release and provides links to other documents.
Installation information can be found in INSTALL.txt.
"""Build a PCGI resource file.
You must be in the directory containing this script.
"""
print
print '-'*78
from do import *
python=sys.executable
name=os.environ.get('ZNAME','Zope')
print 'Writing the pcgi resource file (ie cgi script), %s.cgi' % name
cwd=os.environ.get('ZDIR',os.getcwd())
open('%s.cgi' % name,'w').write('''#!%(cwd)s/pcgi/pcgi-wrapper
PCGI_NAME=Main
PCGI_MODULE_PATH=%(cwd)s/lib/python/Main.py
PCGI_PUBLISHER=%(cwd)s/pcgi/pcgi_publisher.py
PCGI_EXE=%(python)s
PCGI_SOCKET_FILE=%(cwd)s/var/pcgi.soc
PCGI_PID_FILE=%(cwd)s/var/pcgi.pid
PCGI_ERROR_LOG=%(cwd)s/var/pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM=%(name)s
BOBO_DEBUG_MODE=1
INSTANCE_HOME=%(cwd)s
''' % vars())
do('chmod 755 %s.cgi' % name)
"""Try to do all of the installation steps.
This must be run from the top-level directory of the installation.
(Yes, this is cheezy. We'll fix this when we have a chance.
"""
import os
home=os.getcwd()
import build_pcgi
import make_resource
os.chdir(home) # Just making sure
import wo_pcgi
"""Try to do all of the installation steps.
This must be run from the top-level directory of the installation.
(Yes, this is cheezy. We'll fix this when we have a chance.
"""
import os
home=os.getcwd()
print
print '-'*78
print 'Compiling py files'
import compileall
compileall.compile_dir(os.getcwd())
import build_extensions
print
print '-'*78
print 'making the var directory'
os.chdir(home)
os.mkdir('var')
print
print '-'*78
print 'NOTE: change owndership or permissions on var so that it can be'
print ' writen by the web server!'
print
print "NOTE: The default super user name and password are 'superuser'"
print " and '123'. Create a file named 'access' in this directory"
print " with a different super user name and password on one line"
print " separated by a a colon. (e.g. 'spam:eggs'). You can also"
print " specify a domain (e.g. 'spam:eggs:*.digicool.com')."
print '-'*78
print
print 'Done!'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment