Commits

Matt Bowen  committed 673db68

Added lxml and deliverance, fixed my version pins so that lxml will actually build.

  • Participants
  • Parent commits b8656ba

Comments (0)

Files changed (4)

 log/
 parts/
 var/
+downloads/*.*
 
 syntax: regexp
 .*\#.*\#?$

File conex/bootstrap.py

+##############################################################################
+#
+# 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$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+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
+
+if len(sys.argv) > 2 and sys.argv[1] == '--version':
+    VERSION = ' == %s' % sys.argv[2]
+    args = sys.argv[3:] + ['bootstrap']
+else:
+    VERSION = ''
+    args = sys.argv[1:] + ['bootstrap']
+
+if is_jython:
+    import subprocess
+
+    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+           quote(tmpeggs), 'zc.buildout' + VERSION],
+           env=dict(os.environ,
+               PYTHONPATH=
+               ws.find(pkg_resources.Requirement.parse('setuptools')).location
+               ),
+           ).wait() == 0
+
+else:
+    assert os.spawnle(
+        os.P_WAIT, sys.executable, quote (sys.executable),
+        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+        dict(os.environ,
+            PYTHONPATH=
+            ws.find(pkg_resources.Requirement.parse('setuptools')).location
+            ),
+        ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)

File conex/buildout.cfg

 [buildout]
 develop = .
-parts = app test
+parts = 
+      libxml2
+      libxslt
+      lxml
+      deliverance
+      app 
+      test
 newest = false
 eggs-directory = egg-cache
 
 extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg
 versions = versions
 
+download-directory = downloads
+download-cache = downloads
+
+[versions]
+buildout=1.2.1
+zc.recipe.egg=1.2.2
+lxml=2.1.2
+
+[lxml-environment]
+XSLT_CONFIG=${buildout:directory}/parts/libxslt/bin/xslt-config
+XML2_CONFIG=${buildout:directory}/parts/libxml2/bin/xml2-config
+
+[libxml2]
+recipe = zc.recipe.cmmi
+url = http://dist.repoze.org/bfg/current/cmmi/libxml2-2.6.32.tar.gz
+extra_options = --without-python
+
+[libxslt]
+recipe = zc.recipe.cmmi
+url = http://dist.repoze.org/bfg/current/cmmi/libxslt-1.1.24.tar.gz
+extra_options = --with-libxml-prefix=${libxml2:location} 
+                 --without-python
+
+[lxml]
+index = http://dist.repoze.org/bfg/current/simple
+recipe = zc.recipe.egg:custom
+egg = lxml
+include-dirs = ${libxml2:location}/include/libxml2
+               ${libxslt:location}/include
+library-dirs = ${libxml2:location}/lib
+               ${libxslt:location}/lib
+rpath = ${libxml2:location}/lib
+        ${libxslt:location}/lib
+environment = lxml-environment
+
+
+[deliverance]
+recipe = infrae.subversion
+as_eggs = true
+urls =
+    http://codespeak.net/svn/z3/deliverance/trunk deliverance
+
+
 [app]
 recipe = zc.recipe.egg
 eggs = conex
        Paste
        PasteScript
        PasteDeploy
+       ${deliverance:eggs}
+
 interpreter = python
 
 [test]

File conex/src/conex.egg-info/SOURCES.txt

+README
 setup.py
 src/conex/__init__.py
-src/conex/content.py
-src/conex/factory.py
-src/conex/interfaces.py
+src/conex/layer.py
+src/conex/skin.py
 src/conex/startup.py
 src/conex/testing.py
 src/conex.egg-info/PKG-INFO
 src/conex.egg-info/not-zip-safe
 src/conex.egg-info/requires.txt
 src/conex.egg-info/top_level.txt
-src/conex/data/__init__.py
+src/conex/tests/__init__.py
+src/conex/tests/test_factory.py
+src/conex/tests/test_zcml.py
+src/conex/tests/fixtures/__init__.py
+src/conex/tests/fixtures/sample_python_schema.py
+src/conex/tests/fixtures/sample_python_type.py
+src/conex/types/__init__.py
+src/conex/types/content.py
+src/conex/types/factory.py
+src/conex/types/generated.py
+src/conex/types/interfaces.py
+src/conex/types/zcml.py
+src/conex/types/browser/__init__.py
+src/conex/types/browser/forms.py