Skip to content

Commit

Permalink
trigger script installer after cmake collects all of them
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Sep 25, 2024
1 parent 5c08857 commit 7931460
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def build_extension(self, ext):
)
subprocess.run(["cmake", "--build", "."], cwd=build_temp, check=True)

# trigger script installer for all python scripts
self.distribution.scripts = [
str(f) for f in build_temp.glob("bin/*") if f.is_symlink()
]

# add modules
spt3g_lib = Path(self.build_lib) / "spt3g"
if not spt3g_lib.exists():
Expand Down

0 comments on commit 7931460

Please sign in to comment.