Add script to install all Python modules

pull/23243/head
Richard Belleville 5 years ago
parent 08e117ae80
commit f22e247183
  1. 25
      tools/distrib/install_all_python_modules.sh

@ -0,0 +1,25 @@
#!/bin/bash
echo "It's recommended that you run this script from a virtual environment."
set -e
BASEDIR=$(dirname "$0")
BASEDIR=$(realpath "$BASEDIR")/../..
(cd "$BASEDIR";
pip install cython;
python setup.py install;
pushd tools/distrib/python/grpcio_tools;
../make_grpcio_tools.py
GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
popd;
pushd src/python;
for PACKAGE in ./grpcio_*; do
pushd "${PACKAGE}";
python setup.py preprocess;
python setup.py install;
popd;
done
popd;
)
Loading…
Cancel
Save