Commit 0e497d16 authored by Rafael Monnerat's avatar Rafael Monnerat

Preserve bin-diretory from the original buildout

  Preserve bin-directory is required to while regenerate bin/buildout on
  the right location.
parent b5e8b8be
...@@ -88,11 +88,14 @@ Buildout will be restarted automatically to have this change applied. ...@@ -88,11 +88,14 @@ Buildout will be restarted automatically to have this change applied.
extension_list = self.buildout['buildout']['extensions'].split() extension_list = self.buildout['buildout']['extensions'].split()
extension_list = [q.strip() for q in extension_list if q.strip() != \ extension_list = [q.strip() for q in extension_list if q.strip() != \
__name__] __name__]
bin_directory = self.buildout['buildout']['bin-directory']
# rerun buildout with only neeeded section to reuse buildout # rerun buildout with only neeeded section to reuse buildout
# ability to calcuate all dependency # ability to calcuate all dependency
args.extend([ args.extend([
# chroot to rebootstrap directory # chroot to rebootstrap directory
'buildout:directory=%s' % self.rebootstrap_directory, 'buildout:directory=%s' % self.rebootstrap_directory,
# preserve bin-directory outside the chroot.
'buildout:bin-directory=%s' % bin_directory,
# install only required section with dependencies # install only required section with dependencies
'buildout:parts=%s' % self.python_section, 'buildout:parts=%s' % self.python_section,
# do not load this extension # do not load this extension
......
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