diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-18 02:28:15 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-04-18 02:28:15 +0000 |
commit | a6de64aef3e75dd0e0b2540280037139ef3d0066 (patch) | |
tree | 0567fd7eb30239a7aa6a000c875f7d29a107b6f4 /python/setup.py | |
parent | 9af2f4c50bf85ec73cdb52384dc07974c0e2e6c4 (diff) | |
download | protobuf-a6de64aef3e75dd0e0b2540280037139ef3d0066.tar.gz protobuf-a6de64aef3e75dd0e0b2540280037139ef3d0066.tar.bz2 protobuf-a6de64aef3e75dd0e0b2540280037139ef3d0066.zip |
setup.py shouldn't fail if protoc path contains whitespace.
Diffstat (limited to 'python/setup.py')
-rwxr-xr-x | python/setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/setup.py b/python/setup.py index 3ae8fd9f..f9b890ea 100755 --- a/python/setup.py +++ b/python/setup.py @@ -11,6 +11,7 @@ from setuptools import setup from distutils.spawn import find_executable import sys import os +import subprocess maintainer_email = "protobuf@googlegroups.com" @@ -42,8 +43,8 @@ def generate_proto(source): "or install the binary package.\n") sys.exit(-1) - protoc_command = protoc + " -I../src -I. --python_out=. " + source - if os.system(protoc_command) != 0: + protoc_command = [ protoc, "-I../src", "-I.", "--python_out=.", source ] + if subprocess.call(protoc_command) != 0: sys.exit(-1) def MakeTestSuite(): |