Skip to content

Commit

Permalink
Copy LQ shared object to build directory in editable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rauletorresc committed Oct 24, 2024
1 parent 7ac9ba0 commit 73b5b49
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 backend in ("lightning_kokkos", "lightning_qubit"):
if platform.system() in ["Linux", "Darwin"]:
shared_lib_ext = {"Linux": ".so", "Darwin": ".dylib"}[platform.system()]
source = os.path.join(f"{extdir}", f"lib{backend}_catalyst{shared_lib_ext}")
Expand Down

0 comments on commit 73b5b49

Please sign in to comment.