Re: [ZODB-Dev] Re: Suggestion: buildout friendly relstorage

2008-04-29 Thread Shane Hathaway

Andreas Jung wrote:


--On 29. April 2008 01:11:43 -0600 Shane Hathaway [EMAIL PROTECTED] 
wrote:

I've attached my buildout.cfg.  Everything works except for the creation
of the zodbconvert script.  Any idea what I'm doing wrong?


You need something like that (scripts sections)


parts = python scripts test

[scripts]
recipe = zc.recipe.egg:scripts
eggs = ${config:mypkgs}


That did the trick, thanks.  For the record, I've attached a
buildout.cfg that combines the best solutions I've seen so far.

Shane




[buildout]
parts =
plone
zope2
fakezope2eggs
relstorage-patch
productdistros
instance
zopepy

# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
http://dist.plone.org
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads

# Add additional eggs here
# elementtree is required by Plone
eggs =
elementtree
psycopg2
RelStorage
ZODB3-3.7.1

# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
develop =

[relstorage-patch]
recipe = plone.recipe.command
patch-url = 
http://svn.zope.org/*checkout*/relstorage/tags/1.0.1/poll-invalidation-1-zodb-3-7-1.patch
command =
 cd ${zope2:location}/lib/python/ZODB
 curl -s ${relstorage-patch:patch-url} | patch -N -p1
 cd ${buildout:directory}

[plone]
recipe = plone.recipe.plone

[zope2]
recipe = plone.recipe.zope2install
url = ${plone:zope2-url}

# Use this section to download additional old-style products.
# List any number of URLs for product tarballs under URLs (separate
# with whitespace, or break over several lines, with subsequent lines
# indented). If any archives contain several products inside a top-level
# directory, list the archive file name (i.e. the last part of the URL,
# normally with a .tar.gz suffix or similar) under 'nested-packages'.
# If any archives extract to a product directory with a version suffix, list
# the archive name under 'version-suffix-packages'.
[productdistros]
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 8080
debug-mode = on
verbose-security = on

# If you want Zope to know about any additional eggs, list them here.
# This should include any development eggs you listed in develop-eggs above,
# e.g. eggs = ${buildout:eggs} ${plone:eggs} my.package
eggs =
${buildout:eggs}
${plone:eggs}

# If you want to register ZCML slugs for any packages, list them here.
# e.g. zcml = my.package my.other.package
zcml =

products =
${productdistros:location}
${plone:products}

rel-storage =
type postgresql
dsn dbname='zodb'

[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
extra-paths = ${zope2:location}/lib/python
scripts = zopepy zodbconvert

[fakezope2eggs]
recipe = affinitic.recipe.fakezope2eggs
additional-fake-eggs =
ZODB3-3.7.1
zdaemon
ZConfig


___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Re: Suggestion: buildout friendly relstorage

2008-04-29 Thread Shane Hathaway

Andreas Jung wrote:


--On 29. April 2008 01:11:43 -0600 Shane Hathaway [EMAIL PROTECTED] 
wrote:

I've attached my buildout.cfg.  Everything works except for the creation
of the zodbconvert script.  Any idea what I'm doing wrong?


You need something like that (scripts sections)


parts = python scripts test

[scripts]
recipe = zc.recipe.egg:scripts
eggs = ${config:mypkgs}


That did the trick, thanks.  For the record, I've attached a
buildout.cfg that combines the best solutions I've seen so far.

Shane



[buildout]
parts =
plone
zope2
fakezope2eggs
relstorage-patch
productdistros
instance
zopepy

# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
http://dist.plone.org
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads

# Add additional eggs here
# elementtree is required by Plone
eggs =
elementtree
psycopg2
RelStorage
ZODB3-3.7.1

# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
develop =

[relstorage-patch]
recipe = plone.recipe.command
patch-url = 
http://svn.zope.org/*checkout*/relstorage/tags/1.0.1/poll-invalidation-1-zodb-3-7-1.patch
command =
 cd ${zope2:location}/lib/python/ZODB
 curl -s ${relstorage-patch:patch-url} | patch -N -p1
 cd ${buildout:directory}

[plone]
recipe = plone.recipe.plone

[zope2]
recipe = plone.recipe.zope2install
url = ${plone:zope2-url}

# Use this section to download additional old-style products.
# List any number of URLs for product tarballs under URLs (separate
# with whitespace, or break over several lines, with subsequent lines
# indented). If any archives contain several products inside a top-level
# directory, list the archive file name (i.e. the last part of the URL,
# normally with a .tar.gz suffix or similar) under 'nested-packages'.
# If any archives extract to a product directory with a version suffix, list
# the archive name under 'version-suffix-packages'.
[productdistros]
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 8080
debug-mode = on
verbose-security = on

# If you want Zope to know about any additional eggs, list them here.
# This should include any development eggs you listed in develop-eggs above,
# e.g. eggs = ${buildout:eggs} ${plone:eggs} my.package
eggs =
${buildout:eggs}
${plone:eggs}

# If you want to register ZCML slugs for any packages, list them here.
# e.g. zcml = my.package my.other.package
zcml =

products =
${productdistros:location}
${plone:products}

rel-storage =
type postgresql
dsn dbname='zodb'

[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
extra-paths = ${zope2:location}/lib/python
scripts = zopepy zodbconvert

[fakezope2eggs]
recipe = affinitic.recipe.fakezope2eggs
additional-fake-eggs =
ZODB3-3.7.1
zdaemon
ZConfig

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev