安装bout++及其依赖项的python包

bout-install的Python项目详细描述


Build Statuscodecovpypi packagePythonPEP8License

关于安装

要安装的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是一个轻量级包,只需要python3requests和要运行的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

运行测试

测试套件可以通过pytestcodecov 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有关详细信息的文件

致谢

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何使用Ibatis在插入时返回ID(使用返回关键字)   java(org.hibernate.TransactionException)org。冬眠TransactionException:事务未成功启动   java小程序jwindow始终位于JNLP顶部   在Java中重新解析JSON对象?   java单击后将ListView数据移动到新屏幕   Mule ESB中的java WSA寻址特性   Java,对象编程:获取返回0值的方法   hibernate的Java通用问题,如何处理T get(K id)   java在使用超级CSV读取CSV时忽略引用   ssh使用Java远程运行命令   java如何向具体用户发送websocket消息?   在JAVA中,我可以在不指定的情况下使用条件运算符吗?