[Zope3-dev] Re: mini howto and discussion: Zope 2 and Zope 3
Tres Seaver
tseaver at zope.com
Thu Apr 1 10:24:46 EST 2004
Gary Poster wrote:
> 1) what you need to get started
>
> get zope3 (we're on a march-5-2004 tag because we haven't caught up with
> the most recent big changes yet, but the head will probably work for
> what I'm describing now), Zope2 (we're using 2.7.0 final
> or--temporarily--the 2.7 beta 3, depending on other stuff), and the
> Interface package (HEAD; this is Packages3/Interface in the zope
> repository) .
>
> Using your favorite method--site-packages, python path, whatever--make
> sure that the new Interface package will be found before the one
> in Zope 2. We typically put the Interface package in our Zope's
> Python's site-packages...I forget why.
Small nit: putting the new 'Interface' package in 'site-pacakges' won't
work, because 'PYTHONPATH' trumps 'site-packages'. You need to wedge
the new Interface package in at the head of 'PYTHONPATH' (or at least
before Zope2's 'SOFTWARE_HOME').
> Then we make the PYTHONPATH load
> Zope 2 (and, importantly Zope 2's ZODB...or another Zope 2-compatible
> ZODB is fine), and *then* Zope 3 (so we're masking Zope 3's ZODB
> package. This works on Windows too, btw--Zope 2's "Zope" package does
> not mask Zope 3's "zope" package even though Windows is not
> case-sensitive because Python compensates for this OS error ;-)
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope3-dev
mailing list