Skip to content

Commit

Permalink
Temporarily pin opencv-python-headless version to avoid a problematic…
Browse files Browse the repository at this point in the history
… version(4.5.4.58) which makes a compiling error in macos. (#4420)

opencv-python-headless is required by 'tensorflow-ranking -> tf-models-official -> opencv-python-headless'.

PiperOrigin-RevId: 406040111
(cherry picked from commit c0c8979)
  • Loading branch information
Jiyong Jung authored Nov 1, 2021
1 parent ee3276b commit e7b1e7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tfx/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def make_extra_packages_tf_ranking():
# Packages needed for tf-ranking which is used in tfx/examples/ranking.
return [
'tensorflow-ranking>=0.3.3,<0.4',
# TODO(b/203793924): Remove temporarily pinned version of
# opencv-python-headless to avoid a build issue.
'opencv-python-headless<4.5.4; platform_system=="Darwin"',
'struct2tensor' + select_constraint(
default='>=0.34,<0.35',
nightly='>=0.35.0.dev',
Expand Down

0 comments on commit e7b1e7d

Please sign in to comment.