mirror of https://github.com/ecmwf/eccodes.git
Python3 install: Use pip3 rather than pip
This commit is contained in:
parent
37c9bdf84e
commit
2bbd770272
|
@ -110,7 +110,7 @@ ecbuild_add_option( FEATURE PYTHON
|
||||||
REQUIRED_PACKAGES "Python VERSION 2.6 NO_LIBS" NumPy
|
REQUIRED_PACKAGES "Python VERSION 2.6 NO_LIBS" NumPy
|
||||||
)
|
)
|
||||||
# For Python2 we build our own bindings (using SWIG) in the build directory
|
# For Python2 we build our own bindings (using SWIG) in the build directory
|
||||||
# but for Python3 one has to add the eccodes-python from pip AFTER the install
|
# but for Python3 one has to add the eccodes-python from pip3 AFTER the install
|
||||||
if( PYTHON_VERSION_MAJOR EQUAL 3 )
|
if( PYTHON_VERSION_MAJOR EQUAL 3 )
|
||||||
set( HAVE_PYTHON 0 )
|
set( HAVE_PYTHON 0 )
|
||||||
endif()
|
endif()
|
||||||
|
@ -387,7 +387,7 @@ add_subdirectory( fortran )
|
||||||
|
|
||||||
if (PYTHON_VERSION_MAJOR GREATER 2)
|
if (PYTHON_VERSION_MAJOR GREATER 2)
|
||||||
# Python3 is no longer built with SWIG but is a separate
|
# Python3 is no longer built with SWIG but is a separate
|
||||||
# package. User should do: pip install eccodes-python
|
# package. User should do: pip3 install eccodes-python
|
||||||
#add_subdirectory( python3 )
|
#add_subdirectory( python3 )
|
||||||
set( ECCODES_PYTHON_DIR "python3" )
|
set( ECCODES_PYTHON_DIR "python3" )
|
||||||
else()
|
else()
|
||||||
|
@ -479,6 +479,6 @@ ecbuild_info(" | Please note: |")
|
||||||
ecbuild_info(" | For Python3 support, first install |")
|
ecbuild_info(" | For Python3 support, first install |")
|
||||||
ecbuild_info(" | ecCodes and then install the Python |")
|
ecbuild_info(" | ecCodes and then install the Python |")
|
||||||
ecbuild_info(" | bindings from PyPI with: |")
|
ecbuild_info(" | bindings from PyPI with: |")
|
||||||
ecbuild_info(" | $ pip install eccodes-python |")
|
ecbuild_info(" | $ pip3 install eccodes-python |")
|
||||||
ecbuild_info(" +--------------------------------------+")
|
ecbuild_info(" +--------------------------------------+")
|
||||||
ecbuild_info("")
|
ecbuild_info("")
|
||||||
|
|
6
INSTALL
6
INSTALL
|
@ -33,10 +33,10 @@ However it requires that cmake be installed on your system.
|
||||||
> ctest
|
> ctest
|
||||||
> make install
|
> make install
|
||||||
|
|
||||||
To add the Python3 bindings, use pip install from PyPI as follows:
|
To add the Python3 bindings, use pip3 install from PyPI as follows:
|
||||||
> pip install eccodes-python
|
> pip3 install eccodes-python
|
||||||
or
|
or
|
||||||
> pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
|
> pip3 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:
|
You can also pass options to the cmake command above. Some typical examples are:
|
||||||
|
|
||||||
|
|
|
@ -53,13 +53,13 @@ INSTALLATION
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
To add the Python3 bindings, use pip install from PyPI as follows:
|
To add the Python3 bindings, use pip3 install from PyPI as follows:
|
||||||
```
|
```
|
||||||
pip install eccodes-python
|
pip3 install eccodes-python
|
||||||
```
|
```
|
||||||
or
|
or
|
||||||
```
|
```
|
||||||
pip install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
|
pip3 install --install-option="--prefix=/path/to/where/you/install/eccodes" eccodes-python
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue