darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
315 stars 98 forks source link

Using the Python Extensions in Windows #93

Closed williamblair333 closed 5 months ago

williamblair333 commented 2 years ago

I'm certain I'm being ignorant - but I had to ask: Can the python extensions of usbrelay be exported and used in Windows? Apologies for posting here as I didn't know where else to ask. Thanks.

wentasah commented 2 years ago

I'm certain I'm being ignorant - but I had to ask: Can the python extensions of usbrelay be exported and used in Windows?

I guess it's theoretically possible, but it will need some work. We use the hidapi library, which should work on Windows, but I don't think that our code has ever be compiled for Windows. We probably have few Linux specific things in our code and if somebody replaces them with platform independent code, it might work.

If time allows, I might look into this eventually.

darrylb123 commented 2 years ago

I had a quick look at mingw and cross compiling, looks like it's doable for the command line tool and library. The python extension is another matter.

On Thu, 22 Sep 2022, 8:04 pm Michal Sojka, @.***> wrote:

I'm certain I'm being ignorant - but I had to ask: Can the python extensions of usbrelay be exported and used in Windows?

I guess it's theoretically possible, but it will need some work. We use the hidapi library, which should work on Windows, but I don't think that our code has ever be compiled for Windows. We probably have few Linux specific things in our code and if somebody replaces them with platform independent code, it might work.

If time allows, I might look into this eventually.

— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/93#issuecomment-1254805618, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVNCETFQTKO6IDB3OIDV7QVKXANCNFSM6AAAAAAQSE6HGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

williamblair333 commented 2 years ago

I may not be useful, but, what can someone do to assist?

darrylb123 commented 2 years ago

No. The python extension is a wrapper around libusbrelay.

I need to find someone that uses/develops on windows to add the required code for windows.

Darryl

On Thu, 22 Sep 2022, 12:52 am William Blair, @.***> wrote:

I'm certain I'm being ignorant - but I had to ask: Can the python extensions of usbrelay be exported and used in Windows? Apologies for posting here as I didn't know where else to ask. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVJOFIMZ6DBHDR6YRTTV7MOJ5ANCNFSM6AAAAAAQSE6HGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>