Skip to content

Commit 552fd30

Browse files
committed
port eb v4 pages to markdown
1 parent ccb6511 commit 552fd30

File tree

1 file changed

+77
-165
lines changed

1 file changed

+77
-165
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,255 +1,167 @@
11
# Overview of relocated functions, classes and constants in EasyBuild v4.0 {: #eb4_relocated_functions_classes_constants }
22

3-
!!! warning
4-
This page will soon replace <https://docs.easybuild.io/en/latest/EasyBuild4-overview-relocated-functions-constants.html>.
5-
6-
**
7-
It still needs to be ported from *reStructuredText* (.rst) to *MarkDown* (.md),
8-
and you can help with that!
9-
**
10-
11-
- source: [`docs/EasyBuild4-overview-relocated-functions-constants.rst` in `easybuilders/easybuild` repo](https://raw.githubusercontent.com/easybuilders/easybuild/develop/docs/EasyBuild4-overview-relocated-functions-constants.rst)
12-
- target: [`docs/easybuild-v4/overview-relocated-functions-constants.md` in `easybuilders/easybuild-docs` repo](https://github.com/easybuilders/easybuild-docs/tree/main/docs/easybuild-v4/overview-relocated-functions-constants.md)
13-
14-
See <https://github.com/easybuilders/easybuild-docs> for more information.
15-
16-
```rst
17-
.. _eb4_relocated_functions_classes_constants:
18-
19-
Overview of relocated functions, classes and constants in EasyBuild v4.0
20-
========================================================================
21-
223
This page provides an alphabetical overview of relocated functions, classes and constants in EasyBuild version 4.0;
23-
see :ref:`eb4_changes_backwards_incompatible` for motivation and high-level information.
4+
see [Backwards-incompatible changes in EasyBuild v4.0][eb4_changes_backwards_incompatible] for motivation and high-level information.
245

256

26-
.. _eb4_relocated_basestring:
7+
## `basestring` type {: #eb4_relocated_basestring }
278

28-
``basestring`` type
29-
-------------------
30-
31-
Rather than using the ``basestring`` type from the Python 2 standard library directly (for example in
32-
an ``isinstance`` expression), the ``string_type`` type from the ``easybuild.tools.py2vs3`` package should be used instead,
9+
Rather than using the `basestring` type from the Python 2 standard library directly (for example in
10+
an `isinstance` expression), the `string_type` type from the `easybuild.tools.py2vs3` package should be used instead,
3311
to ensure that the code is compatible with both Python 2 and 3.
3412

35-
See also :ref:`py2_py3_compatibility`.
36-
37-
38-
.. _eb4_relocated_configparser:
39-
40-
``configparser`` module
41-
------------------------
42-
43-
The ``configparser`` module that is part of the Python 2 standard library (via ``ConfigParser``)
44-
must now be imported from the ``easybuild.tools.py2vs3`` package, to ensure that the code is compatible with both Python 2 and 3.
45-
46-
See also :ref:`py2_py3_compatibility`.
47-
48-
49-
.. _eb4_relocated_DEVEL_MODULE_SUFFIX:
50-
13+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
5114

52-
``DEVEL_MODULE_SUFFIX`` constant
53-
--------------------------------
5415

55-
The ``DEVEL_MODULE_SUFFIX`` constant was relocated from ``easybuild.tools.module_naming_scheme`` to ``easybuild.tools.module_naming_scheme.mns``.
16+
## `configparser` module {: #eb4_relocated_configparser}
5617

18+
The `configparser` module that is part of the Python 2 standard library (via `ConfigParser`)
19+
must now be imported from the `easybuild.tools.py2vs3` package, to ensure that the code is compatible with both Python 2 and 3.
5720

58-
.. _eb4_relocated_DUMMY_TOOLCHAIN_NAME_VERSION:
21+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
5922

60-
``DUMMY_TOOLCHAIN_NAME`` and ``DUMMY_TOOLCHAIN_VERSION`` constants
61-
------------------------------------------------------------------
6223

63-
The ``DUMMY_TOOLCHAIN_NAME`` and ``DUMMY_TOOLCHAIN_VERSION`` constants were relocated from ``easybuild.tools.toolchain`` to ``easybuild.tools.toolchain.toolchain``.
24+
## `DEVEL_MODULE_SUFFIX` constant {: #eb4_relocated_DEVEL_MODULE_SUFFIX }
6425

65-
.. note:: Since the ``dummy`` toolchain has been deprecated and is replaced by the ``system`` toolchain (see :ref:`system_toolchain`),
66-
you should use the ``is_system_toolchain`` function or ``Toolchain.is_system_toolchain`` method to check whether a toolchain
67-
is a ``dummy`` or ``system`` toolchain, rather than using these constants directly (or using the ``SYSTEM_TOOLCHAIN-*`` equivalents).
26+
The `DEVEL_MODULE_SUFFIX` constant was relocated from `easybuild.tools.module_naming_scheme` to `easybuild.tools.module_naming_scheme.mns`.
6827

6928

70-
.. _eb4_relocated_FrozenDictKnownKeys:
7129

72-
``FrozenDictKnownKeys`` class
73-
-----------------------------
30+
## `DUMMY_TOOLCHAIN_NAME` and `DUMMY_TOOLCHAIN_VERSION` constants {: #eb4_relocated_DUMMY_TOOLCHAIN_NAME_VERSION: }
7431

75-
The ``FrozenDictKnownKeys`` class from ``vsc.utils.missing`` is now available from ``easybuild.base.frozendict``.
32+
The `DUMMY_TOOLCHAIN_NAME` and `DUMMY_TOOLCHAIN_VERSION` constants were relocated from `easybuild.tools.toolchain` to `easybuild.tools.toolchain.toolchain`.
7633

34+
!!! note
35+
Since the `dummy` toolchain has been deprecated and is replaced by the `system` toolchain (see [System toolchain][system_toolchain]),
36+
you should use the `is_system_toolchain` function or `Toolchain.is_system_toolchain` method to check whether a toolchain
37+
is a `dummy` or `system` toolchain, rather than using these constants directly (or using the `SYSTEM_TOOLCHAIN-*` equivalents).
7738

78-
.. _eb4_relocated_GEENRAL_CLASS:
7939

80-
``GENERAL_CLASS`` constant
81-
--------------------------
40+
## `FrozenDictKnownKeys` class {: #eb4_relocated_FrozenDictKnownKeys }
8241

83-
The ``GENERAL_CLASS`` constant was relocated from ``easybuild.tools.module_naming_scheme`` to ``easybuild.tools.config``.
42+
The `FrozenDictKnownKeys` class from `vsc.utils.missing` is now available from `easybuild.base.frozendict`.
8443

8544

86-
.. _eb4_relocated_get_class_for:
45+
## `GENERAL_CLASS` constant {: #eb4_relocated_GEENRAL_CLASS }
8746

88-
``get_class_for`` function
89-
--------------------------
47+
The `GENERAL_CLASS` constant was relocated from `easybuild.tools.module_naming_scheme` to `easybuild.tools.config`.
9048

91-
The ``get_class_for`` function from ``vsc.utils.missing`` is now available from ``easybuild.tools.utilities``.
9249

50+
`get_class_for` function {: #eb4_relocated_get_class_for }
9351

94-
.. _eb4_relocated_get_subclasses:
52+
The `get_class_for` function from `vsc.utils.missing` is now available from `easybuild.tools.utilities`.
9553

96-
``get_subclasses`` function
97-
---------------------------
9854

99-
The ``get_subclasses`` function from ``vsc.utils.missing`` is now available from ``easybuild.tools.utilities``.
55+
## `get_subclasses` function {: #eb4_relocated_get_subclasses }
10056

57+
The `get_subclasses` function from `vsc.utils.missing` is now available from `easybuild.tools.utilities`.
10158

102-
.. _eb4_relocated_INDENT_4SPACES:
10359

104-
``INDENT_4SPACES`` constant
105-
---------------------------
60+
## `INDENT_4SPACES` constant {: #eb4_relocated_INDENT_4SPACES }
10661

107-
The ``INDENT_4SPACES`` constants was relocated from ``easybuild.framework.easyconfig.format.format`` to ``easybuild.tools.utilities``.
62+
The `INDENT_4SPACES` constants was relocated from `easybuild.framework.easyconfig.format.format` to `easybuild.tools.utilities`.
10863

10964

110-
.. _eb4_relocated_mk_rst_table:
65+
## `mk_rst_table` function {: #eb4_relocated_mk_rst_table }
11166

112-
``mk_rst_table`` function
113-
--------------------------
67+
The `mk_rst_table` function from `vsc.utils.docs` is now available from `easybuild.tools.docs`.
11468

115-
The ``mk_rst_table`` function from ``vsc.utils.docs`` is now available from ``easybuild.tools.docs``.
11669

70+
## `ModuleNamingScheme` class {: #eb4_relocated_ModuleNamingScheme }
11771

118-
.. _eb4_relocated_ModuleNamingScheme:
72+
The `ModuleNamingScheme` class was relocated from `easybuild.tools.module_naming_scheme` to `easybuild.tools.module_naming_scheme.mns`.
11973

120-
``ModuleNamingScheme`` class
121-
----------------------------
12274

123-
The ``ModuleNamingScheme`` class was relocated from ``easybuild.tools.module_naming_scheme`` to ``easybuild.tools.module_naming_scheme.mns``.
75+
## `nub` function {: #eb4_relocated_nub }
12476

77+
The `nub` function from `vsc.utils.missing` is now available from `easybuild.tools.utilities`.
12578

126-
.. _eb4_relocated_nub:
12779

128-
``nub`` function
129-
----------------
80+
## `OrderedDict` class {: #eb4_relocated_OrderedDict }
13081

131-
The ``nub`` function from ``vsc.utils.missing`` is now available from ``easybuild.tools.utilities``.
82+
The `OrderedDict` class that is part of the Python 2 standard library (via `collections`)
83+
must now be imported from the `easybuild.tools.py2vs3` package, to ensure that the code is compatible with both Python 2 and 3.
13284

85+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
13386

134-
.. _eb4_relocated_OrderedDict:
13587

136-
``OrderedDict`` class
137-
---------------------
88+
## `reload` function {: #eb4_relocated_reload }
13889

139-
The ``OrderedDict`` class that is part of the Python 2 standard library (via ``collections``)
140-
must now be imported from the ``easybuild.tools.py2vs3`` package, to ensure that the code is compatible with both Python 2 and 3.
90+
The `reload` function that is a built-in function of the Python 2 standard library
91+
must now be imported from the `easybuild.tools.py2vs3` package, to ensure that the code is compatible with both Python 2 and 3.
14192

142-
See also :ref:`py2_py3_compatibility`.
93+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
14394

14495

145-
.. _eb4_relocated_reload:
96+
## `shell_quote` function {: #eb4_relocated_shell_quote }
14697

147-
``reload`` function
148-
-------------------
98+
The `shell_quote` function from `vsc.utils.missing` is now available from `easybuild.tools.utilities`.
14999

150-
The ``reload`` function that is a built-in function of the Python 2 standard library
151-
must now be imported from the ``easybuild.tools.py2vs3`` package, to ensure that the code is compatible with both Python 2 and 3.
152100

153-
See also :ref:`py2_py3_compatibility`.
101+
## `sched_getaffinity` function {: #eb4_relocated_sched_getaffinity }
154102

103+
The `sched_getaffinity` function from `vsc.utils.affinity` is now available from `easybuild.tools.systemtools`.
155104

156-
.. _eb4_relocated_shell_quote:
157105

158-
``shell_quote`` function
159-
------------------------
106+
## `Singleton` class {: #eb4_relocated_Singleton }
160107

161-
The ``shell_quote`` function from ``vsc.utils.missing`` is now available from ``easybuild.tools.utilities``.
108+
The `Singleton` class from `vsc.utils.patterns` is now available from `easybuild.tools.config`.
162109

163110

164-
.. _eb4_relocated_sched_getaffinity:
111+
## `StringIO` class {: #eb4_relocated_StringIO }
165112

166-
``sched_getaffinity`` function
167-
------------------------------
168-
169-
The ``sched_getaffinity`` function from ``vsc.utils.affinity`` is now available from ``easybuild.tools.systemtools``.
170-
171-
172-
.. _eb4_relocated_Singleton:
173-
174-
``Singleton`` class
175-
-------------------
176-
177-
The ``Singleton`` class from ``vsc.utils.patterns`` is now available from ``easybuild.tools.config``.
178-
179-
180-
.. _eb4_relocated_StringIO:
181-
182-
``StringIO`` class
183-
------------------
184-
185-
Rather than importing the ``StringIO`` class from the ``StringIO`` module of the Python 2 standard library,
186-
it should be imported from the ``easybuild.tools.py2vs3`` package instead,
113+
Rather than importing the `StringIO` class from the `StringIO` module of the Python 2 standard library,
114+
it should be imported from the `easybuild.tools.py2vs3` package instead,
187115
to ensure that the code is compatible with both Python 2 and 3.
188116

189-
See also :ref:`py2_py3_compatibility`.
190-
191-
192-
.. _eb4_relocated_subprocess_Popen:
117+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
193118

194-
``subprocess.Popen`` function
195-
-----------------------------
196119

197-
Rather than using the ``subprocess.Popen`` function directly, the ``subprocess_popen_text`` function from
198-
the ``easybuild.tools.py2vs3`` package should be used instead, to ensure that the code is compatible with both Python 2 and 3.
120+
## `subprocess.Popen` function {: #eb4_relocated_subprocess_Popen }
199121

200-
See also :ref:`py2_py3_compatibility`.
122+
Rather than using the `subprocess.Popen` function directly, the `subprocess_popen_text` function from
123+
the `easybuild.tools.py2vs3` package should be used instead, to ensure that the code is compatible with both Python 2 and 3.
201124

125+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
202126

203-
.. _eb4_relocated_urlencode:
204127

205-
``urlencode`` function
206-
----------------------
128+
## `urlencode` function {: #eb4_relocated_urlencode }
207129

208-
Rather than importing the ``urlencode`` function from the ``urllib`` module of the Python 2 standard library,
209-
it should be imported from the ``easybuild.tools.py2vs3`` package instead,
130+
Rather than importing the `urlencode` function from the `urllib` module of the Python 2 standard library,
131+
it should be imported from the `easybuild.tools.py2vs3` package instead,
210132
to ensure that the code is compatible with both Python 2 and 3.
211133

212-
See also :ref:`py2_py3_compatibility`.
134+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
213135

214136

215-
.. _eb4_relocated_urllib:
137+
## `urllib` module {: #eb4_relocated_urllib}
216138

217-
``urllib`` module
218-
-----------------
219-
220-
Rather than using the ``urllib`` module from the Python 2 standard library directly,
221-
the ``std_urllib`` module from the ``easybuild.tools.py2vs3`` package should be used instead,
139+
Rather than using the `urllib` module from the Python 2 standard library directly,
140+
the `std_urllib` module from the `easybuild.tools.py2vs3` package should be used instead,
222141
to ensure that the code is compatible with both Python 2 and 3.
223142

224-
See also :ref:`py2_py3_compatibility`.
225-
226-
227-
.. _eb4_relocated_urllib2:
143+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
228144

229-
``urllib2`` module
230-
------------------
231145

232-
Functions that were imported from the ``urllib2`` package that is part of the Python 2 standard library
233-
must now be imported from the ``easybuild.tools.py2vs3`` package, to ensure that the code is compatible with both Python 2 and 3.
146+
## `urllib2` module {: #eb4_relocated_urllib2 }
234147

235-
See also :ref:`py2_py3_compatibility`.
148+
Functions that were imported from the `urllib2` package that is part of the Python 2 standard library
149+
must now be imported from the `easybuild.tools.py2vs3` package, to ensure that the code is compatible with both Python 2 and 3.
236150

151+
See also [Compatibility with Python 2 and Python 3][py2_py3_compatibility].
237152

238-
.. _eb4_relocated_vsc_utils_modules:
239153

240-
``vsc.utils.*`` modules
241-
-----------------------
154+
## `vsc.utils.*` modules {: #eb4_relocated_vsc_utils_modules }
242155

243-
The functionality from the following ``vsc.utils.*`` modules required by EasyBuild has been ingested in the corresponding ``easybuild.base.*`` module:
156+
The functionality from the following `vsc.utils.*` modules required by EasyBuild has been ingested in the corresponding `easybuild.base.*` module:
244157

245-
* ``vsc.utils.exceptions``
246-
* ``vsc.utils.fancylogger``
247-
* ``vsc.utils.generaloption``
248-
* ``vsc.utils.optcomplete``
249-
* ``vsc.utils.rest``
250-
* ``vsc.utils.testing``
251-
* ``vsc.utils.wrapper``
158+
* `vsc.utils.exceptions`
159+
* `vsc.utils.fancylogger`
160+
* `vsc.utils.generaloption`
161+
* `vsc.utils.optcomplete`
162+
* `vsc.utils.rest`
163+
* `vsc.utils.testing`
164+
* `vsc.utils.wrapper`
252165

253-
See also :ref:`eb4_no_required_deps`.
166+
See also [No more required Python packages][eb4_no_required_deps].
254167

255-
```

0 commit comments

Comments
 (0)