Skip to content

add flexibility support for specifying OS dependencies#846

Merged
boegel merged 2 commits intoeasybuilders:developfrom
boegel:flexible_os_deps
Feb 14, 2014
Merged

add flexibility support for specifying OS dependencies#846
boegel merged 2 commits intoeasybuilders:developfrom
boegel:flexible_os_deps

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Feb 12, 2014

No description provided.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Feb 12, 2014

@stdweird: review?

@fgeorgatos
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@boegel minor remark

@boegel
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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