Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
03aaa041
Commit
03aaa041
authored
Apr 29, 2011
by
liujisi@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python CPP implementation now requires c++ libprotobuf installed before running
setup.py to fix RPATH problem.
parent
5a334282
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
README.txt
python/README.txt
+7
-4
setup.py
python/setup.py
+2
-4
No files found.
python/README.txt
View file @
03aaa041
...
...
@@ -63,9 +63,9 @@ Installation
$ python setup.py install
This step may require superuser privileges.
NOTE: To use C++ implementation, you need to
export the environment variabl
e
before this step. See the "C++ Implementation" section below for more
details.
NOTE: To use C++ implementation, you need to
install C++ protobuf runtim
e
library of the same version and export the environment variable before this
step. See the "C++ Implementation" section below for more
details.
Usage
=====
...
...
@@ -83,7 +83,10 @@ WARNING: This is EXPERIMENTAL and only available for CPython platforms.
The C++ implementation for Python messages is built as a Python extension to
improve the overall protobuf Python performance.
To use the C++ implementation, export an environment variable:
To use the C++ implementation, you need to:
1) Install the C++ protobuf runtime library, please see instructions in the
parent directory.
2) Export an environment variable:
$ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
...
...
python/setup.py
View file @
03aaa041
...
...
@@ -114,10 +114,8 @@ if __name__ == '__main__':
[
"google/protobuf/pyext/python_descriptor.cc"
,
"google/protobuf/pyext/python_protobuf.cc"
,
"google/protobuf/pyext/python-proto2.cc"
],
include_dirs
=
[
"../src"
,
"."
,
],
libraries
=
[
"protobuf"
],
runtime_library_dirs
=
[
"../src/.libs"
],
library_dirs
=
[
"../src/.libs"
]))
include_dirs
=
[
"."
],
libraries
=
[
"protobuf"
]))
setup
(
name
=
'protobuf'
,
version
=
'2.4.1-pre'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment