Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
aa0e44bd
Commit
aa0e44bd
authored
9 years ago
by
Tim Emiola
Committed by
Tim Emiola
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updates the INSTALL section for python
parent
0bdfe8b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/README.md
+24
-39
24 additions, 39 deletions
src/python/README.md
with
24 additions
and
39 deletions
src/python/README.md
+
24
−
39
View file @
aa0e44bd
gRPC Python
gRPC Python
=========
=========
The Python facility of gRPC.
The Python facility of gRPC.
Status
Status
-------
-------
Alpha : Ready for early adopters
Alpha : Ready for early adopters
Prerequisites
PREREQUISITES
-----------------------
-------------
-
Python 2.7, virtualenv, pip
Python 2.7, virtualenv, pip, libprotobuf-dev, and libprotoc-dev.
-
[
homebrew
][]
on Mac OS X,
[
linuxbrew
][]
on Linux. These simplify the installation of the gRPC C core.
Building from source
INSTALLATION
----------------------
-------------
On Mac OS X, install
[
homebrew
][]
. On Linux, install
[
linuxbrew
][]
.
Run the following command to install gRPC Python.
```
sh
$
curl
-fsSL
https://goo.gl/getgrpc | bash
-s
python
```
This will download and run the
[
gRPC install script
][]
, then install the latest version of the gRPC Python package. It also installs the Protocol Buffers compiler (_protoc_) and the gRPC _protoc_ plugin for python.
BUILDING FROM SOURCE
---------------------
-
Clone this repository
-
Build the gRPC core from the root of the
-
Build the gRPC core from the root of the
[
gRPC
g
it repo
](
https://github.com/grpc/grpc
)
[
gRPC
G
it repo
sitory
](
https://github.com/grpc/grpc
)
```
```
$ make shared_c static_c
$ make shared_c static_c
```
```
...
@@ -29,40 +34,16 @@ $ make shared_c static_c
...
@@ -29,40 +34,16 @@ $ make shared_c static_c
$ tools/run_tests/build_python.sh
$ tools/run_tests/build_python.sh
```
```
TESTING
Testing
-------
-----------------------
-
Use run_python.sh to run gRPC as it was installed into the virtual environment
-
Use run_python.sh to run gRPC as it was installed into the virtual environment
```
```
$ tools/run_tests/run_python.sh
$ tools/run_tests/run_python.sh
```
```
PACKAGING
Installing
---------
-----------------------
-
Install the gRPC core
-
[
Debian package
](
https://github.com/grpc/grpc/releases
)
```
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc_0.5.0_amd64.deb
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc-dev_0.5.0_amd64.deb
$ sudo dpkg -i libgrpc_0.5.0_amd64.deb libgrpc-dev_0.5.0_amd64.deb
```
-
[
From source
](
https://github.com/grpc/grpc/blob/master/INSTALL
)
-
Install gRPC Python's dependencies
```
$ pip install -r src/python/requirements.txt
```
-
Install gRPC Python
```
$ pip install src/python/src
```
Packaging to PyPI
-----------------------
-
Install packaging dependencies
-
Install packaging dependencies
```
```
...
@@ -73,3 +54,7 @@ $ pip install setuptools twine
...
@@ -73,3 +54,7 @@ $ pip install setuptools twine
```
```
$ ../../tools/distrib/python/submit.py
$ ../../tools/distrib/python/submit.py
```
```
[
homebrew
]:
http://brew.sh
[
linuxbrew
]:
https://github.com/Homebrew/linuxbrew#installation
[
gRPC install script
]:
https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment