blob: 490a229d1d776a6f24c924f29a3d0759b3233e9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
gRPC Python
=========
The Python facility of gRPC.
Status
-------
Usable with limitations, Pre-Alpha
Prerequisites
-----------------------
Python 2.7, virtualenv, pip, libprotobuf-dev, and libprotoc-dev.
Building from source
----------------------
- Build the gRPC core from the root of the
[gRPC git repo](https://github.com/grpc/grpc)
```
$ make shared_c static_c
```
- Use build_python.sh to build the Python code and install it into a virtual environment
```
$ tools/run_tests/build_python.sh
```
Testing
-----------------------
- Use run_python.sh to run gRPC as it was installed into the virtual environment
```
$ tools/run_tests/run_python.sh
```
Installing
-----------------------
- [Install the gRPC core](https://github.com/grpc/grpc/blob/master/INSTALL)
- Install gRPC Python's dependencies
```
$ pip install -r requirements.txt
```
- Install gRPC Python
```
$ pip install src/python/src
```
|