Skip to content

Commit 352a0bb

Browse files
authored
Merge pull request #60 from Parallel-NetCDF/quick-install
add instructions for quick install
2 parents 045f6e2 + 0ea8f79 commit 352a0bb

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

Diff for: .github/workflows/pnetcdf_c_master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 60
2121
env:
22-
MPICH_VERSION: 4.2.0
22+
MPICH_VERSION: 4.2.2
2323
MPICH_DIR: ${{ github.workspace }}/mpich-install
2424
PNETCDF_VERSION: repo
2525
PNETCDF_DIR: ${{ github.workspace }}/PnetCDF-install

Diff for: .github/workflows/pnetcdf_c_official.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 60
2121
env:
22-
MPICH_VERSION: 4.2.0
22+
MPICH_VERSION: 4.2.2
2323
MPICH_DIR: ${{ github.workspace }}/mpich-install
2424
PNETCDF_VERSION: 1.13.0
2525
PNETCDF_DIR: ${{ github.workspace }}/PnetCDF-install

Diff for: README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,19 @@ scalable I/O performance.
1212
### Software Dependencies
1313
* Python 3.9 or later.
1414
* [numpy](http://www.numpy.org/) Python package.
15-
* MPI C library and Python package, [mpi4py](https://mpi4py.readthedocs.io/en/stable/install.html).
16-
* [PnetCDF C library](https://github.com/Parallel-netCDF/PnetCDF), built with shared libraries.
15+
* MPI C library and Python package,
16+
[mpi4py](https://mpi4py.readthedocs.io/en/stable/install.html).
17+
+ Note when using mpi4py 4.0 and MPICH, MPICH version 4.2.2 and later is
18+
required.
19+
* [PnetCDF C library](https://github.com/Parallel-netCDF/PnetCDF), built with
20+
shared libraries.
21+
22+
### Quick Installation
23+
* Make sure you have a working MPI and PnetCDF-C software installed.
24+
* Run pip command below to install PnetCDF-Python library from PyPI:
25+
```
26+
CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install pnetcdf
27+
```
1728

1829
### Developer Installation
1930
* Clone this GitHub repository

Diff for: docs/source/installation/install.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ Installation
66
Quick Install
77
===================================
88

9-
Quick installation via pip install is currently unavailable as this library has not yet been uploaded to PyPI.
10-
Please follow building from source instructions provided below to set up the library.
9+
Software Requirements
10+
- PnetCDF C library (built with shared libraries) and MPI C library
11+
12+
Install PnetCDF-python library from PyPI
13+
.. code-block:: bash
14+
15+
$ CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install pnetcdf
16+
1117
1218
Install from Source
1319
============================================

0 commit comments

Comments
 (0)