Skip to content

Commit 5bb3b0e

Browse files
authored
[build] [bug] Fix a bug of skbuild that loses the root package_dir (#4875)
1 parent 92f8464 commit 5bb3b0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def remove_tmp(taichi_dir):
6464

6565

6666
class EggInfo(egg_info):
67+
def finalize_options(self, *args, **kwargs):
68+
if '' not in self.distribution.package_dir:
69+
# XXX: skbuild loses the root package dir
70+
self.distribution.package_dir[''] = package_dir
71+
return super().finalize_options(*args, **kwargs)
72+
6773
def run(self):
6874
taichi_dir = os.path.join(package_dir, 'taichi')
6975
remove_tmp(taichi_dir)

0 commit comments

Comments
 (0)