安装bout++及其依赖项的python包
bout-install的Python项目详细描述
关于安装
要安装的python包BOUT++及其 依赖关系。
NOTE: This package is meant as a "last resort" to install BOUT++, for example when you are not a
root
user, 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 .
开始
bout_install
是一个轻量级包,只需要python3
,
requests
和要运行的Internet连接。
构建BOUT++
和依赖项可以通过执行
frombout_installimportinstall_boutinstall_bout(config_path=None,add_to_bashrc=False)
或从命令行
bout_install --help
返回
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
这将根据
^{
[bout_options]# Let these be empty for default behavior# Read docstring of InstallerUsingGit.InstallerUsingGit.__init__ for details# NOTE: Commit 8567b2d5bb5f4b70face0b8d0849fc1bbafbbdb0 is known to workgit_dir=checkout=enable_checks=noenable_optimize=3[install_options]# If packages not residing in local should be useduse_preinstalled=false# Let these be empty for default behavior# Read docstring of Installer.Installer.setup_install_dirs for detailsmain_dir=install_dir=local_dir=examples_dir=[required]fftw=truehdf5=truempi=truenetcdf=true[optional]cmake=falseffmpeg=falsegcc=falseslepc=truesundials=true# NOTE: PETSc is installed if slepc is truepetsc=false[versions]cmake=3.7.2ffmpeg=3.1.4fftw=3.3.6-pl2gcc=6.1.0hdf5=1.10.1mpi=3.2nasm=2.13.03netcdf=4.4.1.1netcdf_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 problemssundials=2.6.2# NOTE: Must correspond to the PETSc versionslepc=3.10.0yasm=1.3.0x264=x264-snapshot-20180709-2245-stable
从PIP安装
可以从pip
:
pip install bout-install
从源安装
或者,也可以从源代码安装它
python setup.py install
运行测试
测试套件可以通过pytest
或codecov pytest-cov
执行。
安装到
pip install pytest
或
pip install codecov pytest-cov
并使用
pytest
或
pytest --cov=./
分别
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
pytest
will ignore those test. "Un-blind" them by removing the leading " ." in order to run them.
许可证
该项目是根据GNU Lesser通用公共许可证授权的-参见 LICENSE有关详细信息的文件
致谢
- 对于fast和 准确响应 issue tracker和 slack-channel