Skip to content

Commit 34a844c

Browse files
committed
fix workflow
1 parent aac60cc commit 34a844c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

build.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@
156156

157157
import os, shutil
158158

159+
# Copy built extensions to the package directory
159160
for output in cmd.get_outputs():
160-
relative_extension = os.path.relpath(output, cmd.build_lib)
161-
shutil.copyfile(output, relative_extension)
161+
# Get the filename of the extension
162+
filename = os.path.basename(output)
163+
# Determine the target directory (cgal_alpha_wrapping package)
164+
target_dir = os.path.join(os.path.dirname(__file__), 'cgal_alpha_wrapping')
165+
target_path = os.path.join(target_dir, filename)
166+
167+
print(f"Copying {output} -> {target_path}")
168+
shutil.copyfile(output, target_path)

0 commit comments

Comments
 (0)