We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac60cc commit 34a844cCopy full SHA for 34a844c
1 file changed
build.py
@@ -156,6 +156,13 @@
156
157
import os, shutil
158
159
+ # Copy built extensions to the package directory
160
for output in cmd.get_outputs():
- relative_extension = os.path.relpath(output, cmd.build_lib)
161
- shutil.copyfile(output, relative_extension)
+ # 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