Skip to content

Commit 4bcfb2e

Browse files
committed
build_ext: avoid in-place extension build for svv-accelerated to prevent missing package dirs on macOS; use build/lib placement
1 parent 83258c0 commit 4bcfb2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ def run(self):
425425

426426
def finalize_options(self):
427427
super().finalize_options()
428-
self.inplace = True
428+
# Don't build extensions in-place for the companion binary wheel,
429+
# since its package subdirectories (svv_accel/...) do not exist in
430+
# the source tree. Use the default build/lib placement instead.
431+
self.inplace = (not ACCEL_COMPANION)
429432

430433
def get_extra_compile_args():
431434
extra_args = []

0 commit comments

Comments
 (0)