10se1ucgo / cue_sdk

Python wrapper for the Corsair Utility Engine SDK
Other
21 stars 2 forks source link

Support Python 3.6 & 32-bit Python #10

Closed jwcotejr closed 6 years ago

jwcotejr commented 6 years ago

This pull request does a few things:

1.) Update the "with_metaclass" function found in cue_sdk/enumerations.py with the latest version of the function from six.py, which gets cue_sdk working on Python 3.6 while preserving Python 2.7 support.

2.) Update examples to use newer 2015 CUE SDK DLLs.

3.) Use sys.maxsize to determine whether or not the user is using 32-bit Python or 64-bit Python, and use the proper DLL.

4.) Add K68 to setup.py keywords

Tested on Python 2.7.14 (32-bit & 64-bit), Python 3.5.4 (32-bit & 64-bit), and Python 3.6.5 (32-bit & 64-bit) on Windows 10 Pro (1709, 64-bit). Keyboard used for testing is the Corsair K68 RGB.

10se1ucgo commented 6 years ago

Cool, thanks!