[Checkins] SVN: zc.async/trunk/sphinx/ Add in some cfg files to be used in quickstart examples

Gary Poster gary at modernsongs.com
Wed Sep 10 23:50:43 EDT 2008


Log message for revision 91049:
  Add in some cfg files to be used in quickstart examples
  
  

Changed:
  A   zc.async/trunk/sphinx/lxml.cfg
  A   zc.async/trunk/sphinx/wrapper.cfg

-=-
Added: zc.async/trunk/sphinx/lxml.cfg
===================================================================
--- zc.async/trunk/sphinx/lxml.cfg	                        (rev 0)
+++ zc.async/trunk/sphinx/lxml.cfg	2008-09-11 03:50:41 UTC (rev 91049)
@@ -0,0 +1,85 @@
+# # this is a drop-in zc.buildout file to use lxml with locally-built libxml2
+# # and libxslt files.  To use, follow these directions.
+
+# # 1. include "lxml" in setup.py's install_requires
+
+# # 2. include "libxml2 libxslt lxml", in that order, in your "buildout"
+# #    section's "parts" list, usually **at the beginning of the list**.  
+
+# # 3. Also, include the name of this file in the "buildout" section's
+# #    "extends" list.
+
+# # Here's a minimal example.
+
+# [buildout]
+# parts = libxml2 libxslt lxml
+# extends = lxml.cfg
+
+# # On Linux, you're done.
+
+# # On the Mac, you need to make sure that your environment when
+# # running your application has a DYLD_LIBRARY_PATH pointing to the right
+# # libraries.  
+
+# # For instance, processes that use supervisor or zdaemon can put
+# # the values in the conf file.  For Zope instances using zdaemon
+# # (recipe = zc.zope3recipes:instance), for instance, you need to include the
+# # following in the buildout section.
+
+# zdaemon.conf =
+#   <environment>
+#    DYLD_LIBRARY_PATH ${parameters:library_path}
+#   </environment>
+
+# # Scripts that do not use one of these wrappers, such as bin/test and bin/py,
+# # will typically need to be preceeded with ``DYLD_LIBRARY_PATH=...``, where
+# # the ellipsis is replaced with the lib directories for the libxml2 and
+# # libxslt libraries--usually (replace "[buildout directory]")
+# # ``[buildout directory]/parts/libxml2/lib:[buildout directory]/parts/libxslt/lib``.
+# # (If you used the zdaemon environment above, you can find this value in
+# # the instance part's zdaemon.conf.)  
+
+# # zc.recipe.wrapper can help you automate this.  See wrapper.cfg for a
+# # drop-in helper for building an interpreter and a zope-style testrunner.
+
+# # primary customization point: override these as necessary
+[parameters]
+libxml2_version = 2.6.32
+libxslt_version = 1.1.24
+libxml2_directory = ftp://xmlsoft.org/libxml2
+libxslt_directory = ${parameters:libxml2_directory}
+
+# # secondary customization point: override these as necessary
+[snippets]
+libxml2_download = ${parameters:libxml2_directory}/libxml2-${parameters:libxml2_version}.tar.gz
+libxslt_download = ${parameters:libxslt_directory}/libxslt-${parameters:libxslt_version}.tar.gz
+
+[lxml-build-environment]
+XML2_CONFIG = ${libxml2:location}/bin/xml2-config
+XSLT_CONFIG = ${libxslt:location}/bin/xslt-config
+
+[lxml]
+recipe = zc.recipe.egg:custom
+egg = lxml
+include-dirs = ${libxml2:location}/include/libxml2
+               ${libxslt:location}/include
+rpath = ${libxml2:location}/lib
+        ${libxslt:location}/lib
+library-dirs = ${libxml2:location}/lib
+               ${libxslt:location}/lib
+environment = lxml-build-environment
+
+[libxml2]
+recipe = zc.recipe.cmmi
+url = ${snippets:libxml2_download}
+extra_options = --without-python
+
+[libxslt]
+recipe = zc.recipe.cmmi
+url = ${snippets:libxslt_download}
+extra_options = --without-python --with-libxml-prefix=${libxml2:location}
+
+# for use with wrapper.cfg
+[paths]
+lxml_library_path = ${libxml2:location}/lib:${libxslt:location}/lib
+library_path = ${paths:lxml_library_path}


Property changes on: zc.async/trunk/sphinx/lxml.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Added: zc.async/trunk/sphinx/wrapper.cfg
===================================================================
--- zc.async/trunk/sphinx/wrapper.cfg	                        (rev 0)
+++ zc.async/trunk/sphinx/wrapper.cfg	2008-09-11 03:50:41 UTC (rev 91049)
@@ -0,0 +1,37 @@
+[parameters]
+develop-eggs = OVERRIDE-ME-TO-SET-YOUR-DEVELOP-EGGS
+
+[paths]
+library_path = OVERRIDE-ME-TO-SET-THE-DYNAMIC-LIBRARY-PATH
+
+[basetest]
+recipe = zc.recipe.testrunner
+eggs = ${parameters:develop-eggs}
+working-directory = ${buildout:directory}
+defaults = ["--tests-pattern", "f?tests", "--exit-with-status",
+            "--auto-color", "-j3"]
+
+[test]
+recipe = zc.recipe.wrapper
+target = ${buildout:bin-directory}/${basetest:script}
+environment = wrapperenv
+
+[wrapperenv]
+DYLD_LIBRARY_PATH = ${paths:library_path}
+LD_LIBRARY_PATH = ${paths:library_path}
+# this is a reasonable setting for development
+# ZC_ASYNC_UUID = ${INSTANCE-PART:location}/uuid.txt
+
+[interpreter]
+recipe = zc.recipe.egg
+eggs = ${parameters:develop-eggs}
+interpreter = basepy
+
+[py]
+recipe = zc.recipe.wrapper
+target = ${buildout:bin-directory}/${interpreter:interpreter}
+environment = wrapperenv
+
+[paths]
+lxml_library_path = ${libxml2:location}/lib:${libxslt:location}/lib
+library_path = ${paths:lxml_library_path}


Property changes on: zc.async/trunk/sphinx/wrapper.cfg
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Checkins mailing list