Stab at building through zpkgutils. I don't really know what I'm doing,

though, so it doesn't work yet.
parent c5c7e979
# zpkg config file
#
build-application yes
collect-dependencies yes
resource-map Zope2.map
default-collection Zope2
# These packages are the Zope 3 components.
#
docutils ../lib/python/docutils
pytz ../lib/python/pytz
zodbcode ../lib/python/zodbcode
zope ../lib/python/zope
# Child packages of Zope are handled separately when constructing Zope
# distributions; this tells where to find all of them.
zope.* ../lib/python/zope/
# These packages are copied from the ZConfig, zdaemon, and ZODB projects:
#
BTrees ../lib/python/BTrees
persistent ../lib/python/persistent
transaction ../lib/python/transaction
ThreadedAsync ../lib/python/ThreadedAsync
ZEO ../lib/python/ZEO
ZODB ../lib/python/ZODB
RestrictedPython ../lib/python/RestrictedPython
ZConfig ../lib/python/ZConfig
zdaemon ../lib/python/zdaemon
AccessControl ../lib/python/AccessControl
Acquisition ../lib/python/Acquisition
App ../lib/python/App
ComputedAttribute../lib/python/ComputedAttribute
DateTime ../lib/python/DateTime
DocumentTemplate../lib/python/DocumentTemplate
ExtensionClass ../lib/python/ExtensionClass
Globals ../lib/python/Globals
HelpSys ../lib/python/HelpSys
ImageFile ../lib/python/ImageFile
Interface ../lib/python/Interface
Lifetime ../lib/python/Lifetime
MethodObject ../lib/python/MethodObject
Missing ../lib/python/Missing
MultiMapping ../lib/python/MultiMapping
OFS ../lib/python/OFS
Persistence ../lib/python/Persistence
Products ../lib/python/Products
Record ../lib/python/Record
Shared ../lib/python/Shared
Signals ../lib/python/Signals
StructuredText ../lib/python/StructuredText
TAL ../lib/python/TAL
Testing ../lib/python/Testing
ThreadLock ../lib/python/ThreadLock
TreeDisplay ../lib/python/TreeDisplay
ZClasses ../lib/python/ZClasses
ZPublisher ../lib/python/ZPublisher
ZServer ../lib/python/ZServer
ZTUtils ../lib/python/ZTUtils
Zope ../lib/python/Zope
Zope2 ../lib/python/Zope2
ZopeUndo ../lib/python/ZopeUndo
docutils ../lib/python/docutils
initgroups ../lib/python/initgroups
nt_svcutils ../lib/python/nt_svcutils
reStructuredText../lib/python/reStructuredText
tempstorage ../lib/python/tempstorage
webdav ../lib/python/webdav
zExceptions ../lib/python/zExceptions
zLOG ../lib/python/zLOG
# These packages are the release collections based on the Zope 2
# project; they define what goes into the Zope 2 and related
# releases.
#
Zope2-src ../releases/Zope2
# Things listed here represent features we want to include in the
# distribution.
#
# We'll start with a micro distribution, and add the commented out
# things once we're confident the core is working.
AccessControl
Acquisition
App
ComputedAttribute
DateTime
DocumentTemplate
ExtensionClass
Globals
HelpSys
ImageFile
Interface
Lifetime
MethodObject
Missing
MultiMapping
OFS
Persistence
Products
Record
RestrictedPython
Shared
Signals
StructuredText
TAL
Testing
ThreadLock
TreeDisplay
ZClasses
ZPublisher
ZServer
ZTUtils
Zope
Zope2
ZopeUndo
docutils
initgroups
nt_svcutils
reStructuredText
tempstorage
webdav
zExceptions
zLOG
zope.app
# zope.app depends for us on:
# - ZODB
# - persistent
# - transaction
# - zdaemon
# - zodbcode
# - ZConfig (indirectly)
# - ThreadedAsync (indirectly)
# - ZConfig (indirectly)
# - zdaemon (indirectly)
# - pytz (indirectly)
<load>
bin/mkzopeinstance.py svn://svn.zope.org/repos/main/Zope/tags/*/utilities/mkzopeinstance.py
bin/mkzeoinstance.py svn://svn.zope.org/repos/main/Zope/tags/*/utilities/mkzeoinstance.py
doc svn://svn.zope.org/repos/main/Zope/tags/*/doc/
skel svn://svn.zope.org/repos/main/Zope/tags/*/skel/
</load>
<distribution>
LICENSES.txt
README.txt
ZopePublicLicense.txt
test.py
</distribution>
Metadata-Version: 1.1
Name: Zope
Summary: Zope 3 Application Server
Home-page: http://dev.zope.org/Zope3/
Author: Zope Corporation and Contributors
Author-email: zope3-dev@zope.org
License: ZPL 2.1
Description:
Zope is a web application server.
Platform: Unix
Platform: Windows
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
======
Zope 3
======
Welcome to the Zope 3 distribution!
Zope 3 is the next major Zope release and has been written from
scratch based on the latest software design patterns and the
experiences of Zope 2.
Requirements
------------
Zope 3 requires that Python 2.4.1 or newer be installed.
Building the Zope 3 software requires a C compiler supported by the distutils.
Building and installing the software
------------------------------------
Unix
~~~~
Zope 3 is built using the conventional `configure`/`make` pattern on Unix and
Linux. There are only a couple of options to the configure script, but you
shouldn't need either of them in the common case. The `configure` script will
attempt to locate the available Python installations and pick the best one for
use with Zope::
$ ./configure
Configuring Zope 3 installation
Testing for an acceptable Python interpreter...
Python version 2.3.5 found at /usr/local/bin/python
Python version 2.4.1 found at /usr/local/bin/python2.4
The optimum Python version (2.4.1) was found at /usr/local/bin/python2.4.
If you want to specify which Python should be used with Zope, use the
`--with-python` option to indicate the specific Python interpreter to use::
$ ./configure --with-python /opt/Python-2.4.1/bin/python
Using Python interpreter at /opt/Python-2.4.1/bin/python
Configuring Zope 3 installation
The default installation directory for Zope is ``/usr/local/Zope-<version>``,
where ``<version>`` is replaced with the version of Zope 3 you're installing;
it will match the version number from the compressed tarball you unpacked. To
change the installation directory, use the ``--prefix`` option to specify an
alternate location:
$ ./configure --prefix /opt/Zope-3.2.0
Configuring Zope 3 installation
Testing for an acceptable Python interpreter...
Python version 2.3.5 found at /usr/local/bin/python
Python version 2.4.1 found at /usr/local/bin/python2.4
The optimum Python version (2.4.1) was found at /usr/local/bin/python2.4.
If you want to use the same prefix as a previous installation, you need to
remove the original installation first. Instances created using one
installation may need to be modified to use a new installation.
Once you've configured Zope, you can build the software using ``make``. No
options are needed.
$ make
python2.4 install.py -q build
Now that the software has been built, you can run the unit tests for the
software to make sure that everything is working on your platform. This is an
optional step, and can take a while to complete. The tests can be run using
``make`` as well::
$ make check
python2.4 install.py -q build
python2.4 test.py -v
Running UNIT tests at level 1
Running UNIT tests from /home/user/Zope-3.2.0/build/lib.linux-i686-2.3
[...lots of dots, one per test...]
----------------------------------------------------------------------
Ran 8007 tests in 252.406s
OK
Running FUNCTIONAL tests at level 1
Running FUNCTIONAL tests from /home/user/Zope-3.2.0/build/lib.linux-i686-2.3
[...lots of dots, one per test...]
----------------------------------------------------------------------
Ran 385 tests in 106.901s
OK
The line before the final "OK" tells how many individual tests were run, and
long it took to run them. These numbers will vary based on release, operating
system, and host platform.
To install the software, run ``make`` again::
$ make install
python2.4 install.py -q build
python2.4 install.py -q install --home "/opt/Zope-3.2.0"
You now have a complete Zope 3 installation.
Windows (installer)
~~~~~~~~~~~~~~~~~~~
On Windows it's easiest to use the Windows installer. The instructions here
assume you installed Python in its default location, ``\Python24``.
If you have a previous version of Zope 3 installed, use the Windows Control
Panel's Add/Remove Programs applet to uninstall the old version first. The
name of the appropriate entry starts with "Python 2.4 Zope 3-".
Run the installer. Note that the installer creates an uninstallation program,
and an entry to run it under Control Panel's Add/Remove Programs applet. This
will remove the files installed under ``\Python24``, but will not remove
anything in the instance directory (which you create next).
Change to the ``\Python24\Scripts`` directory and create an instance::
..\python mkzopeinstance -d <instance dir> -u <username>:<password>
Change to the instance directory (this is the new directory you specified as
the ``-d`` argument to ``mkzopeinstance``) and start Zope::
\Python24\python bin/runzope
Windows (source)
~~~~~~~~~~~~~~~~
Using the source distribution on Windows is possible, but is somewhat
different from using the distribution on Unix. You may want to use the
Windows installer instead of the source distribution. If you don't have a
supported C compiler, you need to use the installer.
If you have previously installed Zope 3, either from source or using the
installer, you will need to remove the previous installation.
In using the distribution on Windows, you will need to run Python directly
several times with various command lines; you should be careful to use the
same Python installation for each of these. The default installation for
Python 2.3.x on Windows places the Python interpreter at ``\Python24\python``;
this will be used in the examples, but you may need to use a different path to
the interpreter if you installed Python in a non-default location. On
NT/2000/XP using cmd.exe, and if Python 2.4.x is associated with the .py
extension (the Python Windows installer does so by default), you can leave off
the ``\Python24\python `` at the start of each command line.
Build the Zope software by switching to the directory created by unpacking the
source distribution, then running the command::
C:\Zope-3.2.0> \Python24\python install.py -q build
The unit tests for the Zope software can be run once this is complete. This
is an optional step, and can take a while to complete. The tests can be run
using the command::
C:\Zope-3.2.0> \Python24\python test.py -v
Running UNIT tests at level 1
Running UNIT tests from C:\Zope-3.2.0\build\lib.win32-2.3
[...lots of dots, one per test...]
----------------------------------------------------------------------
Ran 4500 tests in 501.389s
OK
The line before the final "OK" tells how many individual tests were run, and
how long it took to run them. These numbers will vary based on release,
operating system, and host platform.
At this point, you can install the software using the command:
C:\Zope-3.2.0> \Python24\python install.py -q install
You now have a complete Zope 3 installation. Note that this method of
installing Zope does not allow for easy uninstallation later: you will need to
delete Zope files manually from your Python's ``Lib\site-packages\`` and
``Scripts\`` directories, and remove the directory zopeskel\ from your Python
installation entirely. If you use the Windows installer instead, it creates
an uninstallation program, and an entry to run it in Control Panel's
Add/Remove Programs applet.
Creating a Zope instance home
-----------------------------
The Zope installation includes a script called ``mkzopeinstance``; this is
used to create a new "instance home." On Unix, this will be in
``$prefix/bin/``, and on Windows this will be in ``Scripts\`` in the Python
installation.
Run this script to create the instance home::
$ .../bin/mkzopeinstance -u username:password -d directory
or::
C:\Python24\Scripts> ..\python mkzopeinstance -u username:password -d directory
This will create the directory named on the command line and provide a default
configuration. The configuration files for the Zope application server are in
the ``etc/`` sub-directory in the instance home. You should review those files
to make sure they meet your needs before starting the application server for
the first time. Of particular interest are the files ``zope.conf`` and
``principals.zcml``.
Starting Zope
-------------
XXX to be written
Where to get more information
-----------------------------
For more information about Zope 3, consult the Zope 3 project pages on
the Zope community website:
http://dev.zope.org/Zope3/
The information there includes links to relevant mailing lists and IRC
forums.
documentation doc/*.txt
script utilities/*
script zopetest
<data-files .>
zopeskel
</data-files>
#!/usr/bin/env python2.4
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Test script for running unit tests in a distribution root.
The functional tests can't be run since we don't have enough of the
package configuration in a usable state. The functional tests can be
run from an installation.
$Id$
"""
import sys, os
from distutils.util import get_platform
PLAT_SPEC = "%s-%s" % (get_platform(), sys.version[0:3])
here = os.path.dirname(os.path.realpath(__file__))
lib = os.path.join(here, "build", "lib." + PLAT_SPEC)
sys.path.append(lib)
import zope.app.testing.test
if __name__ == '__main__':
args = sys.argv[:1] + ["-ul", lib] + sys.argv[1:]
zope.app.testing.test.process_args(args)
#!/bin/env python2.4
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Test script to run the unit and functional tests in a Zope installation.
$Id$
"""
import sys, os
here = os.path.dirname(os.path.realpath(__file__))
here = os.path.dirname(here)
if sys.platform in ("win32",):
lib = os.path.join(here, "Lib", "site-packages")
else:
lib = os.path.join(here, "lib", "python")
sys.path.append(lib)
ftesting = os.path.join(here, "zopeskel", "etc", "ftesting.zcml")
import zope.app.tests.test
zope.app.tests.test.FTESTING = ftesting
if __name__ == '__main__':
args = sys.argv[:1] + ["-l", lib] + sys.argv[1:]
zope.app.tests.test.process_args(args)
This diff is collapsed.
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