Re: Packaging Plone for Debian and other distribution systems

Michael Mulich <[email protected]>
Newsgroups gmane.comp.web.zope.plone.installers
Message-ID <[email protected]>
Alex Clark wrote:
> You can do that now (with Plone 4), but you won't get a Zope 2 instance with 
> it (which is what we use recipe plone.recipe.zope2instance for). repoze.plone
> (which has been deprecated since Plone was converted to eggs) and running 
> Plone w/WSGI in general, has the luxury of not requiring Zope 2.
>
>   
You're right.  I could say "easy_install Plone".  However, nothing is 
pinned in the Plone egg itself, even loosely pinning with an >= would be 
better than no pinning at all, but that's a different issue all 
together.  Plus I've seen some conversation in plone-developers about 
doing some pinning.

The luxury of repoze.zope2 has become necessary in my case.  I've 
created a third package, called weblionhosting for now, that replaces 
repoze.plone as the meta-package.  This meta-package depends on 
essentially two packages: plonelibs and repoze.zope2 (currently using a 
modified version of trunk to bump Zope2 to version 2.12.3).  
repoze.zope2 effectively gives us a few commands to create and manage 
the zope2 instance and run it with WSGI enabled servers.
> ...
>
> OK so you want to create a Plone libs tarball and package it as a .deb,
> sounds good to me. I like the omelette hack too (why not just make
> that an option for collective.recipe.omellette proper though, instead of forking?)
>
>   
Right, I'll eventually put my changes back into omelette.  I should have 
done that from the start, but I thought I would be making more changes 
than I actually have.


Brief update... Earlier today I was able get this strategy past the 
drawing board and into a prototype.  The plonelibs macro-package (built 
for Plone 4.0a4) is working with repoze.zope2.  It's not perfect yet.  
There are a few kinks, but the instance does run and the plone site does 
show up.  The build process goes as such...

The plonelibs package would be built by the maintainer or customizer 
using the following commands:
  $  cd plonelibs && python setup.py build_pkg # which calls a buildout 
with the modded version of omelette
I currently do the sdist by hand but it could be included in the build 
process.
  $ python setup.py sdist # packages all the eggs up into a 34mb file 
(~230mb unpacked)
  $ # ftp it somewhere for use by the outside world

The user of the meta-package then installs and follows the repoze.zope2 
instructions...
  $ easy_install weblionhosting
  $ # follow the repoze.zope2 instructions at 
http://repoze.org/quickstart.html#repoze.zope2

-Michael Mulich (pumazi)


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.