diff --git a/.gitignore b/.gitignore index 96fb8e7..34a0f5a 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ env/ */pncpy/*.c core.* build/ +*.whl !docs/build/ # egg *.eggs/ diff --git a/README.md b/README.md index 1c89964..3e32509 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ At a granular level, PnetCDF-python is a library that consists of the following * To work with the in-development version, you need to install [Cython](http://cython.org/) ### Installation -If you already have a working MPI and the mpicc compiler wrapper is on your search path, you can use pip: +Currently our PyPI wheels don't cover all systems. If you already have a working MPI with the mpicc compiler wrapper is on your search path and pnetcdf-C installation, you can use pip: ```sh -env CC=mpicc pip install pncpy +CC=mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install pncpy==0.0.3 ``` ### Development installation @@ -37,7 +37,7 @@ env CC=mpicc pip install pncpy * (Optional) create python virtual environment and activate it -* Run `env CC=mpicc python3 setup.py build`, then `env CC=mpicc python3 setup.py install` +* Run `CC=mpicc python3 setup.py build`, then `CC=mpicc python3 setup.py install` ### Current build status The project is under active development. Below is a summary of the current implementation status diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index e6157cc..2741c2c 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/doctrees/installation/install.doctree b/docs/build/doctrees/installation/install.doctree index 2721c3b..b9c84b0 100644 Binary files a/docs/build/doctrees/installation/install.doctree and b/docs/build/doctrees/installation/install.doctree differ diff --git a/docs/build/html/_sources/installation/install.rst.txt b/docs/build/html/_sources/installation/install.rst.txt index 169e261..37bb7d6 100644 --- a/docs/build/html/_sources/installation/install.rst.txt +++ b/docs/build/html/_sources/installation/install.rst.txt @@ -22,12 +22,22 @@ Building PnetCDF C library $ cd pnetcdf-1.12.3 # configure - $ ./configure --prefix=/path/to/install-dir --enable-shared CC=mpicc + $ ./configure --prefix=/path/to/install-dir --enable-shared --disable-fortran --disable-cxx CC=mpicc # build and install $ make $ make install +Installation +=================================== + +Currently our PyPI wheels don't cover all systems. If you already have a working MPI with the mpicc compiler wrapper is on your search path and pnetcdf-C installation, you can use pip: + +.. code-block:: bash + + $ CC=mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install pncpy==0.0.3 + + Building PnetCDF-python from source =================================== @@ -35,7 +45,7 @@ Building PnetCDF-python from source # activate an virtual environment (optional) # use Python 3.9 or later - $ python3 -m venv env + $ python -m venv env $ source env/bin/activate $ pip install --upgrade pip @@ -48,7 +58,7 @@ Building PnetCDF-python from source $ cd pnetcdf-python # install PnetCDF-python - env CC=mpicc python3 setup.py build - env CC=mpicc python3 setup.py install + CC=mpicc python setup.py build + CC=mpicc python setup.py install diff --git a/docs/build/html/index.html b/docs/build/html/index.html index 055e222..3528d0a 100644 --- a/docs/build/html/index.html +++ b/docs/build/html/index.html @@ -102,6 +102,7 @@
Currently our PyPI wheels don’t cover all systems. If you already have a working MPI with the mpicc compiler wrapper is on your search path and pnetcdf-C installation, you can use pip:
+$ CC=mpicc PNETCDF_DIR=/path/to/pnetcdf/dir/ pip install pncpy==0.0.3
+# activate an virtual environment (optional)
# use Python 3.9 or later
-$ python3 -m venv env
+$ python -m venv env
$ source env/bin/activate
$ pip install --upgrade pip
@@ -139,8 +147,8 @@ Building PnetCDF-python from source cd pnetcdf-python
# install PnetCDF-python
-env CC=mpicc python3 setup.py build
-env CC=mpicc python3 setup.py install
+CC=mpicc python setup.py build
+CC=mpicc python setup.py install