Skip to content

Commit 5846fb6

Browse files
attempt at topping the setup pie
1 parent b3dac2f commit 5846fb6

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

setup.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,10 @@
3838
elif sys.platform in ["win32", "cygwin"]:
3939
IS_WIN = True
4040
else:
41-
assert False, sys.platform + " not supported"
41+
assert False, "We currently do not build for " + sys.platform
4242

43-
if IS_LIN:
44-
DPCPP_ROOT = os.environ["ONEAPI_ROOT"] + r"/compiler/latest/linux"
45-
os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"] = "dpctl"
46-
os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"] = r"dpctl/include"
47-
os.environ["CFLAGS"] = "-fPIC"
48-
49-
elif IS_WIN:
50-
os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"] = "dpctl"
51-
os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"] = r"dpctl\include"
52-
53-
dpctl_sycl_interface_lib = os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"]
54-
dpctl_sycl_interface_include = os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"]
55-
sycl_lib = os.environ["ONEAPI_ROOT"] + r"\compiler\latest\windows\lib"
43+
dpctl_sycl_interface_lib = "dpctl"
44+
dpctl_sycl_interface_include = r"dpctl/include"
5645

5746
# Get long description
5847
with open("README.md", "r", encoding="utf-8") as file:
@@ -131,12 +120,12 @@ def extensions():
131120
elif IS_MAC:
132121
pass
133122
elif IS_WIN:
134-
libs += ["DPCTLSyclInterface", "sycl"]
123+
libs += ["DPCTLSyclInterface"]
135124

136125
if IS_LIN:
137126
librarys = [dpctl_sycl_interface_lib]
138127
elif IS_WIN:
139-
librarys = [dpctl_sycl_interface_lib, sycl_lib]
128+
librarys = [dpctl_sycl_interface_lib]
140129
elif IS_MAC:
141130
librarys = [dpctl_sycl_interface_lib]
142131

0 commit comments

Comments
 (0)