瀏覽代碼

Provide snowboy for py34->py36

Julien Schueller 8 年之前
父節點
當前提交
7782cd3abd

+ 0 - 0
kalliope/trigger/snowboy/armv7l/python2/_snowboydetect.so → kalliope/trigger/snowboy/armv7l/python27/_snowboydetect.so


+ 1 - 1
kalliope/trigger/snowboy/snowboydetect.py

@@ -8,7 +8,7 @@ from sys import version_info
 
 sl = SettingLoader()
 settings = sl.settings
-module_file_path = "%s/python%d/_snowboydetect" % (settings.machine, version_info[0])
+module_file_path = "%s/python%d%d/_snowboydetect" % (settings.machine, version_info[0], version_info[1])
 
 
 if version_info >= (2, 6, 0):

+ 0 - 0
kalliope/trigger/snowboy/x86_64/python2/_snowboydetect.so → kalliope/trigger/snowboy/x86_64/python27/_snowboydetect.so


+ 0 - 0
kalliope/trigger/snowboy/x86_64/python3/_snowboydetect.so → kalliope/trigger/snowboy/x86_64/python34/_snowboydetect.so


二進制
kalliope/trigger/snowboy/x86_64/python35/_snowboydetect.so


二進制
kalliope/trigger/snowboy/x86_64/python36/_snowboydetect.so


+ 5 - 3
setup.py

@@ -91,9 +91,11 @@ setup(
         'kalliope': [
             'brain.yml',
             'settings.yml',
-            'trigger/snowboy/armv7l/python2/_snowboydetect.so',
-            'trigger/snowboy/x86_64/python2/_snowboydetect.so',
-            'trigger/snowboy/x86_64/python3/_snowboydetect.so',
+            'trigger/snowboy/armv7l/python27/_snowboydetect.so',
+            'trigger/snowboy/x86_64/python27/_snowboydetect.so',
+            'trigger/snowboy/x86_64/python34/_snowboydetect.so',
+            'trigger/snowboy/x86_64/python35/_snowboydetect.so',
+            'trigger/snowboy/x86_64/python36/_snowboydetect.so',
             'trigger/snowboy/resources/*',
             'sounds/*'
          ],