Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 16, 2024
1 parent bd0b19b commit 5d7cc39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def get_c_interface():
# lib.<system>-<architecture>-<python-id>"
# To avoid mismatching the folder name, we search for the shared object instead.
# TODO: locate where the naming convention of the folder is decided and replicate it here.
editable_mode_path = package_root.parent.parent / "build_lightning_kokkos"
editable_mode_path = package_root.parent.parent / "build"
for path, _, files in os.walk(editable_mode_path):
if lib_name in files:
lib_location = (Path(path) / lib_name).as_posix()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,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"):
source = os.path.join(f"{extdir}", f"lib{backend}_catalyst.so")
destination = os.path.join(os.getcwd(), f"build_{backend}")
destination = os.path.join(os.getcwd(), f"build")
shutil.copy(source, destination)

with open(os.path.join("pennylane_lightning", "core", "_version.py"), encoding="utf-8") as f:
Expand Down

0 comments on commit 5d7cc39

Please sign in to comment.