{ "info": { "author": "Stephan Richter and the Zope Community", "author_email": "zope3-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "This run-script URL allows you to specify an arbitrary script to do the work\nof the recipe.\n\n\nDetailed Documentation\n**********************\n\n=================================\nThe ``runscript`` Buildout Recipe\n=================================\n\nSome software packages are not easily installed using established build patterns, such\nas \"configure, make, make install\". In those cases you want to be able to use\narbitrary scripts to build a particular part. This recipe provides a simple\nimplementation to run a Python callable for each installing and updating a\npart.\n\n >>> import os\n >>> import z3c.recipe.runscript.tests\n >>> scriptFilename = os.path.join(\n ... os.path.dirname(z3c.recipe.runscript.tests.__file__), 'fooscripts.py')\n\nLet's create a sample buildout to install it:\n\n >>> write('buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = foo\n ...\n ... [foo]\n ... recipe = z3c.recipe.runscript\n ... install-script = %s:installFoo\n ... \"\"\" %scriptFilename)\n\nThe ``install-script`` option specifies the module and the function to call\nduring the part installation. The function takes the local and buildout\noptions as arguments. See ``tests/fooscripts.py`` for details.\n\nWhen running buildout, the ``installFoo()`` function is called:\n\n >>> print system('bin/buildout')\n Installing foo.\n Now executing ``installFoo()``\n\nIf we run the buildout again, the update method will be called, but since we\ndid not specify any, nothing happens:\n\n >>> print system('bin/buildout')\n Updating foo.\n\nLet's now specify the update script as well, causing the ``updateFoo()``\nfunction to be called:\n\n >>> write('buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = foo\n ...\n ... [foo]\n ... recipe = z3c.recipe.runscript\n ... install-script = %s:installFoo\n ... update-script = %s:updateFoo\n ... \"\"\" %(scriptFilename, scriptFilename))\n\nBut after a change like that, parts will be uninstalled and reinstalled:\n\n >>> print system('bin/buildout')\n Uninstalling foo.\n Installing foo.\n Now executing ``installFoo()``\n\nOnly now we can update the part:\n\n >>> print system('bin/buildout')\n Updating foo.\n Now executing ``updateFoo()``\n\nAnd that's it.\n\n\n=======\nCHANGES\n=======\n\n0.1.3 (2011-10-07)\n------------------\n\n- Bug: fix Windows path support (containing semicolon such as 'c:\\\\')\n\n\n0.1.2 (2010-09-22)\n------------------\n\n- Added test extra to declare test dependency on ``zope.testing``.\n\n- Using Python's ``doctest`` module instead of depreacted\n ``zope.testing.doctest``.\n\n\n0.1.1 (2008-04-18)\n------------------\n\n- Bug: Fix release to include CHANGES.txt.\n\n\n0.1.0 (2007-07-30)\n------------------\n\n- Initial Release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://cheeseshop.python.org/pypi/z3c.recipe.runscript", "keywords": "buildout recipe", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "z3c.recipe.runscript", "package_url": "https://pypi.org/project/z3c.recipe.runscript/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/z3c.recipe.runscript/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://cheeseshop.python.org/pypi/z3c.recipe.runscript" }, "release_url": "https://pypi.org/project/z3c.recipe.runscript/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A recipe that runs any script to install a part.", "version": "0.1.3" }, "last_serial": 802084, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9b56604ed00e079b7dc6caa9f51ed234", "sha256": "1e1ef69ed5104e764277ce68de453ef5f28d8bd4f8320229636dab1bc0ae3273" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.0-py2.4.egg", "has_sig": false, "md5_digest": "9b56604ed00e079b7dc6caa9f51ed234", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 7215, "upload_time": "2007-07-31T05:22:42", "url": "https://files.pythonhosted.org/packages/fa/01/7db12933ad9f200f11e83eaab02d6afb30a323979f55a8a7e7c52c76d1b8/z3c.recipe.runscript-0.1.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "98c5ad02fa787aa2742ca997c0072cc0", "sha256": "a04d54829421909513742c8a7fd6e51768d62b6708aaf380afd9bc7f28686091" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.0.tar.gz", "has_sig": false, "md5_digest": "98c5ad02fa787aa2742ca997c0072cc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2988, "upload_time": "2007-07-31T05:22:33", "url": "https://files.pythonhosted.org/packages/cd/49/eec4924cfb83c306303ed68cdd40f85ce9f65a409595b3c69de53af610f9/z3c.recipe.runscript-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "530a31f458bc980727a0e2827515a93a", "sha256": "23b99dd1b3dd6ecf92af4b13df2e2bfa487d67dced2bf2d760c0ad22d85e720d" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.1.tar.gz", "has_sig": false, "md5_digest": "530a31f458bc980727a0e2827515a93a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4718, "upload_time": "2008-04-18T07:40:20", "url": "https://files.pythonhosted.org/packages/61/b5/7d23482a4a027a94bc2d76b0163ba82876590c178612eebc8cba5bb859ad/z3c.recipe.runscript-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "30140a5e1e7246b45583b80f07611145", "sha256": "58585be1fbbf9dae4aee8731d4f5c16efc2d4be01c8a416c16636e3319c25fda" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.2.tar.gz", "has_sig": false, "md5_digest": "30140a5e1e7246b45583b80f07611145", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5701, "upload_time": "2010-09-22T08:50:20", "url": "https://files.pythonhosted.org/packages/4c/ff/680b04fb4baff552f7348721fd5ccde1f5188f4d88c16f9af605d7639a0f/z3c.recipe.runscript-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5f22b4b1777677849d3938e8fb257e2b", "sha256": "e93f2b2481ecdbf78b31771f07ab9f36ec393439753727df49a6536bff898f69" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5f22b4b1777677849d3938e8fb257e2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5860, "upload_time": "2011-10-07T17:52:57", "url": "https://files.pythonhosted.org/packages/c3/58/346fee851292434fecf5d9381a9bff7d734da512ce2a700f9188033cedb4/z3c.recipe.runscript-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f22b4b1777677849d3938e8fb257e2b", "sha256": "e93f2b2481ecdbf78b31771f07ab9f36ec393439753727df49a6536bff898f69" }, "downloads": -1, "filename": "z3c.recipe.runscript-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5f22b4b1777677849d3938e8fb257e2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5860, "upload_time": "2011-10-07T17:52:57", "url": "https://files.pythonhosted.org/packages/c3/58/346fee851292434fecf5d9381a9bff7d734da512ce2a700f9188033cedb4/z3c.recipe.runscript-0.1.3.tar.gz" } ] }