Python3 messages for installation

This commit is contained in:
Shahram Najm 2019-06-12 18:38:12 +01:00
parent dc40707359
commit fb6e279f31
3 changed files with 15 additions and 2 deletions

View File

@ -474,6 +474,13 @@ ecbuild_info(" | ecCodes version ${ECCODES_VERSION} |")
ecbuild_info(" +--------------------------+")
ecbuild_info("")
if (HAVE_PYTHON AND PYTHON_VERSION_MAJOR GREATER 2)
ecbuild_info("Please note: For Python3 bindings:\n\tFirst install ecCodes and then install from PyPI with::\n\tpip install eccodes-python\n")
if (PYTHON_FOUND AND PYTHON_VERSION_MAJOR EQUAL 3)
ecbuild_info(" +--------------------------------------+")
ecbuild_info(" | Please note: |")
ecbuild_info(" | For Python3 support, first install |")
ecbuild_info(" | ecCodes and then install the Python |")
ecbuild_info(" | bindings from PyPI with: |")
ecbuild_info(" | $ pip install eccodes-python |")
ecbuild_info(" +--------------------------------------+")
ecbuild_info("")
endif()

View File

@ -34,6 +34,8 @@ However it requires that cmake be installed on your system.
> make install
To add the Python3 bindings, use pip install from PyPI as follows:
> pip install eccodes-python
or
> pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
You can also pass options to the cmake command above. Some typical examples are:

View File

@ -53,6 +53,10 @@ INSTALLATION
```
To add the Python3 bindings, use pip install from PyPI as follows:
```
pip install eccodes-python
```
or
```
pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
```