Skip to content

Commit

Permalink
fixed issue with installing for Python3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
silabsbot committed Jan 9, 2023
1 parent 3288e7f commit adceb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def finalize_options(self):
if python_version == '37':
print('Adding pickle5 to install dependencies')
additional_install_dependencies.append('pickle5')
additional_install_dependencies.append('gast<=0.4.0') # The MLTK does NOT have a dependency on this, but tensorflow does
# Other ensure pickle5 is NOT installed as that will break other dependencies
else:
print('Uninstalling pickle5 (if necessary)')
Expand All @@ -157,7 +158,7 @@ def finalize_options(self):
'tensorflow_probability>=0.12.2',
'tflite-support',
'protobuf>=3.18,<3.20', # The MLTK does NOT have a dependency on this, but tflite-support and tensorflow do
'onnx',
'onnx<1.13', # The MLTK does NOT have a dependency on this, but tflite-support and tensorflow depend on protobuf and this does as well
'onnxruntime<1.13',
#'flatbuffers<2.0', # This is required by TF
'numpy<1.23', # Numba, which is installed by TF, has a requirement of < 1.23
Expand Down

0 comments on commit adceb86

Please sign in to comment.