diff --git a/server/pypi/build-wheel.py b/server/pypi/build-wheel.py index 764ad9e7f3..4a87c8e988 100755 --- a/server/pypi/build-wheel.py +++ b/server/pypi/build-wheel.py @@ -464,7 +464,10 @@ def build_with_script(self, build_script): return self.package_wheel(prefix_dir, self.src_dir) def build_with_pep517(self): - return self.builder.build("wheel", "dist") + try: + return self.builder.build("wheel", "dist") + except build.BuildBackendException as e: + raise CommandError(e) def update_env(self): env = {}