Skip to content

Commit

Permalink
strip .so in linux debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Jul 12, 2024
1 parent 9693efb commit be6c743
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 @@ -131,6 +131,11 @@ def build_extension(self, ext):
for file in glob.glob(self.build_temp + "/Release/*.pyd"):
shutil.copy(file, self.build_lib + "/rhino3dm")
for file in glob.glob(self.build_temp + "/*.so"):
if platform.system() == "Linux" and self.debug:
print("debug linux")
system(["stat", file])
system(["strip", "--strip-unneeded", file])
system(["stat", file])
shutil.copy(file, self.build_lib + "/rhino3dm")
print() # Add an empty line for cleaner output

Expand Down

0 comments on commit be6c743

Please sign in to comment.