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

add flexibility support for specifying OS dependencies #846

Merged
merged 2 commits into from
Feb 14, 2014

Conversation

boegel
Copy link
Member

@boegel boegel commented Feb 12, 2014

No description provided.

@boegel
Copy link
Member Author

boegel commented Feb 12, 2014

@stdweird: review?

@fgeorgatos
Copy link
Collaborator

Hi Ken,

I have 2nd thoughts about this PR, it makes the assumption that there is 1-1 mapping among osdeps of the various distros.

Boost is a notable example which can come from 1 to N packages, and N can vary a lot.
I am not sure what is the best way to handle this, just give it a thought…

Of course, we can always claim this is a problem to be handled in the future.

if not self._os_dependency_check(dep):
not_found.append(dep)
if isinstance(dep, basestring):
if not self._os_dependency_check(dep):
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't like this. if it is a basestring, make it a tuple, and use the tuple code. basestring shoul dbe considered shorthand for single element tuple. so always process a tuple to avoid code duplication.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, agreed, will change.

@stdweird
Copy link
Contributor

@boegel minor remark

@boegel
Copy link
Member Author

boegel commented Feb 13, 2014

@fgeorgatos: Hmm, good point... We can extend this notion to allow for:

osdependencies = [('boost', ['boost-dev', 'libboost'])]

but I'm not sure if we want to take that road...

@stdweird: Did you catch @fgeorgatos' remark?

@stdweird
Copy link
Contributor

@fgeorgatos @boegel yes, i understand it, but this PR can be useful even in current form (eg 'openssl-devel','libssl-dev'. for boost, this allows you to specify at least one of the packages (might have enough dependencies on other packages to make it equivalent), but boost is a bad example imho.

@boegel
Copy link
Member Author

boegel commented Feb 14, 2014

@stdweird, @fgeorgatos: remark fixed, and like @stdweird mentioned, more involved cases can be handled as deemed required; this should provide enough flexibility for now

boegel added a commit that referenced this pull request Feb 14, 2014
add flexibility support for specifying OS dependencies
@boegel boegel merged commit d30ea88 into easybuilders:develop Feb 14, 2014
@boegel boegel deleted the flexible_os_deps branch February 14, 2014 10:26
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.

3 participants