paramonte._pmreqs
¶
Module Contents¶
Functions¶
|
Checks (or rechecks) the requirements of the installed ParaMonte library. |
|
|
|
|
|
Return a structure containing the paths to |
|
|
|
|
|
|
|
|
|
Builds the ParaMonte library kernel on the user’s system from scratch. |
|
Take an input version string like, “1.1.1” and return an integer triplet list. |
|
Take an input version string like, “1.1.1” and return another string representing the version before the input version, like, 1.1.0. |
|
Return the minimum required version of the Python library |
Verify the existence of the required Python packages and |
|
|
Check whether a new version of the input package name |
-
paramonte._pmreqs.
newline
¶
-
paramonte._pmreqs.
verificationStatusFilePath
¶
-
paramonte._pmreqs.
buildInstructionNoteWindows
=¶
-
paramonte._pmreqs.
buildInstructionNoteUnix
¶
-
paramonte._pmreqs.
verify
(reset=True)[source]¶ Checks (or rechecks) the requirements of the installed ParaMonte library.
Usage
import paramonte as pm pm.verify()
Parameters
reset
A boolean whose default value is
True
. IfTrue
, a thorough verification of the existence of the required libraries will performed, as if it is the first ParaMonte module import.Returns
None
-
paramonte._pmreqs.
findMPI
()[source]¶ Return a structure containing the paths to the different components of the MPI library.
WARNING
No
return
must be specified in this routine, except at the very end of the function.
-
paramonte._pmreqs.
build
(flags='')[source]¶ Builds the ParaMonte library kernel on the user’s system from scratch.
Parameters
flags (optional)
A string containing any of the ParaMonte install script flags. If the operating system is Unix-based (e.g., Linux or macOS) then the value of
flags
must conform to the rules and syntax of the flags of the Bash install script of the ParaMonte library on GitHub. If the operating system is Windows, then the value offlags
must conform to the rules and syntax of the flags of the Batch install script of the ParaMonte library on GitHub. The default value is an empty string""
. For more information on the possible values offlags
, visit:https://github.com/cdslaborg/paramonte/blob/main/install.sh.usage.txt
Example usage:
1 2
import paramonte as pm pm.build(flags = '--lang python --par none --build "debug release"')
Returns
None.
-
paramonte._pmreqs.
getVersionTriplet
(versionDumpString)[source]¶ Take an input version string like, “1.1.1” and return an integer triplet list.
-
paramonte._pmreqs.
getPreviousVersion
(currentVerionString)[source]¶ Take an input version string like, “1.1.1” and return another string representing the version before the input version, like, 1.1.0.
-
paramonte._pmreqs.
dependencyVersionDict
¶
-
paramonte._pmreqs.
getDependencyVersion
(pkg: tp.Optional[str] = None)[source]¶ Return the minimum required version of the Python library for the successful use of the ParaMonte library visualization and post-processing tools.
Parameters
pkg
An optional string representing the name of the Python package whose version is being inquired.
Returns
A string representing the required minimum version of the input
pkg
. Ifpkg
is missing or the package dependency does not exist within the ParaMonte library, the dictionary of all dependencies will be returned.
-
paramonte._pmreqs.
verifyDependencyVersion
()[source]¶ Verify the existence of the required Python packages and their minimum versions on the current system.
Parameters
None
Returns
None
-
paramonte._pmreqs.
checkForUpdate
(package='paramonte')[source]¶ Check whether a new version of the input package name (presumably,
"paramonte"
) is available for download from the PyPI repository. This is done via thepip
tool. Depending on whether a new version of the package is available, display an appropriate message with instructions on how to install the latest version.Parameters
package (optional)
The name of the Python package on PyPI repository whose laest version will be checked against the current version.
Returns
None