Metadata-Version: 2.1
Name: pypestutils
Version: 0.1.0
Summary: PEST utilities for MODFLOW
Author-email: Jeremy White <jtwhite1000@gmail.com>, Mike Taves <mwtoews@gmail.com>
License: Unlicense
Project-URL: Repository, https://github.com/pypest/pypestutils
Keywords: PEST,MODFLOW,groundwater,model
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Fortran
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Hydrology
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pandas
Provides-Extra: optional
Requires-Dist: flopy; extra == "optional"
Requires-Dist: pyemu; extra == "optional"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"

# 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:
```bash
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 .
```
