From 5cc527e4cc6fb82bed718cc9f0cdc7e47b61bb9c Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 11 Sep 2023 17:27:52 -0700 Subject: [PATCH] use pyxdep file to locate chid.pxd --- hid.pyxdep | 1 + setup.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 hid.pyxdep diff --git a/hid.pyxdep b/hid.pyxdep new file mode 100644 index 0000000..7480bc8 --- /dev/null +++ b/hid.pyxdep @@ -0,0 +1 @@ +chid.pxd diff --git a/setup.py b/setup.py index 4c311ba..73066b0 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ hidapi_include = os.path.join(hidapi_topdir, "hidapi") system_hidapi = 0 libs = [] -src = ["hid.pyx", "chid.pxd"] +src = ["hid.pyx"] def hidapi_src(platform): @@ -42,7 +42,7 @@ def hidapi_src(platform): ) ) libs = ["udev", "rt"] - src = ["hidraw.pyx", "chid.pxd"] + src = ["hidraw.pyx"] if system_hidapi == 1: libs.append("hidapi-hidraw") else: