Skip to content
Snippets Groups Projects
Commit 7135ba96 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #6473 from jtattermusch/python_packages_fixes

Python packages fixes
parents 8c33c744 4e2f7727
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,10 @@ which $PYTHON || PYTHON=python ...@@ -48,7 +48,10 @@ which $PYTHON || PYTHON=python
which $PIP || PIP=pip which $PIP || PIP=pip
# TODO(jtattermusch): this shouldn't be required # TODO(jtattermusch): this shouldn't be required
${PIP} install --upgrade six pip # TODO(jtattermusch): run the command twice to workaround docker-on-overlay
# issue https://github.com/docker/docker/issues/12327
# (first attempt will fail when using docker with overlayFS)
${PIP} install --upgrade six pip || ${PIP} install --upgrade six pip
# At least one of the bdist packages has to succeed (whichever one matches the # At least one of the bdist packages has to succeed (whichever one matches the
# test machine, anyway). # test machine, anyway).
...@@ -58,6 +61,6 @@ done ...@@ -58,6 +61,6 @@ done
# TODO(jtattermusch): add a .proto file to the distribtest, generate python # TODO(jtattermusch): add a .proto file to the distribtest, generate python
# code from it and then use the generated code from distribtest.py # code from it and then use the generated code from distribtest.py
$PYTHON -m grpc.protoc.compiler $PYTHON -m grpc.tools.protoc
$PYTHON distribtest.py $PYTHON distribtest.py
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "src/compiler/python_generator.h" #include "src/compiler/python_generator.h"
#include "grpc/protoc/main.h" #include "grpc/tools/main.h"
int protoc_main(int argc, char* argv[]) { int protoc_main(int argc, char* argv[]) {
google::protobuf::compiler::CommandLineInterface cli; google::protobuf::compiler::CommandLineInterface cli;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
import sys import sys
from grpc.protoc import protoc_compiler from grpc.tools import protoc_compiler
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from libc cimport stdlib from libc cimport stdlib
cdef extern from "grpc/protoc/main.h": cdef extern from "grpc/tools/main.h":
int protoc_main(int argc, char *argv[]) int protoc_main(int argc, char *argv[])
def run_main(list args not None): def run_main(list args not None):
......
...@@ -45,13 +45,13 @@ import grpc_version ...@@ -45,13 +45,13 @@ import grpc_version
def protoc_ext_module(): def protoc_ext_module():
plugin_sources = [ plugin_sources = [
'grpc/protoc/main.cc', 'grpc/tools/main.cc',
'grpc_root/src/compiler/python_generator.cc'] + [ 'grpc_root/src/compiler/python_generator.cc'] + [
os.path.join('third_party/protobuf/src', cc_file) os.path.join('third_party/protobuf/src', cc_file)
for cc_file in protoc_lib_deps.CC_FILES] for cc_file in protoc_lib_deps.CC_FILES]
plugin_ext = extension.Extension( plugin_ext = extension.Extension(
name='grpc.protoc.protoc_compiler', name='grpc.tools.protoc_compiler',
sources=['grpc/protoc/protoc_compiler.pyx'] + plugin_sources, sources=['grpc/tools/protoc_compiler.pyx'] + plugin_sources,
include_dirs=[ include_dirs=[
'.', '.',
'grpc_root', 'grpc_root',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment