Skip to content

Commit

Permalink
disable LK catalyst shared object copy for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
josephleekl committed Oct 17, 2024
1 parent 7c43ed6 commit 983c486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def build_extension(self, ext: CMakeExtension):
)

# Ensure that catalyst shared object is copied to the build directory for pip editable install
if backend in ("lightning_kokkos"):
if platform.system() != "Darwin" and backend in ("lightning_kokkos"):
source = os.path.join(f"{extdir}", f"lib{backend}_catalyst.so")
destination = os.path.join(os.getcwd(), "build")
shutil.copy(source, destination)
Expand Down

0 comments on commit 983c486

Please sign in to comment.