[Zope-Coders] Making Zope2 more LFH compatible
Tres Seaver
tseaver@zope.com
19 Jun 2003 15:46:18 -0400
On Thu, 2003-06-19 at 14:43, Chris McDonough wrote:
> On Thu, 2003-06-19 at 12:39, Christian Heimes wrote:
>
> > /usr/lib/zope - zope main files
> >
> > /usr/lib/$PYTHON_VERSION/site-packages/Zope - softlink to or files from
> > $ZOPE_HOME/lib/python/Zope/
>
> There is really no reason for this, considering that, except for ZODB
> and ZEO, we do not maintain most Zope packages/modules separately from
> Zope itself. The Zope packages for a given Zope release are related
> directly to that release of Zope; older and/or newer versions of those
> packages may or may not work with older or newer Zopes.
>
> The things you put into site-packages are meant to be Python packages or
> modules. In this case, your 'Zope' directory cannot be a package
> without many changes to the Zope source code because imports within Zope
> would then need to be relative to the Zope package (e.g. instead of
> 'from Acquisition import aq_base', we'd need to change everything to
> 'from Zope.Acquisition import aq_base', etc.). And if your Zope
> directory is *not* a package (if it doesn't have an __init__.py in it),
> there's no reason to put it into site-packages as it would still need to
> be added to the PYTHONPATH, which brings us full circle to the place we
> are right now.
>
> Note that Zope3 does take the tact of rooting everything in a 'zope'
> package namespace as you suggest above. It's a bit too late for Zope2
> to do that.
I would say that the "SOFTWARE_HOME" bits should be written to a
version-qualified subdirectory:
/usr/lib/$ZOPE_VERSION
+1 for the rest of 'Chris o Christian' (making it possible to spell
the locations cleanly). We could then even offer "omnibus-options" in
configure, e.g.:
/tmp/Zope-2.7/configure --enable-lsb
or:
/tmp/Zope-2.7/configure --enable-redhat
to comply with the schemes currently in use.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com