Skip to content

Commit 71901af

Browse files
authored
Merge pull request #2849 from boegel/generic_easyblocks_docstring
tweak docstring in some generic easyblocks so it renders nicely in auto-generated documentation
2 parents 4d36e56 + eee02d2 commit 71901af

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

easybuild/easyblocks/generic/configuremakepythonpackage.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636

3737
class ConfigureMakePythonPackage(ConfigureMake, PythonPackage):
3838
"""
39-
Build a Python package and module with 'python configure/make/make install'.
39+
Build a Python package and module with ``python configure``/``make``/``make install``.
4040
4141
Implemented by using:
42+
4243
- a custom implementation of configure_step
4344
- using the build_step and install_step from ConfigureMake
4445
- using the sanity_check_step and make_module_extra from PythonPackage
@@ -54,21 +55,21 @@ def __init__(self, *args, **kwargs):
5455
PythonPackage.__init__(self, *args, **kwargs)
5556

5657
def configure_step(self, *args, **kwargs):
57-
"""Configure build using 'python configure'."""
58+
"""Configure build using ``python configure``."""
5859
PythonPackage.configure_step(self, *args, **kwargs)
5960
cmd = ' '.join([self.cfg['preconfigopts'], self.python_cmd, self.cfg['configopts']])
6061
run_cmd(cmd, log_all=True)
6162

6263
def build_step(self, *args, **kwargs):
63-
"""Build Python package with 'make'."""
64+
"""Build Python package with ``make``."""
6465
return ConfigureMake.build_step(self, *args, **kwargs)
6566

6667
def test_step(self, *args, **kwargs):
6768
"""Test Python package."""
6869
PythonPackage.test_step(self, *args, **kwargs)
6970

7071
def install_step(self, *args, **kargs):
71-
"""Install with 'make install'."""
72+
"""Install with ``make install``."""
7273
return ConfigureMake.install_step(self, *args, **kargs)
7374

7475
def sanity_check_step(self, *args, **kwargs):

easybuild/easyblocks/generic/intelbase.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
class IntelBase(EasyBlock):
9292
"""
9393
Base class for Intel software
94+
9495
- no configure/make : binary release
9596
- add license_file variable
9697
"""

easybuild/easyblocks/generic/rpm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def rebuild_rpm(rpm_path, targetdir):
9494
class Rpm(Binary):
9595
"""
9696
Support for installing RPM files.
97+
9798
- sources is a list of rpms
9899
- installation is with --nodeps (so the sources list has to be complete)
99100
"""

easybuild/easyblocks/generic/tarball.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646

4747
class Tarball(ExtensionEasyBlock):
4848
"""
49-
Precompiled software supplied as a tarball:
50-
- will unpack binary and copy it to the install dir
49+
Precompiled software supplied as a tarball: will unpack binary and copy it to the install dir
5150
"""
5251

5352
@staticmethod

0 commit comments

Comments
 (0)