diff --git a/setup.py b/setup.py index 4298d9e307..1feba1ba4e 100644 --- a/setup.py +++ b/setup.py @@ -247,9 +247,12 @@ def clean(): def compile(): print(cmd, library_dirs, libraries) - call(cmd, cwd=CCLIENT_PATH) + return_code = call(cmd, cwd=CCLIENT_PATH) + if return_code != 0: + raise Exception("Failed to compile C client") self.execute(compile, [], 'Compiling core aerospike-client-c') + # run original c-extension build code build.run(self)