cython-hidapi icon indicating copy to clipboard operation
cython-hidapi copied to clipboard

Migration to hidraw as a default backend for pip package

Open Youw opened this issue 2 years ago • 2 comments

As of #162 hidraw backend on Linux is the default one built by the setup.py. Changing the default for all upstream/pip users would probably break a lot of applications/projects due to differences between libusb and hidraw backends.

Need to comeup with the migration plan for all users.

Youw avatar Nov 13 '23 11:11 Youw

I think one of the easiet ways is to switch to hidraw as a default when HIDAPI bumps its version to 1.0. But we could also consider some alternatives.

Youw avatar Nov 13 '23 11:11 Youw

Updated wheels action in https://github.com/trezor/cython-hidapi/commit/690824080c360c60276e4da0f873bd3df223a502 to use libusb so we don't accidentally release wheels with hidraw.

prusnak avatar Nov 13 '23 11:11 prusnak

so it seems the default backend has been changed in 1fceee664338946cd4a998b9152e60a3d936cdb5. I'm not really happy doing this without a major version bump. this kind of breaks the api!

@prusnak is there a may to continue to use the libusb backend?

bearsh avatar Nov 11 '24 08:11 bearsh

@prusnak is there a may to continue to use the libusb backend?

Yes, build from source and set env variable HIDAPI_WITH_LIBUSB to 1

prusnak avatar Nov 11 '24 10:11 prusnak

maybe then the install section in the readme should also be changed to reflex this...

it would also be nice to mention the backend change in the readme...

bearsh avatar Nov 11 '24 10:11 bearsh

maybe then the install section in the readme should also be changed to reflex this...

it would also be nice to mention the backend change in the readme...

Please send a PR

prusnak avatar Nov 11 '24 10:11 prusnak