mirror of https://github.com/ecmwf/eccodes.git
Python3 messages for installation
This commit is contained in:
parent
dc40707359
commit
fb6e279f31
|
@ -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()
|
||||
|
|
2
INSTALL
2
INSTALL
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue