fix(tools): repair stale install prefix when ISAACGYM/ISAACSIM_HOME was relocated - #1473
Merged
TATP-233 merged 1 commit intoSep 3, 2026
Conversation
…as relocated
Conda envs and venvs are not relocatable: entry-point shebangs, activate
scripts, .pth/egg-link files, PEP 660 editable finders and conda-meta all
hard-code the install prefix. After the local cache was moved from the legacy
$HOME/.unilab/{isaacgym,isaacsim} to the current ~/.cache/unisim default,
every skip-check/marker still passed but pip could not execute and the
editable installs vanished from sys.path, breaking resumable installs.
Both setup scripts now detect the stale prefix from the pip shebang and
rewrite it in place (shebang lines, activate scripts, editable finders,
.pth/egg-link, conda-meta), use python -m pip instead of the bin/pip entry
point, and verify isaacgym/isaaclab by import rather than trusting pip show
or a stale marker (isaacsim 06_verify is forced to re-run after a repair).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/tools/setup_isaacgym_env.shandscripts/tools/setup_isaacsim_env.shclaimed to be resumable, but broke after the local cache was moved from the legacy$HOME/.unilab/{isaacgym,isaacsim}to the current~/.cache/unisimdefault: conda envs and venvs are not relocatable — entry-point shebangs, activate scripts,.pth/egg-link files, PEP 660 editable finders and conda-meta all hard-code the old prefix. Every skip-check/marker still passed (files exist), butbin/pipcould not execute ("required file not found") and the editable isaacgym/isaaclab installs vanished fromsys.path, so a re-run died at the pip step instead of resuming.__editable__*_finder.py;.pth/.egg-link; conda-meta), which is far cheaper than re-creating the env / reinstalling multi-GB wheels.python -m pipinstead of thebin/pipentry point, and the isaacgym skip-check also verifiesimport isaacgym(pip show trusts a stale egg-link); after a repair the isaacsim06_verifymarker is removed so imports are re-verified.Linked Work
dev/issue-1042-manager-based-api(both setup scripts only exist on this integration branch;origin/maindoes not have them yet)Validation
make test-allpassed on the final local head before this PR was created or updatedCommands actually run:
Remote CI route:
Impact
Artifacts
Checklist