bout_install
Python package to install BOUT++ and its dependencies.
NOTE: This package is meant as a "last resort" to install BOUT++, for example when you are not a
rootuser, and you are trying to install on a "tricky" system. Otherwise BOUT++ can easily be installed using docker or installed as explained in the BOUT ++ documentation .
Getting Started
bout_install is a lightweight package, and requires only python3,
requests and an internet connection to run.
Building BOUT++ and dependencies can be done by executing
from bout_install import install_bout
install_bout(config_path=None, add_to_bashrc=False)
or from command-line
bout_install --help
which returns
usage: bout_install [-h] [-c CONFIG] [-a]
Install BOUT++ with dependencies
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Path to the configuration file. Default is
/path/to/bout_install/bout_install/config.ini
-a, --add_to_bashrc If set, paths to binaries and libraries of
dependencies will be added to .bashrc. Default is
false
This will build BOUT++ and its dependencies according to the content of
config.ini:
[bout_options]
# Let these be empty for default behavior
# Read docstring of InstallerUsingGit.InstallerUsingGit.__init__ for details
# NOTE: Commit 8567b2d5bb5f4b70face0b8d0849fc1bbafbbdb0 is known to work
git_dir =
checkout =
enable_checks = no
enable_optimize = 3
[install_options]
# If packages not residing in local should be used
use_preinstalled = false
# Let these be empty for default behavior
# Read docstring of Installer.Installer.setup_install_dirs for details
main_dir =
install_dir =
local_dir =
examples_dir =
[required]
fftw = true
hdf5 = true
mpi = true
netcdf = true
[optional]
cmake = false
ffmpeg = false
gcc = false
slepc = true
sundials = true
# NOTE: PETSc is installed if slepc is true
petsc = false
[versions]
cmake = 3.7.2
ffmpeg = 3.1.4
fftw = 3.3.6-pl2
gcc = 6.1.0
hdf5 = 1.10.1
mpi = 3.2
nasm = 2.13.03
netcdf = 4.4.1.1
netcdf_cxx = 4.3.0
# NOTE: Only certain PETSc versions are supported by BOUT++
petsc = 3.10.0
# NOTE: Sundials 2.7.0 have given openmp problems
sundials = 2.6.2
# NOTE: Must correspond to the PETSc version
slepc = 3.10.0
yasm = 1.3.0
x264 = x264-snapshot-20180709-2245-stable
Installing from pip
The package can be installed from pip:
pip install bout-install
Installing from source
Alternatively it can be installed from source
python setup.py install
Running the tests
The test suite can be executed through pytest or through codecov pytest-cov.
Installation through
pip install pytest
or
pip install codecov pytest-cov
and run with
pytest
or
pytest --cov=./
respectively
NOTE: Due to time constraints of automatic testing with Travis, the unittests have been "blinded" by adding a "." in front of the name. In this way
pytestwill ignore those test. "Un-blind" them by removing the leading " ." in order to run them.
License
This project is licensed under the GNU Lesser General Public License - see the LICENSE file for details
Acknowledgments
- The BOUT++ team for fast and accurate response on the issue tracker and slack-channel
Metadata
Release files for bout-install 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bout_install-0.1.9.tar.gz | 23.8 kB | Without provenance | Details for bout_install-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bout_install-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for bout_install-0.1.9-py3-none-any.whl |
Total release size: 58.2 kB
Release files / bout_install-0.1.9.tar.gz
| Download URL | bout_install-0.1.9.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
443c9363ce49b336615ee98c99f26c5aec449733492fe73e4c302da4e9178185
|
|
BLAKE2b-256 checksum How to use checksums |
3988168d359c190ec8a292a9fe9bc9cd25fcf827764076a935556381bcd34d32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / bout_install-0.1.9-py3-none-any.whl
| Download URL | bout_install-0.1.9-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
548b85e960f456ee299864ce0e8d2a5c2ff0aaba02f5ffa91875d3a271a53491
|
|
BLAKE2b-256 checksum How to use checksums |
ae37fa09330354ff3e8a4e1c8c5fe9fe1d45f5012122084d213850af80cc18a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for bout-install 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.