Skip to content

Commit c419abd

Browse files
author
Diptorup Deb
committed
MACOS is not supported so remove checks for MACOS in setup.py
1 parent 47c11d5 commit c419abd

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

setup.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@
2727
import versioneer
2828

2929
IS_WIN = False
30-
IS_MAC = False
3130
IS_LIN = False
3231

3332
if "linux" in sys.platform:
3433
IS_LIN = True
35-
elif sys.platform == "darwin":
36-
IS_MAC = True
3734
elif sys.platform in ["win32", "cygwin"]:
3835
IS_WIN = True
3936
else:
@@ -56,7 +53,7 @@ def remove_empty(li):
5653

5754
def get_sdl_cflags():
5855
cflags = []
59-
if IS_LIN or IS_MAC:
56+
if IS_LIN:
6057
cflags = [
6158
"-fstack-protector",
6259
"-fPIC",
@@ -85,8 +82,6 @@ def get_sdl_ldflags():
8582
def get_other_cxxflags():
8683
if IS_LIN:
8784
return ["-O3", "-std=c++17"]
88-
elif IS_MAC:
89-
return []
9085
elif IS_WIN:
9186
# FIXME: These are specific to MSVC and we should first make sure
9287
# what compiler we are using.
@@ -129,19 +124,15 @@ def extensions():
129124

130125
if IS_LIN:
131126
libs += ["rt", "DPCTLSyclInterface"]
132-
elif IS_MAC:
133-
pass
134127
elif IS_WIN:
135128
libs += ["DPCTLSyclInterface"]
136129

137130
if IS_LIN:
138131
libraries = [dpctl_sycl_interface_lib]
139132
elif IS_WIN:
140133
libraries = [dpctl_sycl_interface_lib]
141-
elif IS_MAC:
142-
libraries = [dpctl_sycl_interface_lib]
143134

144-
if IS_LIN or IS_MAC:
135+
if IS_LIN:
145136
runtime_library_dirs = ["$ORIGIN"]
146137
elif IS_WIN:
147138
runtime_library_dirs = []
@@ -309,7 +300,7 @@ def finalize_options(self):
309300
else:
310301
raise ValueError(
311302
"--sycl-compiler-prefix value is invalid, use a "
312-
"path to compiler intallation. To use oneAPI, use the "
303+
"path to compiler installation. To use oneAPI, use the "
313304
"default value, but remember to activate the compiler "
314305
"environment"
315306
)
@@ -377,7 +368,7 @@ def finalize_options(self):
377368
else:
378369
raise ValueError(
379370
"--sycl-compiler-prefix value is invalid, use a "
380-
"path to compiler intallation. To use oneAPI, use the "
371+
"path to compiler installation. To use oneAPI, use the "
381372
"default value, but remember to activate the compiler "
382373
"environment"
383374
)
@@ -402,7 +393,7 @@ def _get_cmdclass():
402393
name="dpctl",
403394
version=versioneer.get_version(),
404395
cmdclass=_get_cmdclass(),
405-
description="A lightweight Python wrapper for a subset of OpenCL and SYCL.",
396+
description="A lightweight Python wrapper for a subset of SYCL.",
406397
long_description=long_description,
407398
long_description_content_type="text/markdown",
408399
license="Apache 2.0",

0 commit comments

Comments
 (0)