We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33069cb + b03ce57 commit 8219167Copy full SHA for 8219167
dpctl/tests/setup_cython_api.py
@@ -14,15 +14,26 @@
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
17
+import os.path
18
+
19
import setuptools
20
from Cython.Build import build_ext
21
22
import dpctl
23
24
25
+def get_includes():
26
+ # path to dpctl/include
27
+ dpctl_incl_dir = dpctl.get_include()
28
+ # path to folder where __init__.pxd resides
29
+ dpctl_pxd_dir = os.path.dirname(os.path.dirname(dpctl_incl_dir))
30
+ return [dpctl_incl_dir, dpctl_pxd_dir]
31
32
33
ext = setuptools.Extension(
34
"_cython_api",
35
["_cython_api.pyx"],
- include_dirs=[dpctl.get_include()],
36
+ include_dirs=get_includes(),
37
language="c++",
38
)
39
0 commit comments