Skip to content

Align dependency library versions in building and running stage #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pnetcdf_c_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install PnetCDF-Python
run: |
export CC=$MPICH_DIR/bin/mpicc
python setup.py install
pip install --no-build-isolation -e .

- name: Test PnetCDF-Python
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pnetcdf_c_official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Install PnetCDF-Python
run: |
export CC=$MPICH_DIR/bin/mpicc
python setup.py install
pip install --no-build-isolation -e .

- name: Test PnetCDF-Python
run: |
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ applications that require parallel access to netCDF files.
### Developer Installation
* Clone this GitHub repository
* Make sure the above dependent software are installed.
* In addition, [Cython](http://cython.org/) is required for developer
installation.
* In addition, [Cython](http://cython.org/), [packaging](https://pypi.org/project/packaging/) and ['wheel'](https://pypi.org/project/wheel/) are required for developer installation.
* Set the environment variable `PNETCDF_DIR` to PnetCDF's installation path.
* Make sure utility program `pnetcdf-config` is available in `$PNETCDF_DIR/bin`.
* Run command below to install.
```
CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir pip install .
CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir pip install --no-build-isolation -e .
```
* Testing
+ Run command `make check` to test all the programs available in folders
Expand Down
6 changes: 3 additions & 3 deletions docs/source/installation/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Building PnetCDF-python from source
$ pip install --upgrade pip

# install Python libraries
$ pip install numpy Cython setuptools
$ env MPICC=/path/to/mpicc pip install mpi4py
$ pip install numpy Cython setuptools wheel packaging
$ env CC=/path/to/mpicc pip install mpi4py

# download PnetCDF-python source code
$ git clone [email protected]:Parallel-NetCDF/PnetCDF-Python.git
$ cd PnetCDF-Python

# install PnetCDF-python
env CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install -v .
env CC=/path/to/mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install --no-build-isolation -e .
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ requires = [
"numpy",
"setuptools>=65",
"mpi4py>=3.1.4",
"packaging>=23.1"
"packaging>=23.1",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
Expand Down
Loading