Commit e1e0e04c authored by Jim Fulton's avatar Jim Fulton

Finished renaming distribution to eggs and improving setup meta data.

parent 362f89a9
......@@ -42,3 +42,11 @@ To do
- More control over script generation. In particular, some way to
specify data t be recored in the script.
- Honor the buildout offline option.
- Windows suppprt
- Generate exe files
- Make sure tests work under windows
[egg_info]
tag_svn_revision = 1
from setuptools import setup, find_packages
name = "zc.recipe.egg",
setup(
name = "zc.recipe.egg",
version = "1.0.dev",
name = "name",
version = "1.0.0a1",
author = "Jim Fulton",
author_email = "jim@zope.com",
description = "Recipe for installing Python package distributions as eggs",
long_description = open('README.txt').read(),
license = "ZPL 2.1",
keywords = "development build",
url='http://svn.zope.org/zc.buildout',
download_url='http://download.zope.org/distribution',
packages = find_packages('src'),
include_package_data = True,
......@@ -17,6 +19,5 @@ setup(
namespace_packages = ['zc', 'zc.recipe'],
install_requires = ['zc.buildout', 'setuptools'],
tests_require = ['zope.testing'],
test_suite = 'zc.recipe.eggs.tests.test_suite',
entry_points = {'zc.buildout': ['default = zc.recipe.egg:Egg']},
entry_points = {'zc.buildout': ['default = %s:Egg' % name]},
)
......@@ -53,6 +53,8 @@ class Egg:
This is intended for reuse by similar recipes.
"""
options = self.options
distributions = [
r.strip()
for r in options.get('eggs', self.name).split('\n')
......@@ -67,8 +69,10 @@ class Egg:
path=[options['_d']]
)
return distributions, ws
def install(self):
ws = self.working_set()
distributions, ws = self.working_set()
options = self.options
scripts = options.get('scripts')
......
......@@ -39,7 +39,7 @@ install the demo package using Python 2.3.
...
... [demo]
... recipe = zc.recipe.egg
... distribution = demo <0.3
... eggs = demo <0.3
... find-links = %(server)s
... index = %(server)s/index
... python = python2.3
......@@ -117,7 +117,7 @@ If we change the Python version to 2.4, we'll use Python 2.4 eggs:
...
... [demo]
... recipe = zc.recipe.egg
... distribution = demo <0.3
... eggs = demo <0.3
... find-links = %(server)s
... index = %(server)s/index
... python = python2.4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment