Skip to content

Commit

Permalink
fix: skip d3 compilation when failed
Browse files Browse the repository at this point in the history
  • Loading branch information
dambi3613 committed Dec 26, 2024
1 parent ff92395 commit 33d549e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def build_extension(self, ext):
'CUDA is not installed or nvcc is not available.'
'Skipping compilation of libpaird3.'
)
raise e
return

compile = [
'nvcc',
Expand All @@ -48,7 +48,7 @@ def build_extension(self, ext):
print('libpaird3.so compiled successfully.')
except subprocess.CalledProcessError as e:
print(f'Failed to compile libpaird3.so: {e}')
raise e
return


setup(
Expand Down

0 comments on commit 33d549e

Please sign in to comment.