Skip to content

Commit

Permalink
move platform check to preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Oct 19, 2023
1 parent 1a79ad1 commit 9a3dec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions install/cupy_builder/_preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@


def preflight_check(ctx: Context) -> bool:
if sys.platform not in ('linux', 'win32'):
print('Error: macOS is no longer supported', file=sys.stderr)
return False

source_root = ctx.source_root
is_git = os.path.isdir(os.path.join(source_root, '.git'))
for submodule in ('third_party/cccl',
Expand Down
2 changes: 0 additions & 2 deletions install/cupy_builder/cupy_setup_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ def make_extensions(ctx: Context, compiler, use_cython):
rpath.append(
'{}{}/cupy/.data/lib'.format(_rpath_base(), '/..' * depth))

if not PLATFORM_WIN32 and not PLATFORM_LINUX:
assert False, "macOS is no longer supported"
if (PLATFORM_LINUX and len(rpath) != 0):
ldflag = '-Wl,'
if PLATFORM_LINUX:
Expand Down

0 comments on commit 9a3dec2

Please sign in to comment.