Skip to content

Commit

Permalink
use pyxdep file to locate chid.pxd
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffle2 authored and prusnak committed Oct 17, 2023
1 parent eaf771d commit 5cc527e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions hid.pyxdep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chid.pxd
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

1 comment on commit 5cc527e

@Lem
Copy link

@Lem Lem commented on 5cc527e Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please create a new release for this change? Upstream archlinux (for example) is using this commit to backport Cypthon3 to 1.14.0.

It would be nice to have this fix for Cypthon3 on pypi, too. There are even more people with trouble building it, see #175

Please sign in to comment.