Commit 79ad6b8f authored by Julien Muchembled's avatar Julien Muchembled

Include part signature inside shared signature

parent 6e754e0c
......@@ -40,6 +40,16 @@ class Recipe(object):
self.original_options = options.copy()
options.update(platform_options)
environment_section = options.get('environment-section')
self.environ = (
buildout[environment_section].copy()
if environment_section else {})
# Trigger computation of part signature for shared signature.
# From now on, we should not pull new dependencies.
# Ignore if buildout is too old.
options.get('__buildout_signature__')
shared = ((options.get('shared', '').lower() == 'true') and
buildout['buildout'].get('shared-part-list', None))
if shared:
......@@ -98,13 +108,7 @@ class Recipe(object):
if '@@LOCATION@@' in v:
options[k] = v.replace('@@LOCATION@@', location)
self.environ = {}
self.original_environment = os.environ.copy()
environment_section = self.options.get('environment-section', '').strip()
if environment_section and environment_section in buildout:
# Use environment variables from the designated config section.
self.environ.update(buildout[environment_section])
for variable in options.get('environment', '').splitlines():
if variable.strip():
try:
......
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