We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143ddfe commit db80158Copy full SHA for db80158
1 file changed
setup.py
@@ -5,6 +5,12 @@
5
6
python_version = platform.python_version().rsplit('.', maxsplit=1)[0]
7
8
+mac_v, _, _ = platform.mac_ver()
9
+if mac_v != '':
10
+ mac_version = '.'.join(mac_v.split('.')[:2])
11
+else:
12
+ mac_version = None
13
+
14
requirements = [
15
"pillow",
16
"requests",
@@ -30,7 +36,7 @@
30
36
# get the right machine string
31
37
if sys.platform == 'win32':
32
38
tflite_machine = 'win_amd64'
33
-elif sys.platform == 'darwin':
39
+elif sys.platform == 'darwin' and mac_version == '10.15':
34
40
tflite_machine = 'macosx_10_15_x86_64'
35
41
elif sys.platform == 'linux':
42
if platform.machine() == 'x86_64':
0 commit comments