aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-04-17 01:58:15 -0700
committerGravatar Ken Payson <kpayson@google.com>2017-04-17 01:58:15 -0700
commit0eac8aa2201a3500889059704727fbb7bd5cdcdd (patch)
tree0531718922b65712262c5175d097550ff41d8267 /src/python
parent63b0d11ca81b348dcf4463ff935ef326b4be7358 (diff)
Yapf_code
Diffstat (limited to 'src/python')
-rw-r--r--src/python/grpcio/commands.py28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
index fa5620d7e9..4f072809c4 100644
--- a/src/python/grpcio/commands.py
+++ b/src/python/grpcio/commands.py
@@ -269,22 +269,26 @@ class BuildExt(build_ext.build_ext):
if "darwin" in sys.platform:
config = os.environ.get('CONFIG', 'opt')
target_path = os.path.abspath(
- os.path.join(os.path.dirname(os.path.realpath(__file__)),
- '..', '..', '..', 'libs', config))
- targets = [os.path.join(target_path, 'libboringssl.a'),
- os.path.join(target_path, 'libares.a'),
- os.path.join(target_path, 'libgpr.a'),
- os.path.join(target_path, 'libgrpc.a')]
- make_process = subprocess.Popen(['make'] + targets,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ os.path.join(
+ os.path.dirname(os.path.realpath(__file__)), '..', '..',
+ '..', 'libs', config))
+ targets = [
+ os.path.join(target_path, 'libboringssl.a'),
+ os.path.join(target_path, 'libares.a'),
+ os.path.join(target_path, 'libgpr.a'),
+ os.path.join(target_path, 'libgrpc.a')
+ ]
+ make_process = subprocess.Popen(
+ ['make'] + targets,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
make_out, make_err = make_process.communicate()
if make_out and make_process.returncode != 0:
- sys.stdout.write(make_out + '\n')
+ sys.stdout.write(make_out + '\n')
if make_err:
- sys.stderr.write(make_err + '\n')
+ sys.stderr.write(make_err + '\n')
if make_process.returncode != 0:
- raise Exception("make command failed!")
+ raise Exception("make command failed!")
compiler = self.compiler.compiler_type
if compiler in BuildExt.C_OPTIONS: