aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/build_python.sh
blob: 36254127c97aa8ec7d99ddd3c922432b126afe9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -ex

# change to grpc repo root
cd $(dirname $0)/../..

make -j6

root=`pwd`
virtualenv python2.7_virtual_environment
ln -sf $root/include/grpc python2.7_virtual_environment/include/grpc
source python2.7_virtual_environment/bin/activate
pip install enum34==1.0.4 futures==2.2.0 protobuf==3.0.0-alpha-1
CFLAGS=-I$root/include LDFLAGS=-L$root/libs/opt pip install src/python/src