Skip to content

Commit

Permalink
Merge pull request #927 from StanfordVL/fix-install
Browse files Browse the repository at this point in the history
Fix missing rename behavior in old glibc versions
  • Loading branch information
cgokmen authored Oct 2, 2024
2 parents 032c9b2 + 15aacc5 commit 817367d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docs/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ There are three ways to setup **`OmniGibson`**, all built upon different ways of

3. Run the installation script to install Isaac Sim as well as **`OmniGibson`** dataset and assets:

```{.shell .annotate}
python -m omnigibson.install # (1)!
```shell
python -m omnigibson.install
```

1. You can apply additional flag `--no-install-datasets` to skip dataset install.
You can apply additional flag `--no-install-datasets` to skip dataset install.

If this step fails, we recommend considering the [source installation](#__tabbed_1_3) method.

Expand Down Expand Up @@ -207,11 +207,11 @@ There are three ways to setup **`OmniGibson`**, all built upon different ways of

4. Run the installation script to hook the environment up to Isaac Sim as well as **`OmniGibson`** dataset and assets:

```{.shell .annotate}
python -m omnigibson.install --launcher-install # (1)!
```shell
python -m omnigibson.install --launcher-install
```

1. You can specify your Isaac Sim install location using the argument `--isaac-sim-path` if it differs from the default. You can also apply additional flag `--no-install-datasets` to skip dataset install.
You can specify your Isaac Sim install location using the argument `--isaac-sim-path` if it differs from the default. You can also apply additional flag `--no-install-datasets` to skip dataset install.

!!! note "What does this do?"

Expand Down
11 changes: 9 additions & 2 deletions omnigibson/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +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():
return filename.with_name(filename.name.replace("manylinux_2_34", "manylinux_2_31"))
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 Expand Up @@ -278,7 +283,9 @@ def attempt_pip_install():

@click.command()
@click.option(
"--install-datasets", default=True, help="Install the OmniGibson dataset and assets after installing Isaac Sim"
"--install-datasets/--no-install-datasets",
default=True,
help="Install the OmniGibson dataset and assets after installing Isaac Sim",
)
@click.option(
"--launcher-install/--pip-install",
Expand Down

0 comments on commit 817367d

Please sign in to comment.