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
9c6940f3
Commit
9c6940f3
authored
Oct 20, 2016
by
Feng Xiao
Committed by
GitHub
Oct 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2264 from rshin/master
Place Python extensions correctly in Bazel build.
parents
008b5a22
7c913d82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
BUILD
BUILD
+4
-4
message.cc
python/google/protobuf/pyext/message.cc
+4
-0
No files found.
BUILD
View file @
9c6940f3
...
@@ -577,7 +577,7 @@ py_library(
...
@@ -577,7 +577,7 @@ py_library(
)
)
cc_binary(
cc_binary(
name = "internal/_api_implementation.so",
name = "
python/google/protobuf/
internal/_api_implementation.so",
srcs = ["python/google/protobuf/internal/api_implementation.cc"],
srcs = ["python/google/protobuf/internal/api_implementation.cc"],
copts = COPTS + [
copts = COPTS + [
"-DPYTHON_PROTO2_CPP_IMPL_V2",
"-DPYTHON_PROTO2_CPP_IMPL_V2",
...
@@ -591,7 +591,7 @@ cc_binary(
...
@@ -591,7 +591,7 @@ cc_binary(
)
)
cc_binary(
cc_binary(
name = "pyext/_message.so",
name = "py
thon/google/protobuf/py
ext/_message.so",
srcs = glob([
srcs = glob([
"python/google/protobuf/pyext/*.cc",
"python/google/protobuf/pyext/*.cc",
"python/google/protobuf/pyext/*.h",
"python/google/protobuf/pyext/*.h",
...
@@ -653,8 +653,8 @@ py_proto_library(
...
@@ -653,8 +653,8 @@ py_proto_library(
data = select({
data = select({
"//conditions:default": [],
"//conditions:default": [],
":use_fast_cpp_protos": [
":use_fast_cpp_protos": [
":internal/_api_implementation.so",
":
python/google/protobuf/
internal/_api_implementation.so",
":pyext/_message.so",
":py
thon/google/protobuf/py
ext/_message.so",
],
],
}),
}),
default_runtime = "",
default_runtime = "",
...
...
python/google/protobuf/pyext/message.cc
View file @
9c6940f3
...
@@ -1905,7 +1905,11 @@ static PyObject* CopyFrom(CMessage* self, PyObject* arg) {
...
@@ -1905,7 +1905,11 @@ static PyObject* CopyFrom(CMessage* self, PyObject* arg) {
// get OOM errors. The protobuf APIs do not provide any tools for processing
// get OOM errors. The protobuf APIs do not provide any tools for processing
// protobufs in chunks. If you have protos this big you should break them up if
// protobufs in chunks. If you have protos this big you should break them up if
// it is at all convenient to do so.
// it is at all convenient to do so.
#ifdef PROTOBUF_PYTHON_ALLOW_OVERSIZE_PROTOS
static
bool
allow_oversize_protos
=
true
;
#else
static
bool
allow_oversize_protos
=
false
;
static
bool
allow_oversize_protos
=
false
;
#endif
// Provide a method in the module to set allow_oversize_protos to a boolean
// Provide a method in the module to set allow_oversize_protos to a boolean
// value. This method returns the newly value of allow_oversize_protos.
// value. This method returns the newly value of allow_oversize_protos.
...
...
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