[Checkins] SVN: zope2_website/buildout/trunk/b added

Andreas Jung andreas at andreas-jung.com
Tue Sep 1 08:45:34 EDT 2009


Log message for revision 103438:
  added
  

Changed:
  A   zope2_website/buildout/trunk/bootstrap.py
  A   zope2_website/buildout/trunk/buildout.cfg

-=-
Added: zope2_website/buildout/trunk/bootstrap.py
===================================================================
--- zope2_website/buildout/trunk/bootstrap.py	                        (rev 0)
+++ zope2_website/buildout/trunk/bootstrap.py	2009-09-01 12:45:34 UTC (rev 103438)
@@ -0,0 +1,62 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id: bootstrap.py 85041 2008-03-31 15:57:30Z andreasjung $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+try:
+    import pkg_resources
+except ImportError:
+    ez = {}
+    exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                         ).read() in ez
+    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    import pkg_resources
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, quote (sys.executable),
+    '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)

Added: zope2_website/buildout/trunk/buildout.cfg
===================================================================
--- zope2_website/buildout/trunk/buildout.cfg	                        (rev 0)
+++ zope2_website/buildout/trunk/buildout.cfg	2009-09-01 12:45:34 UTC (rev 103438)
@@ -0,0 +1,106 @@
+[buildout]
+extensions = buildout.eggtractor
+tractor-src-directory = src
+tractor-target-parts = instance
+
+parts =
+    zope2
+    productdistros
+    instance
+    zopepy
+    
+# Change the number here to change the version of Plone being used
+extends = 
+    http://dist.plone.org/release/3.3/versions.cfg
+    http://good-py.appspot.com/release/collective.xdv/1.0
+
+versions = versions
+
+# Add additional egg download sources here. dist.plone.org contains archives
+# of Plone packages.
+find-links =
+    http://dist.plone.org/release/3.3
+    http://download.zope.org/ppix/
+    http://download.zope.org/distribution/
+    http://effbot.org/downloads
+
+# Add additional eggs here
+# elementtree is required by Plone
+eggs =
+    Plone
+    Products.TextIndexNG3
+    Products.PloneFormGen
+    Products.FCKeditor
+    Products.CacheSetup
+    collective.editskinswitcher
+    collective.portlet.feedmixer
+    collective.portletpage
+    PILwoTK
+    collective.xdv
+
+# Reference any eggs you are developing here, one per line
+# e.g.: develop = src/my.package
+develop =
+
+
+[zope2]
+recipe = plone.recipe.zope2install
+url = ${versions:zope2-url}
+fake-zope-eggs = true
+additional-fake-eggs =
+    ZConfig
+    ZODB3
+    pytz
+
+
+# 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 = http://downloads.sourceforge.net/quintagroup/qPloneGoogleSitemaps-0.6.tar.gz
+
+nested-packages =
+version-suffix-packages =
+
+[instance]
+recipe = plone.recipe.zope2instance
+zope2-location = ${zope2:location}
+effective-user = zope
+user = admin:admin
+#http-address = 10080
+http-address = 127.0.0.1:10080
+#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}
+
+# If you want to register ZCML slugs for any packages, list them here.
+# e.g. zcml = my.package my.other.package
+zcml = collective.editskinswitcher
+       collective.portlet.feedmixer
+       collective.portletpage
+
+products =
+    ${buildout:directory}/products
+    ${productdistros:location}
+
+[zopepy]
+recipe = zc.recipe.egg
+eggs = ${instance:eggs}
+interpreter = zopepy
+extra-paths = ${zope2:location}/lib/python
+scripts = zopepy
+
+[roadrunner]
+recipe = roadrunner:plone
+packages-under-test = plonetheme.zope2



More information about the checkins mailing list