From 5211bd1220ff4464a6e50d88ed4f19e32984078c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20G=C3=B6kmen?= Date: Wed, 2 Oct 2024 13:15:40 -0700 Subject: [PATCH] Actually fix it --- omnigibson/install.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omnigibson/install.py b/omnigibson/install.py index 3f4a6a60e..5d819dcde 100644 --- a/omnigibson/install.py +++ b/omnigibson/install.py @@ -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