Skip to content

update easybuild from command line#1861

Merged
boegel merged 13 commits intoeasybuilders:developfrom
Caylo:eb_update_self
Aug 12, 2016
Merged

update easybuild from command line#1861
boegel merged 13 commits intoeasybuilders:developfrom
Caylo:eb_update_self

Conversation

@Caylo
Copy link
Copy Markdown
Contributor

@Caylo Caylo commented Aug 3, 2016

use: eb --install-latest-eb-release

@boegel boegel modified the milestone: v2.9.0 Aug 10, 2016
Comment thread easybuild/main.py Outdated

if options.update:
eb_file = find_easybuild_eb()
orig_paths.append(eb_file)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would try and make sure that only EasyBuild is installed, and throw an error if other easyconfigs are installed at the same time?

Comment thread easybuild/tools/github.py Outdated
return sanity_check and token_test


def find_easybuild_eb():
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Caylo please add a unit test for this (just check whether it returns a path an existing easyconfig for EasyBuild)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, rename to find_easybuild_easyconfig?

@boegel
Copy link
Copy Markdown
Member

boegel commented Aug 11, 2016

@Caylo needs a sync with develop to resolve conflicts

Comment thread easybuild/tools/github.py Outdated
for eb_file in files:
txt = read_file(os.path.join(eb_parent_path, eb_file))
for line in txt.split('\n'):
if re.search(r'^version =', line):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use \s* rather than hardcoding the space before the =

Comment thread easybuild/tools/github.py Outdated
version = scope['version']
file_versions.append((LooseVersion(version), eb_file))

fn = sorted(file_versions)[-1][1]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Caylo let's throw a proper error here if file_versions is empty...

@boegel
Copy link
Copy Markdown
Member

boegel commented Aug 12, 2016

going in, thanks @Caylo!

@boegel boegel merged commit 7de8499 into easybuilders:develop Aug 12, 2016
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