Skip to content

Commit

Permalink
Merge pull request #1655 from boegel/fix_bootstrap_force_setuptools
Browse files Browse the repository at this point in the history
fix bootstrap script to ensure setuptools is also installed
  • Loading branch information
boegel committed Mar 7, 2016
2 parents 3149fe2 + 200f5cc commit cf74d9f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion easybuild/scripts/bootstrap_eb.py
Expand Up @@ -400,7 +400,18 @@ def stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath):
if distribute_egg_dir is None:
preinstallopts = ''
else:
preinstallopts = 'PYTHONPATH=%s:$PYTHONPATH' % distribute_egg_dir
preinstallopts = "export PYTHONPATH=%s:$PYTHONPATH && " % distribute_egg_dir

# also add location to easy_install provided through stage0 to $PATH
curr_path = os.environ.get('PATH', '').split(os.pathsep)
os.environ['PATH'] = os.pathsep.join([os.path.join(tmpdir, 'bin')] + curr_path)
debug("$PATH: %s" % os.environ['PATH'])

# ensure that (latest) distribute is installed as well alongside EasyBuild,
# since it is a required runtime dependency for recent vsc-base and EasyBuild versions
# this is necessary since we provide our own distribute installation during the bootstrap (cfr. stage0)
preinstallopts += "easy_install -U --prefix %(installdir)s distribute && "

templates.update({
'preinstallopts': preinstallopts,
})
Expand Down

0 comments on commit cf74d9f

Please sign in to comment.