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

rename easyconfig files according to standard #69

Merged
merged 3 commits into from
Aug 10, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions easybuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ def processEasyconfig(path, log, onlyBlocks=None, regtest_online=False):

del eb

# ensure the pathname is equal to the module
base_name, ext = os.path.splitext(os.path.basename(spec))
module_name = "-".join(package['module'])
if base_name.lower() != module_name.lower():
log.error("easyconfig file: %s does not contain module %s" % (spec, module_name))
Copy link
Member

Choose a reason for hiding this comment

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

This is checked somewhere else already in resolveDependencies, no?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I should actually remove it there (since they will also call this function).


packages.append(package)

return packages
Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyconfigs/e/ECore/ecore-1.5.2.eb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sources=['%s-%s.tgz'%(name.lower(),version)]
patches=['ecore-license-var.patch']

sanityCheckPaths = {
'files':["ecore.sh",'noarch/launch.sh'] + ['arch/linux-rh5-x86_64/bin/%s' % name for name in ['ismodeller', 'ecore', 'packer', 'PorenetworkExtraction', 'Poresim', 'unpacker' ]],
'files':["ecore.sh",'noarch/launch.sh'] + ['arch/linux-rh5-x86_64/bin/%s' % bin for bin in ['ismodeller', 'ecore', 'packer', 'PorenetworkExtraction', 'Poresim', 'unpacker' ]],
Copy link
Author

Choose a reason for hiding this comment

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

Cout not use 'name' here since it would overwrite the 'name' from the outer scope

'dirs':[]
}