Skip to content

Commit

Permalink
Actually fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Oct 2, 2024
1 parent 67f53f1 commit 5211bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions omnigibson/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ def _rename_if_necessary(filename: Path):
This is permissible because the manylinux wheels are compatible with older GLIBC versions even though
the filename suggests not - so we apply this hacky workaround. This allows pip to try to install them.
"""
# Rename the file if the system's GLIBC version is older than the one used in the NVIDIA PyPI packages
if platform.system() == "Linux" and _is_glibc_older():
new_filename = filename.with_name(filename.name.replace("manylinux_2_34", "manylinux_2_31"))
shutil.move(filename, new_filename)
return new_filename

# If the file is not renamed, return the original filename
return filename


Expand Down

0 comments on commit 5211bd1

Please sign in to comment.