diff --git a/GRPC_install_instructions.txt b/GRPC_install_instructions.txt deleted file mode 100644 index 7a49039f90..0000000000 --- a/GRPC_install_instructions.txt +++ /dev/null @@ -1,97 +0,0 @@ -########## Windows using vcpkg ############################################################################# -# gRPC should be built once and only updated when there is a specific requirement to do so -# So Step 1-4 are rarely done. -# While Step 5 is instructions for configuring the nightly-build of ResInsight -# Step 5 is not fully described and assumes knowledge of how to build ResInsight normally. See README.md -############################################################################################################ -1. Clone VCPKG -git clone https://github.com/microsoft/vcpkg.git -2. Install VCPKG from within vcpkg folder: -.\boostrap-vcpkg.bat -3. Install GRPC -.\vcpkg install grpc --triplet x64-windows - -4. Python -* Install Python 3 -* Execute the following using Python3 - python -m pip install grpcio-tools -* Make sure the python executable is found by setting -DRESINSIGHT_GRPC_PYTHON_EXECUTABLE=LOCATION_OF_PYTHON.EXE - -5. Run cmake with the following statements: --DRESINSIGHT_ENABLE_GRPC=true --DRESINSIGHT_GRPC_PYTHON_EXECUTABLE=LOCATION_OF_PYTHON.EXE --DCMAKE_TOOLCHAIN_FILE=LOCATION_OF_VCPKG/scripts/buildsystems/vcpkg.cmake -NOTE: When using the CMake gui, you need to select "Specify toolchain for cross-compiling" - and enter the "LOCATION_OF_VCPKG/scripts/buildsystems/vcpkg.cmake" there. - This path ends up in the CMAKE_TOOLCHAIN_FILE variable. If you do not, protobuffers are not found. --A x64 - -############ Linux as STANDALONE GPRC #################################################################### -# gRPC should be built once and only updated when there is a specific requirement to do so -# So Step 1-5 are rarely done. -# While Step 6 is instructions for configuring the nightly-build of ResInsight -# Step 6 is not fully described and assumes knowledge of how to build ResInsight normally. See README.md -########################################################################################################## - -######################################################################################################### -# 1. install autotools, autoconf and libtool with your distributions package manager. -# -# On Centos 6 you will need a newer Python and newer version of GCC than the standard version -# ResInsight AND gRPC will build with devtoolset-3+ but apparently devtoolset-3 is now gone -# So you will need to install devtoolset-6, devtoolset-7 or devtoolset-8. -# It makes sense to install devtoolset-6* (with asterix) to get all the necessary devtoolset packages -# You will also need a version of Python 3.5 -# -########################################################################################################## - -sudo yum install autotools autoconf libtool devtoolset-6* rh-python35 - -################################################################### -# 2. Enable compiler and Python on Centos 6 (on other distributions, this may be different) -################################################################### - -scl enable devtoolset-6 rh-python35 bash - -################################################################################################################ -# 3. Run grpc install script and install to a user-writable directory. I.e, from within the ResInsight folder: -# Most of this runs fine without root. But unfortunately grpc currently fails to install the C++ library without root. -# So the script is required to be run as root even if the provided folders are writeable by the user -# -# WARNING: As of grpc 1.21.1 a long install directory may cause you to trigger a gRPC bug. -# The installation directory is the second argument (/opt/grpc in the example, which isn't too long). -# -# Bug: https://github.com/grpc/grpc/issues/14844 -# A workaround patch is available in the issue, but the easiest thing to do is to ensure a short install path -################################################################################################################ - -sudo ./build-grpc-linux.sh /tmp/grpc /opt/grpc - -############################################################################## -# Python GRPC module, OPTION 1 -# 5a. Install grpcio-tools for Python as root user. If you cannot install python packages as root user, see 4b. -# NOTE: IF THIS FAILS WITH AN ERROR MESSAGE FROM PIP ABOUT -# "YOU SHOULD CONSIDER UPGRADING VIA 'python -m pip install --upgrade pip'" -# Then performing this should fix the problem. -# It IS possible to upgrade pip as a regular user: python -m pip install --user --upgrade pip -############################################################################## - -sudo python -m pip install grpcio-tools - -############################################################################## -# Python GRPC module, OPTION 2 -# 5b. Install grpcio-tools for Python as regular user. -# NOTE: IF THIS FAILS WITH AN ERROR MESSAGE FROM PIP ABOUT -# "YOU SHOULD CONSIDER UPGRADING VIA 'python -m pip install --upgrade pip'" -# Then performing this should fix the problem. -############################################################################## - -python -m pip install --user grpcio-tools - -################################################################################# -# 6. Building ResInsight with GRPC enabled: -# Run cmake making sure of the following: -# * RESINSIGHT_ENABLE_GRPC = true -# * RESINSIGHT_GRPC_INSTALL_PREFIX is set to the Grpc install folder -# * RESINSIGHT_GRPC_PYTHON_EXECUTABLE set to a good python 3 -################################ -See regular build instructions for the rest diff --git a/build_grpc_linux.sh b/build_grpc_linux.sh deleted file mode 100755 index 749c236d30..0000000000 --- a/build_grpc_linux.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -if [ $# -lt 2 ]; then - echo "You need to provide two arguments:" - echo " 1. The folder in which to clone and build grpc" - echo " 2. The folder in which to install grpc" - echo "Both folders need to be user writeable but will be created if they do not exist" - echo "Example: " - echo " build_grpc.sh /tmp/grpc `pwd`/GrpcInstall" - exit 1 -fi - -parentdir="$(dirname $1)" -if [ -d $1 ]; then - if ! [ -w $1 ]; then - echo "$1 exists and you don't have the permissions to write to it" - exit 1 - fi -elif [ -d ${parentdir} ]; then - if ! [ -w ${parentdir} ]; then - echo "You don't have the permissions to write to ${parentdir}" - exit 1 - fi -else - echo "${parentdir} does not exist" - exit 1 -fi - -if [ -d "$2" ]; then - if ! [ -w "$2" ]; then - echo "You don't have the permissions to write to $2" - exit 1 - fi -else - mkdir -p "$2" || { echo "Failed to create $2. Make sure you have write permissions." ; exit 1; } -fi - - -echo "Cloning GRPC repository to: $1" -echo "Installing to: $2" - -git clone https://github.com/grpc/grpc.git $1 -cd $1 -git checkout v1.21.1 -git submodule init -git submodule update -export PROTOBUF_CONFIG_OPTS="--prefix=$2" -make prefix=$2 -echo "Installing GRPC to $2" -make install prefix=$2 -cd third_party/protobuf -make install - diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9eb16f02e2..0000000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -grpcio -grpcio-tools -protobuf -m2r \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2357467495..0000000000 --- a/setup.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[pep8] -max-line-length=100 -exclude=PythonExamples -ignore=E402 \ No newline at end of file