Skip to content

Commit

Permalink
[4/4] Support for macOS - Fix python solib path
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiteng committed Jan 12, 2023
1 parent 8991de7 commit 6e1d4b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reverb/cc/platform/default/repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ def _find_python_solib_path(repo_ctx):

full_path = repo_ctx.path("{}/{}".format(solib_dir, basename))
if not full_path.exists:
fail("Unable to find python shared library file:\n{}/{}"
.format(solib_dir, basename))
basename = basename.replace('m.dylib', '.dylib')
full_path = repo_ctx.path("{}/{}".format(solib_dir, basename))
if not full_path.exists:
fail("Unable to find python shared library file:\n{}/{}"
.format(solib_dir, basename))
return struct(dir = solib_dir, basename = basename)

def _eigen_archive_repo_impl(repo_ctx):
Expand Down

0 comments on commit 6e1d4b4

Please sign in to comment.