forked from easybuilders/easybuild-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from stdweird/bootstrap
Bootstrap
- Loading branch information
Showing
8 changed files
with
296 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from pkgutil import extend_path | ||
|
||
# we're not the only ones in this namespace | ||
__path__ = extend_path(__path__, __name__) #@ReservedAssignment |
4 changes: 4 additions & 0 deletions
4
easybuild/test/easyblocks_sandbox/easybuild/easyblocks/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from pkgutil import extend_path | ||
|
||
# we're not the only ones in this namespace | ||
__path__ = extend_path(__path__, __name__) #@ReservedAssignment |
46 changes: 46 additions & 0 deletions
46
easybuild/test/easyblocks_sandbox/easybuild/easyblocks/bar.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## | ||
# Copyright 2009-2013 Ghent University | ||
# | ||
# This file is part of EasyBuild, | ||
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), | ||
# with support of Ghent University (http://ugent.be/hpc), | ||
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), | ||
# the Hercules foundation (http://www.herculesstichting.be/in_English) | ||
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en). | ||
# | ||
# http://github.com/hpcugent/easybuild | ||
# | ||
# EasyBuild is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation v2. | ||
# | ||
# EasyBuild is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
""" | ||
Generic EasyBuild support for building and installing bar, implemented as an easyblock | ||
@author: Kenneth Hoste (Ghent University) | ||
""" | ||
|
||
from easybuild.framework.easyblock import EasyBlock | ||
from easybuild.framework.easyconfig import CUSTOM, MANDATORY | ||
|
||
|
||
class bar(EasyBlock): | ||
"""Generic support for building/installing bar.""" | ||
|
||
@staticmethod | ||
def extra_options(): | ||
"""Custom easyconfig parameters for bar.""" | ||
|
||
extra_vars = [ | ||
('bar_extra1', [None, "first bar-specific easyconfig parameter (mandatory)", MANDATORY]), | ||
('bar_extra2', ['BAR', "second bar-specific easyconfig parameter", CUSTOM]), | ||
] | ||
return EasyBlock.extra_options(extra_vars) |
46 changes: 46 additions & 0 deletions
46
easybuild/test/easyblocks_sandbox/easybuild/easyblocks/foo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## | ||
# Copyright 2009-2013 Ghent University | ||
# | ||
# This file is part of EasyBuild, | ||
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), | ||
# with support of Ghent University (http://ugent.be/hpc), | ||
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), | ||
# the Hercules foundation (http://www.herculesstichting.be/in_English) | ||
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en). | ||
# | ||
# http://github.com/hpcugent/easybuild | ||
# | ||
# EasyBuild is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation v2. | ||
# | ||
# EasyBuild is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
""" | ||
EasyBuild support for building and installing foo, implemented as an easyblock | ||
@author: Kenneth Hoste (Ghent University) | ||
""" | ||
|
||
from easybuild.framework.easyblock import EasyBlock | ||
from easybuild.framework.easyconfig import CUSTOM, MANDATORY | ||
|
||
|
||
class EB_foo(EasyBlock): | ||
"""Support for building/installing foo.""" | ||
|
||
@staticmethod | ||
def extra_options(more_extra_vars=[]): | ||
"""Custom easyconfig parameters for foo.""" | ||
|
||
extra_vars = [ | ||
('foo_extra1', [None, "first foo-specific easyconfig parameter (mandatory)", MANDATORY]), | ||
('foo_extra2', ['FOO', "second foo-specific easyconfig parameter", CUSTOM]), | ||
] | ||
return EasyBlock.extra_options(extra_vars + more_extra_vars) |
46 changes: 46 additions & 0 deletions
46
easybuild/test/easyblocks_sandbox/easybuild/easyblocks/foofoo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## | ||
# Copyright 2009-2013 Ghent University | ||
# | ||
# This file is part of EasyBuild, | ||
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), | ||
# with support of Ghent University (http://ugent.be/hpc), | ||
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), | ||
# the Hercules foundation (http://www.herculesstichting.be/in_English) | ||
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en). | ||
# | ||
# http://github.com/hpcugent/easybuild | ||
# | ||
# EasyBuild is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation v2. | ||
# | ||
# EasyBuild is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
""" | ||
EasyBuild support for building and installing foofoo, implemented as an easyblock | ||
@author: Kenneth Hoste (Ghent University) | ||
""" | ||
|
||
from easybuild.easyblocks.foo import EB_foo | ||
from easybuild.framework.easyconfig import CUSTOM, MANDATORY | ||
|
||
|
||
class EB_foofoo(EB_foo): | ||
"""Support for building/installing foofoo.""" | ||
|
||
@staticmethod | ||
def extra_options(): | ||
"""Custom easyconfig parameters for foofoo.""" | ||
|
||
extra_vars = [ | ||
('foofoo_extra1', [None, "first foofoo-specific easyconfig parameter (mandatory)", MANDATORY]), | ||
('foofoo_extra2', ['FOOFOO', "second foofoo-specific easyconfig parameter", CUSTOM]), | ||
] | ||
return EB_foo.extra_options(extra_vars) |
Oops, something went wrong.