Skip to content
Snippets Groups Projects
Commit 7ecc04e0 authored by Millian Poquet's avatar Millian Poquet
Browse files

setup.py: improve debuggability

parent 781a112a
Branches
No related tags found
No related merge requests found
......@@ -6,10 +6,14 @@ import subprocess
import sys
protoc = find_executable('protoc')
if protoc is None:
print('protoc not found', file=sys.stderr)
sys.exit(1)
makedirs('protocol', exist_ok=True)
protoc_command = [protoc, '--python_out=protocol', 'hello.proto']
if subprocess.call(protoc_command) != 0:
print('could not generate sources by calling protoc', file=sys.stderr)
sys.exit(1)
setup(name='protocol',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment