1
Description: workaround issue 271 upstream
2
Author: Thomas Koch <thomas@koch.ro
3
Bug: http://code.google.com/p/protobuf/issues/detail?id=271
4
Last-Update: 2011-11-07
5
Index: protobuf/python/README.txt
6
===================================================================
7
--- protobuf.orig/python/README.txt 2013-08-13 17:00:57.056444999 -0400
8
+++ protobuf/python/README.txt 2013-08-13 17:00:57.052445109 -0400
10
$ python setup.py install
12
This step may require superuser privileges.
13
- NOTE: To use C++ implementation, you need to install C++ protobuf runtime
14
- library of the same version and export the environment variable before this
15
- step. See the "C++ Implementation" section below for more details.
16
+ NOTE: To use C++ implementation, you need to export the environment variable
17
+ before this step. See the "C++ Implementation" section below for more
23
The C++ implementation for Python messages is built as a Python extension to
24
improve the overall protobuf Python performance.
26
-To use the C++ implementation, you need to:
27
-1) Install the C++ protobuf runtime library, please see instructions in the
29
-2) Export an environment variable:
30
+To use the C++ implementation, export an environment variable:
32
$ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
34
Index: protobuf/python/setup.py
35
===================================================================
36
--- protobuf.orig/python/setup.py 2013-08-13 17:00:57.056444999 -0400
37
+++ protobuf/python/setup.py 2013-08-13 17:00:57.052445109 -0400
39
[ "google/protobuf/pyext/python_descriptor.cc",
40
"google/protobuf/pyext/python_protobuf.cc",
41
"google/protobuf/pyext/python-proto2.cc" ],
42
- include_dirs = [ "." ],
43
- libraries = [ "protobuf" ]))
44
+ include_dirs = [ "../src", "." ],
45
+ libraries = [ "protobuf" ],
46
+# runtime_library_dirs = [ "../src/.libs" ],
47
+ library_dirs = [ "../src/.libs" ]))
49
setup(name = 'protobuf',