Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion dpctl/tests/setup_cython_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os.path

import setuptools
from Cython.Build import build_ext

import dpctl


def get_includes():
# path to dpctl/include
dpctl_incl_dir = dpctl.get_include()
# path to folder where __init__.pxd resides
dpctl_pxd_dir = os.path.dirname(os.path.dirname(dpctl_incl_dir))
return [dpctl_incl_dir, dpctl_pxd_dir]


ext = setuptools.Extension(
"_cython_api",
["_cython_api.pyx"],
include_dirs=[dpctl.get_include()],
include_dirs=get_includes(),
language="c++",
)

Expand Down
Loading