Skip to content

Variables change#572

Merged
boegel merged 8 commits intoeasybuilders:developfrom
stdweird:variables_change
Mar 27, 2013
Merged

Variables change#572
boegel merged 8 commits intoeasybuilders:developfrom
stdweird:variables_change

Conversation

@stdweird
Copy link
Copy Markdown
Contributor

@beoegl numpy mkl example in unittests

Comment thread easybuild/test/toolchainvariables.py Outdated
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

LINKER_TOGGLE_STATIC_DYNAMIC = {
    'static': '-Bstatic',
    'dynamic':'-Bdynamic',
}

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 27, 2013

Only small remarks, looks good.

So, to use this in the numpy easyblock, I should do something like this?

lapack_libs = self.toolchain.get_variable('LIBBLAS_MT').copy()
lapack_libs.try_function_by_elem('change', prefix='', prefix_begin_end='-Wl:', separator=',', separator_begin_end=',')
# use str(lapack_libs)

@stdweird
Copy link
Copy Markdown
Contributor Author

@boegel and with the lapack.libs.SEPARATOR=','

@stdweird
Copy link
Copy Markdown
Contributor Author

@boegel fixed, the "move X to Y" came with major reshuffling

@stdweird
Copy link
Copy Markdown
Contributor Author

@boegel please rereview

boegel added a commit that referenced this pull request Mar 27, 2013
@boegel boegel merged commit 7c70646 into easybuilders:develop Mar 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants