Skip to content

check_os_dependency: Handle the fact that get_os_name can produce RHEL and SL*#3072

Open
akesandgren wants to merge 5 commits into
easybuilders:developfrom
akesandgren:make_check_os_dependency_better
Open

check_os_dependency: Handle the fact that get_os_name can produce RHEL and SL*#3072
akesandgren wants to merge 5 commits into
easybuilders:developfrom
akesandgren:make_check_os_dependency_better

Conversation

@akesandgren
Copy link
Copy Markdown
Contributor

And handle fedora as well.

@akesandgren akesandgren added this to the 4.x milestone Nov 6, 2019
Comment thread easybuild/tools/systemtools.py Outdated
}
os_name = get_os_name()

rh_based_os = any(os_name.startswith(x) for x in ['centos', 'fedora', 'redhat', 'rhel', 'sl'])
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.

Isn't the startswith('sl') a bit risky? That's not exactly strict... Slackware for example?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It probably is, I just took that from some other part of EasyBuild.
Like tensorflow.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@boegel Better now?

@akesandgren
Copy link
Copy Markdown
Contributor Author

@boegel Better now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants