Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance bootstrap to auto-skip stage 0 in case a suitable setuptools is already available #1946

Merged
merged 23 commits into from
Nov 9, 2016

Conversation

boegel
Copy link
Member

@boegel boegel commented Oct 6, 2016

No description provided.

@boegel
Copy link
Member Author

boegel commented Oct 7, 2016

@riccardomurri up for testing this (w.r.t. #1887)?

@riccardomurri
Copy link
Contributor

Installation failed on a (almost) vanilla Ubuntu 16.04::

ubuntu@eb-test:~$ wget https://raw.githubusercontent.com/boegel/easybuild-framework/auto_skip_stage0_bootstrap/easybuild/scripts/bootstrap_eb.py
...
2016-10-14 08:48:40 (1.40 MB/s) - 'bootstrap_eb.py' saved [41578/41578]

ubuntu@eb-test:~$ sudo apt install lmod
...
Setting up lmod (5.8-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

ubuntu@eb-test:~$ source /usr/share/lmod/lmod/init/bash

ubuntu@eb-test:~$ python bootstrap_eb.py $HOME/easybuild
[[INFO]] EasyBuild bootstrap script (version 20161006.01, MD5: c91bf277b86f693463f05119f068e4de)
[[INFO]] Found Python 2.7.12 (default, Jul  1 2016, 15:12:24) ; [GCC 5.4.0 20160609]

[[INFO]] Installation prefix /home/ubuntu/easybuild
[[INFO]] Found module command '/usr/share/lmod/lmod/libexec/lmod' via $LMOD_CMD (Lmod), so using it.
[[INFO]] No suitable setuptools installation found, proceeding with stage 0...


[[INFO]] +++ STAGE 0: installing distribute via included (patched) distribute_setup.py...

Downloading http://hpcugent.github.io/easybuild/files/distribute-0.6.49-patched1.tar.gz
Extracting in /tmp/tmpTHecFs
Now working in /tmp/tmpTHecFs/distribute-0.6.49
Installing Distribute
[[INFO]] Installed setuptools version 0.6 (/tmp/tmpMEOFQY/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/setuptools/__init__.pyc)


[[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install...

[[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmpMEOFQY/eb_stage1 easybuild'
[[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmpMEOFQY/eb_stage1 vsc-base'
[[ERROR]] Failed to find right 'easy_install' command!

The starting VM image is a Ubuntu 16.04 with the python package installed
(which is not in the default base image; only python3 is).

@boegel
Copy link
Member Author

boegel commented Oct 14, 2016

@riccardomurri can you upload to debug output (EASYBUILD_BOOTSTRAP_DEBUG=1 python bootstrap_eb.py ...) to a gist?

@riccardomurri
Copy link
Contributor

Same results on Ubuntu 14.04, with the addition that git is required (see #1962)

@riccardomurri
Copy link
Contributor

@boegel here's the DEBUG log of the Ubuntu 14.04 failure:
https://gist.github.com/riccardomurri/a5c803f820cba43a8300e1c19e629faa

1 similar comment
@riccardomurri
Copy link
Contributor

@boegel here's the DEBUG log of the Ubuntu 14.04 failure:
https://gist.github.com/riccardomurri/a5c803f820cba43a8300e1c19e629faa

…TH when checking whether available easy_install is the right one
@boegel
Copy link
Member Author

boegel commented Oct 25, 2016

@riccardomurri Urgh, I indeed missing something... Please try again?

@boegel
Copy link
Member Author

boegel commented Nov 3, 2016

@riccardomurri ping on retesting this?

crbaird added a commit to openhpc/ohpc that referenced this pull request Nov 4, 2016
@boegel
Copy link
Member Author

boegel commented Nov 9, 2016

OK, I think this is good to go, it has been tested extensively in various contexts:

I would like to also verify that the offline install mode doesn't get broken in Travis, but I'll do that in a follow-up PR.

Thanks for all the feedback on this @riccardomurri!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants