From 2bbd77027269165b1fc0c2e41919ec826fbc13f0 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 9 Aug 2019 16:35:59 +0100 Subject: [PATCH] Python3 install: Use pip3 rather than pip --- CMakeLists.txt | 6 +++--- INSTALL | 6 +++--- README.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5848ba79..e3878778b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,7 @@ ecbuild_add_option( FEATURE PYTHON REQUIRED_PACKAGES "Python VERSION 2.6 NO_LIBS" NumPy ) # 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 ) set( HAVE_PYTHON 0 ) endif() @@ -387,7 +387,7 @@ add_subdirectory( fortran ) if (PYTHON_VERSION_MAJOR GREATER 2) # 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 ) set( ECCODES_PYTHON_DIR "python3" ) else() @@ -479,6 +479,6 @@ 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(" | $ pip3 install eccodes-python |") ecbuild_info(" +--------------------------------------+") ecbuild_info("") diff --git a/INSTALL b/INSTALL index 6162c7992..299775237 100644 --- a/INSTALL +++ b/INSTALL @@ -33,10 +33,10 @@ However it requires that cmake be installed on your system. > ctest > make install -To add the Python3 bindings, use pip install from PyPI as follows: - > pip install eccodes-python +To add the Python3 bindings, use pip3 install from PyPI as follows: + > pip3 install eccodes-python 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: diff --git a/README.md b/README.md index 4e9e9ac9e..d84fc865b 100644 --- a/README.md +++ b/README.md @@ -53,13 +53,13 @@ INSTALLATION 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 ``` - 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 ```