Skip to main content

PEST utilities for MODFLOW

Project description

PyPestUtils

Suite of Python tools based on PEST utilities.

This package is currently in pre-alpha development, and is not suitable for use, but early adopters are welcome to have a go.

Installation

Easy way

Use pip to install a built distribution for Windows, Linux or macOS:

pip install pypestutils

to also include optional requirements use:

pip install pypestutils[optional]

From source

Installation from source requires a Fortran compiler and meson. Use the following sections to build a shared library of pestutils, which then needs to be copied into the module path pypestutils/lib/ to enable it to be found.

Build pestutils on Linux / macOS

A script that can be used to configure build and install the shared library is ./scripts/build_lib.sh.

Or manually:

meson setup builddir --prefix=$(pwd)/inst
meson compile -C builddir

# copy for Python module
mkdir pypestutils/lib
# for Linux
cp builddir/pestutils/libpestutils.so pypestutils/lib/
# for macOS
cp builddir/pestutils/libpestutils.dylib pypestutils/lib/
# for Windows via MSYS2
cp builddir/pestutils/pestutils.dll pypestutils/lib/

Build pestutils on Windows

There are two methods to compile Fortran code on Windows, using MSYS2 via bash or a conda environment via cmd. MSYS2 can use ./scripts/build_lib.sh similar to Linux or to use a conda environment with m2w64-gcc-fortran and meson and call .\scripts\build_lib.bat. On Windows, the shared library name is pestutils.dll, which needs to be copied into the module path pypestutils\lib\ to enable it to be found.

Install pypestutils

After a shared library of pestutils is compiled and placed into pypestutils/lib/ install an "editable" version of this Python package:

pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypestutils-0.1.0.tar.gz (12.1 MB view hashes)

Uploaded Source

Built Distributions

pypestutils-0.1.0-py3-none-win_amd64.whl (814.7 kB view hashes)

Uploaded Python 3 Windows x86-64

pypestutils-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.4 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

pypestutils-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (899.7 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

pypestutils-0.1.0-py3-none-macosx_11_0_arm64.whl (935.7 kB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

pypestutils-0.1.0-py3-none-macosx_10_9_x86_64.whl (1.6 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page