Skip to content

Commit

Permalink
Fix tensorflow requirements for ARM Macs (#142)
Browse files Browse the repository at this point in the history
Fix gh-141.

Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
  • Loading branch information
astrojuanlu authored Mar 26, 2023
1 parent a5b1c13 commit e4864d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion kedro-datasets/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def _collect_requirements(requires):
"tensorflow.TensorflowModelDataset": [
# currently only TensorFlow V2 supported for saving and loading.
# V1 requires HDF5 and serialises differently
"tensorflow~=2.0"
"tensorflow~=2.0; platform_system != 'Darwin' or platform_machine != 'arm64'",
# https://developer.apple.com/metal/tensorflow-plugin/
"tensorflow-macos~=2.0; platform_system == 'Darwin' and platform_machine == 'arm64'",
]
}
yaml_require = {"yaml.YAMLDataSet": [PANDAS, "PyYAML>=4.2, <7.0"]}
Expand Down
3 changes: 2 additions & 1 deletion kedro-datasets/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ snowflake-snowpark-python~=1.0.0; python_version == '3.8'
SQLAlchemy~=1.2
tables~=3.6.0; platform_system == "Windows" and python_version<'3.9'
tables~=3.6; platform_system != "Windows"
tensorflow~=2.0
tensorflow-macos~=2.0; platform_system == "Darwin" and platform_machine == "arm64"
tensorflow~=2.0; platform_system != "Darwin" or platform_machine != "arm64"
triad>=0.6.7, <1.0
trufflehog~=2.1
xlsxwriter~=1.0

0 comments on commit e4864d1

Please sign in to comment.