Commit 7cf79d04 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Julien Muchembled

Add setup-eggs option in zc.recipe.egg:custom.

parent 35636459
......@@ -14,7 +14,7 @@
"""Setup for zc.recipe.egg package
"""
version = '1.3.2'
version = '1.3.2nxd001'
import os
from setuptools import setup, find_packages
......
......@@ -88,6 +88,23 @@ class Custom(Base):
distribution = options.get('egg', options.get('eggs', self.name)
).strip()
setup_eggs = [
r.strip()
for r in options.get('setup-eggs', '').split('\n')
if r.strip()]
if setup_eggs:
ws = zc.buildout.easy_install.install(
setup_eggs, options['_e'],
links=self.links,
index=self.index,
executable=options['executable'],
path=[options['_d'], options['_e']],
newest=self.newest,
)
extra_path = os.pathsep.join(ws.entries)
self.environment['PYTHONEXTRAPATH'] = extra_path
self._set_environment()
try:
return zc.buildout.easy_install.build(
......
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