27
27
import versioneer
28
28
29
29
IS_WIN = False
30
- IS_MAC = False
31
30
IS_LIN = False
32
31
33
32
if "linux" in sys .platform :
34
33
IS_LIN = True
35
- elif sys .platform == "darwin" :
36
- IS_MAC = True
37
34
elif sys .platform in ["win32" , "cygwin" ]:
38
35
IS_WIN = True
39
36
else :
@@ -56,7 +53,7 @@ def remove_empty(li):
56
53
57
54
def get_sdl_cflags ():
58
55
cflags = []
59
- if IS_LIN or IS_MAC :
56
+ if IS_LIN :
60
57
cflags = [
61
58
"-fstack-protector" ,
62
59
"-fPIC" ,
@@ -85,8 +82,6 @@ def get_sdl_ldflags():
85
82
def get_other_cxxflags ():
86
83
if IS_LIN :
87
84
return ["-O3" , "-std=c++17" ]
88
- elif IS_MAC :
89
- return []
90
85
elif IS_WIN :
91
86
# FIXME: These are specific to MSVC and we should first make sure
92
87
# what compiler we are using.
@@ -129,19 +124,15 @@ def extensions():
129
124
130
125
if IS_LIN :
131
126
libs += ["rt" , "DPCTLSyclInterface" ]
132
- elif IS_MAC :
133
- pass
134
127
elif IS_WIN :
135
128
libs += ["DPCTLSyclInterface" ]
136
129
137
130
if IS_LIN :
138
131
libraries = [dpctl_sycl_interface_lib ]
139
132
elif IS_WIN :
140
133
libraries = [dpctl_sycl_interface_lib ]
141
- elif IS_MAC :
142
- libraries = [dpctl_sycl_interface_lib ]
143
134
144
- if IS_LIN or IS_MAC :
135
+ if IS_LIN :
145
136
runtime_library_dirs = ["$ORIGIN" ]
146
137
elif IS_WIN :
147
138
runtime_library_dirs = []
@@ -309,7 +300,7 @@ def finalize_options(self):
309
300
else :
310
301
raise ValueError (
311
302
"--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 "
313
304
"default value, but remember to activate the compiler "
314
305
"environment"
315
306
)
@@ -377,7 +368,7 @@ def finalize_options(self):
377
368
else :
378
369
raise ValueError (
379
370
"--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 "
381
372
"default value, but remember to activate the compiler "
382
373
"environment"
383
374
)
@@ -402,7 +393,7 @@ def _get_cmdclass():
402
393
name = "dpctl" ,
403
394
version = versioneer .get_version (),
404
395
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." ,
406
397
long_description = long_description ,
407
398
long_description_content_type = "text/markdown" ,
408
399
license = "Apache 2.0" ,
0 commit comments