paramonte._pmreqs

Module Contents

Functions

verify(reset=True)

Checks (or rechecks) the requirements of the installed ParaMonte library.

getUserResponse(msg='')

download(url, filePath)

warnForUnsupportedPlatform()

getBashrcContents()

getBashProfileContents()

setupUnixPath()

getLocalInstallDir()

findMPI()

Return a structure containing the paths to

getPrereqs(DependencyList=None)

getDefaultIntelLinuxMpiPath(prereqs=None)

getDependencyList()

installMPI()

buildParaMontePrereqsForMac()

getMacosInstallHelpMsg(app='')

writeVerificationStatusFile(verificationEnabledString)

dispFinalMessage()

displayParaMonteBanner()

build(flags='')

Builds the ParaMonte library kernel on the user’s system from scratch.

getVersionTriplet(versionDumpString)

Take an input version string like, “1.1.1” and return an integer triplet list.

getPreviousVersion(currentVerionString)

Take an input version string like, “1.1.1” and return another string representing the version before the input version, like, 1.1.0.

getDependencyVersion(pkg: tp.Optional[str] = None)

Return the minimum required version of the Python library

displayDependencyVersionMessage()

verifyDependencyVersion()

Verify the existence of the required Python packages and

checkForUpdate(package='paramonte')

Check whether a new version of the input package name

paramonte._pmreqs.Struct[source]
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. If True, 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.getUserResponse(msg='')[source]
paramonte._pmreqs.download(url, filePath)[source]
paramonte._pmreqs.warnForUnsupportedPlatform()[source]
paramonte._pmreqs.getBashrcContents()[source]
paramonte._pmreqs.getBashProfileContents()[source]
paramonte._pmreqs.setupUnixPath()[source]
paramonte._pmreqs.getLocalInstallDir()[source]
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.getPrereqs(DependencyList=None)[source]
paramonte._pmreqs.getDefaultIntelLinuxMpiPath(prereqs=None)[source]
paramonte._pmreqs.getDependencyList()[source]
paramonte._pmreqs.installMPI()[source]
paramonte._pmreqs.buildParaMontePrereqsForMac()[source]
paramonte._pmreqs.getMacosInstallHelpMsg(app='')[source]
paramonte._pmreqs.writeVerificationStatusFile(verificationEnabledString)[source]
paramonte._pmreqs.dispFinalMessage()[source]
paramonte._pmreqs.displayParaMonteBanner()[source]
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 of flags 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 of flags, 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. If pkg is missing or the package dependency does not exist within the ParaMonte library, the dictionary of all dependencies will be returned.

paramonte._pmreqs.displayDependencyVersionMessage()[source]
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 the pip 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