Skip to content

Commit

Permalink
fix sdist to pass preflight check
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Oct 19, 2023
1 parent 9a3dec2 commit a63377f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions install/cupy_builder/_preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@ def preflight_check(ctx: Context) -> bool:
is_git = os.path.isdir(os.path.join(source_root, '.git'))
for submodule in ('third_party/cccl',
'cupy/_core/include/cupy/jitify'):
if 0 < len(os.listdir(os.path.join(source_root, submodule))):
continue
dirpath = os.path.join(source_root, submodule)
if os.path.isdir(dirpath):
if 0 < len(os.listdir(dirpath)):
continue
else:
if not is_git:
# sdist does not contain third_party directory
continue

if is_git:
msg = f'''
===========================================================================
Expand Down

0 comments on commit a63377f

Please sign in to comment.