Repository navigation
Update the central pyproject, remove subpackage specific dependencies - #6009
Conversation
There was a problem hiding this comment.
Review Summary
This PR centralizes all Isaac Lab third-party dependency declarations into the root pyproject.toml, removing per-subpackage dependency specifications. The approach establishes a single source of truth that the wheel builder, ./isaaclab.sh -i CLI, and uv workspace all consume. The architectural direction is sound and will significantly reduce maintenance burden for version bumps across the monorepo.
🔴 Critical: Wheel Extras Resolution Failure (CI Blocked)
The Build Wheel CI check fails because isaaclab[isaacsim,all] cannot co-resolve:
isaacsim-core==6.0.0.0 depends on imgui-bundle==1.92.4
isaaclab[all] depends on imgui-bundle>=1.92.5
isaacsim-kernel==6.0.0.1 depends on typing-extensions==4.12.2
isaaclab[all] depends on typing-extensions>=4.15.0
The newton extra (which feeds into all) raises imgui-bundle>=1.92.5 and typing-extensions>=4.15.0, but Isaac Sim pins these lower. In the old structure this was avoided because the newton viewer deps were only installed via isaaclab_visualizers[newton] which was not part of the wheel's all extra when isaacsim was also active.
Suggested fix: Either (a) move imgui-bundle and typing-extensions out of the all aggregate (like viser is excluded in the old python_packages.toml), or (b) relax the lower bounds to accommodate Isaac Sim's pins (e.g., imgui-bundle>=1.92.4), or (c) declare an explicit conflicts for [isaacsim] vs [newton] in the wheel metadata.
🟡 Medium: OPTIONAL_SUBMODULE_ROOT_EXTRAS Declares mimic → ("mimic", "teleop") Despite Conflict
In install.py, the mapping:
OPTIONAL_SUBMODULE_ROOT_EXTRAS: dict[str, tuple[str, ...]] = {
"mimic": ("mimic", "teleop"),
"teleop": ("teleop",),
}But the root pyproject.toml declares:
conflicts = [
[{ extra = "teleop" }, { extra = "mimic" }],
...
]These two extras cannot co-resolve (lxml version conflict). The _install_centralized_dependencies path will attempt to pip install both the mimic and teleop extras' requirements sequentially — pip doesn't enforce uv-style conflict declarations, so this may silently install incompatible lxml versions. Consider either:
- Removing
"teleop"from mimic's root extras mapping, or - Adding a runtime warning/skip when both are requested, matching the conflict declaration's intent.
🟡 Medium: packaging Version Pin Relaxed
The isaaclab_rl package previously pinned packaging<24 (required by certain moviepy versions). The root pyproject.toml now lists "packaging" without an upper bound. If downstream users have moviepy versions that rely on packaging<24 behavior, this could cause subtle runtime issues with video recording utilities.
🟢 Minor: all Extra Duplicates Individual Extras Inline
The all extra lists every dependency inline rather than referencing the other extras. This means version bumps must be synchronized in two places (the individual extra AND all). Consider whether the wheel builder or uv supports extra self-references (e.g., {include-group = "sb3"}) to keep them DRY, or add a test that verifies all is a superset of the union of the named extras.
🟢 Minor: Documentation Hardcodes Dependency Lists
The docs (e.g., bleeding-edge.rst, rlinf_vla_posttraining.rst) now inline the full pip install command with specific versions:
pip install "ray[default]>=2.47.0" "av>=12.3.0" ...These will drift from the root pyproject.toml over time. Consider referencing the extra instead (e.g., pip install isaaclab[rlinf] for wheel users, or uv run --extra rlinf for source users) to maintain the single-source-of-truth principle this PR establishes.
🟢 Positive Observations
- The
[tool.isaaclab.wheel-extras]pattern forisaacsimis a clean solution for keeping conflicting extras out of workspace resolution while still shipping them in the wheel. - The
constraint-dependenciesfor the torch stack (pinning exact versions for dev while keeping wheel specs loose) is well-designed. - The conflict declarations for teleop/mimic/all are appropriate given the lxml incompatibility.
- Test coverage updates are thorough — the new
test_wheel_builder_metadata.pyintegration test that actually runsgen_pyproject.pyis a strong improvement over the old static TOML checks. - Changelog entries and
.skipmarkers are correctly structured.
Update (429f245): The 55 new commits since my previous review introduce extensive changes unrelated to the core dependency centralization:
- Task restructuring: Cabinet, reorient/handover/pendulum consolidation, lift refactoring, env ID renames (dropping
-v0suffixes) - Physics backend migration: Newton presets for stack/place tasks, backend-decoupled cloning API (
clone_environments→ClonePlan/replicate) - Infrastructure: AutoMate Numba→Torch SoftDTW replacement, ISP optional-dependency guard, LEAPP export fixes
Previous concerns status:
- 🔴 Wheel extras resolution (imgui-bundle/typing-extensions conflict): Not addressed — still applicable
- 🟡 mimic→teleop conflict mapping: Not addressed
- 🟡 packaging pin relaxation: Not addressed
- 🟢
allextra duplication / docs hardcoding: Not addressed
New issues in this diff: None found. The refactoring is internally consistent — renamed env IDs, restructured packages, and new validate_config() guards are well-implemented. The SoftDTW rewrite correctly preserves autograd support. The cloner migration is uniform across all direct envs.
Update (23dd23c): The latest push addresses several previous concerns:
- ✅ Wheel extras resolution (imgui-bundle/typing-extensions): Fixed.
typing-extensionslowered to>=4.12.2to match isaacsim's pin. Theallextra now explicitly excludesnewton,ov,viser, and mimic's USD-to-URDF converter — packages whose pins conflict with isaacsim — with clear documentation directing users to install them separately. - ✅
allextra duplication: Fixed.allnow uses self-referential extras (isaaclab-dev[sb3,skrl,rl-games,rsl-rl,newton,rerun,rlinf]) instead of inlining every dependency. The wheel builder gains_expand_self_refs()to resolve these during generation — clean and DRY. - ✅ Newton pinning strategy: Good approach — loose
newton[sim]>=1.2.0in[project.dependencies]for the published wheel (co-resolves with isaacsim's pin), while[tool.uv.sources]tracks the git prerelease for the dev workspace. - 🟡 packaging upper-bound removal: Not addressed (original inline comment stands).
- 🟡 mimic→teleop conflict mapping in install.py: Not addressed.
New changes look good: Removal of the rl-all aggregate extra (replaced by iterating individual framework extras in install.py), the isaacsim==6.0.0.1 exact pin, and license exception additions are all clean. No new issues found.
There was a problem hiding this comment.
🔍 Code Review: Dependency Centralization
Thanks for this significant refactoring effort to consolidate dependencies into the root pyproject.toml. This is a valuable architectural improvement that will make dependency management much easier to maintain. Here's my analysis:
✅ Strengths
-
Single Source of Truth: Moving all dependencies to the root
pyproject.tomleliminates the scattered dependency declarations across ~15 sub-packages, making it much easier to audit and update versions. -
Well-Documented Changes: The changelog entries clearly explain the behavioral change (Newton is now a core dependency) and the architectural shift.
-
Comprehensive Test Updates: The tests have been properly updated to reflect the new structure, particularly in
test_uv_run_pyproject.pyandtest_wheel_builder_metadata.py. -
Conflict Resolution: Good use of
[tool.uv]conflictsto handle the teleop/mimic lxml version conflict gracefully. -
Wheel Builder Simplification: Removing
res/python_packages.tomland havinggen_pyproject.pyread directly from the root pyproject reduces duplication and potential for drift.
⚠️ Concerns & Suggestions
1. Pinning Strategy Inconsistency
The root pyproject mixes loose (>=) and exact (==) version specifiers without clear rationale:
"torch>=2.10", # loose
"pillow==12.1.1", # exact
"transformers==4.57.6", # exact
"matplotlib>=3.10.3", # looseSuggestion: Consider documenting why certain packages are pinned exactly (Isaac Sim compatibility?) vs. loosely. This helps future maintainers understand when they can update vs. when caution is needed.
2. [tool.uv.constraint-dependencies] Duplication Risk
[tool.uv]
constraint-dependencies = [
"torch==2.10.0",
"torchvision==0.25.0",
"torchaudio==2.10.0",
]While the comment explains the reasoning, there's now a disconnect: [project.dependencies] has torch>=2.10 but constraints pin ==2.10.0. If someone reads just the dependencies section, they might not realize the workspace resolution will differ from the published wheel resolution.
Suggestion: Add a comment in the [project.dependencies] section pointing to the constraint-dependencies section.
3. all Extra Expansion
The all extra now explicitly lists every dependency rather than referencing other extras:
all = [
"stable-baselines3>=2.6",
"tqdm",
"rich",
# ... many more
]This creates maintenance burden – if you update sb3 extra, you must also update all. The previous approach of referencing extras was DRYer.
Suggestion: Consider whether all could reference other extras, or add a test that validates all is a superset of all other extras.
4. Install CLI Changes Need Integration Testing
The changes to install.py are substantial:
- New
_root_core_dependencies()and_root_extra_dependencies()functions _install_centralized_dependencies()replacing per-package dependency resolution- Mapping changes (
ov[ovrtx]→rtxextra, etc.)
Question: Have these paths been tested with the actual ./isaaclab.sh -i command? Unit tests mock out the pip calls, so integration behavior could differ.
5. Documentation Updates May Be Incomplete
The docs changes show users should now run:
pip install "ray[default]>=2.47.0" "av>=12.3.0" ...instead of the simpler:
uv pip install -e "source/isaaclab_contrib[rlinf]"This is a UX regression for contrib users – they now need to know individual packages.
Question: Should there be a simpler command like ./isaaclab.sh -i rlinf to install these dependencies?
6. Missing h5py in Root Core Dependencies
isaaclab_mimic previously depended on h5py>=3.15.0 for data collection. I see h5py is now only in the RL utilities section, but is it still available for mimic workflows?
🔬 Minor Nits
-
Line 88 in
pyproject.toml: Comment says "RL utilities" butpackagingis listed there – ispackagingan RL utility? -
_TORCH_DISTRIBUTIONSset in install.py: Consider making this a frozenset for immutability. -
Changelog file naming:
centralize-deps-root-pyproject.rstis quite long – consider shorter names for future changelogs.
📋 Checklist Observations
Based on the PR checklist:
- Pre-commit checks: Not visible in the diff, please confirm
./isaaclab.sh --formatpasses - Tests: Unit tests updated ✅, but consider integration test coverage
- Changelog: Present ✅
-
extension.tomlversion: Not applicable (this is pyproject.toml changes)
Summary
This is a well-executed refactoring with clear benefits for maintainability. The main suggestions are around documenting pinning rationale, ensuring the all extra stays in sync, and verifying integration test coverage for the install CLI changes.
Would appreciate clarification on the integration testing and the contrib/rlinf UX change before merging.
Greptile SummaryThis PR consolidates all Isaac Lab third-party dependencies into the root
Confidence Score: 4/5The change is a large but mechanical reorganization: sub-packages lose their dep declarations and the root pyproject becomes the single authority. The logic is straightforward and well-tested; no runtime behavior changes outside the install CLI and wheel builder. The rework is sound and the new helpers mirror the old editable-install approach closely. The main open question is the silent removal of the packaging<24 upper bound that isaaclab_rl previously enforced — if any code path relies on pre-v24 packaging APIs, this would fail at runtime rather than install time. The pip-vs-uv-pip inconsistency in the docs is minor but could trip up users following the rlinf setup guide. The root pyproject.toml (specifically the packaging entry and the new all extra composition) and docs/source/experimental-features/bleeding-edge.rst (inconsistent pip vs uv pip install command) deserve a second look before merge. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["root pyproject.toml\n(single source of truth)"]
subgraph DevWorkspace ["uv Dev Workspace"]
A -->|"core deps + constraint-dependencies\n(torch pinned)"| B["uv lock / uv sync"]
A -->|"optional-dependencies extras"| B
A -->|"[tool.uv.sources] editable refs"| C["isaaclab* sub-packages\n(empty dependencies=[])"]
end
subgraph CLI ["./isaaclab.sh -i"]
D["command_install()"] -->|"_install_centralized_dependencies()"| E["_root_core_dependencies()\nreads root pyproject, strips torch + isaaclab*"]
D -->|"optional submodule extras"| F["_install_root_extra(extra)\nreads optional-dependencies[extra]"]
D -->|"_install_extra_feature()"| F
end
subgraph WheelBuilder ["tools/wheel_builder"]
G["build.sh"] -->|"gen_pyproject.py root/pyproject.toml"| H["gen_pyproject.py\nstrips isaaclab* workspace members\nmerges tool.isaaclab.wheel-extras"]
H --> I["generated wheel pyproject.toml\n(isaacsim extra from wheel-extras)"]
end
A -->|"_load_root_pyproject()"| CLI
A -->|"tomllib.load()"| WheelBuilder
Reviews (1): Last reviewed commit: "Move pyproject dependencies to root" | Re-trigger Greptile |
| # The base contrib package is installed with the core Isaac Lab packages. | ||
| # Install its optional dependencies (e.g., for RLinf VLA post-training) with pip: | ||
| pip install "ray[default]>=2.47.0" "av>=12.3.0" "numpydantic>=1.7.0" \ | ||
| "albumentations>=1.4.18" decord2 "dm_tree>=0.1.8" "diffusers>=0.35.0" \ | ||
| "timm>=1.0.14" "peft>=0.17.0" pandas |
There was a problem hiding this comment.
The install command here uses bare
pip install while the companion guide rlinf_vla_posttraining.rst uses uv pip install for the identical rlinf dependency list. In an Isaac Lab checkout where uv manages the environment, bare pip may resolve to the system Python rather than the active virtual environment, silently installing into the wrong interpreter. Both files should use the same tool.
| # The base contrib package is installed with the core Isaac Lab packages. | |
| # Install its optional dependencies (e.g., for RLinf VLA post-training) with pip: | |
| pip install "ray[default]>=2.47.0" "av>=12.3.0" "numpydantic>=1.7.0" \ | |
| "albumentations>=1.4.18" decord2 "dm_tree>=0.1.8" "diffusers>=0.35.0" \ | |
| "timm>=1.0.14" "peft>=0.17.0" pandas | |
| # The base contrib package is installed with the core Isaac Lab packages. | |
| # Install its optional dependencies (e.g., for RLinf VLA post-training) with uv pip: | |
| uv pip install "ray[default]>=2.47.0" "av>=12.3.0" "numpydantic>=1.7.0" \ | |
| "albumentations>=1.4.18" decord2 "dm_tree>=0.1.8" "diffusers>=0.35.0" \ | |
| "timm>=1.0.14" "peft>=0.17.0" pandas |
| "rl-games @ git+https://github.com/isaac-sim/[email protected]", | ||
| "gym", | ||
| "standard-distutils", | ||
| ] |
There was a problem hiding this comment.
Silent removal of
packaging<24 upper-bound
source/isaaclab_rl/pyproject.toml previously pinned packaging<24 — likely because packaging v24 dropped several deprecated APIs (e.g. LegacyVersion, parse_version returning a LegacyVersion for non-PEP-440 strings). The new root entry is simply "packaging" with no upper bound. If anything in isaaclab_rl or downstream code exercises those removed APIs, the install will succeed silently but fail at runtime. It is worth confirming no code path touches packaging.version.LegacyVersion or similar symbols before dropping this constraint.
|
Yes let's do this :D |
| uv sync --extra all | ||
| # Isaac Sim isn't in the dev pyproject; sync first so it isn't pruned. | ||
| uv pip install 'isaacsim[all,extscache]==${{ vars.ISAACSIM_BASE_VERSION || '6.0.0' }}' | ||
| uv pip install 'isaacsim[all,extscache]==${{ vars.ISAACSIM_BASE_VERSION || '6.0.0.1' }}' |
There was a problem hiding this comment.
Can we have one common place where we define version of IsaacSim? I can see this going out of sync very quickly.
In the past, in OV projects what worked well is VERSION file. That file in the root of the repo had definitions of all most important dependencies.
There was a problem hiding this comment.
Added a single source of truth for isaacsim version in the pyproject.toml
| }, | ||
| { | ||
| "package": "ovrtx", | ||
| "license": null, |
There was a problem hiding this comment.
We need to find out this information.
| --extra-index-url https://pypi.nvidia.com \\ | ||
| --index-strategy unsafe-best-match --prerelease=allow | ||
| uv pip install -U torch==2.10.0 torchvision==0.25.0 \\ | ||
| uv pip install -U torch==2.11.0 torchvision==0.26.0 \\ |
There was a problem hiding this comment.
Is there a way to also centralized this where possible? Or it's fine as we might not update it often?
| .. code-block:: bash | ||
|
|
||
| pip install --extra-index-url https://pypi.nvidia.com -e "source/isaaclab_ov[ovrtx]" | ||
| pip install --extra-index-url https://pypi.nvidia.com "ovrtx>=0.3.0,<0.4.0" |
There was a problem hiding this comment.
This seems to be another maintenance point, can we rely on one path?
|
|
||
| .. code-block:: bash | ||
|
|
||
| pip install -U torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128 |
There was a problem hiding this comment.
apply the same as sim version?
| OPTIONAL_SUBMODULE_ROOT_EXTRAS: dict[str, tuple[str, ...]] = { | ||
| "mimic": ("mimic", "teleop"), | ||
| "teleop": ("teleop",), |
There was a problem hiding this comment.
I don't full understand install.py yet, but could this also live in pyproject?
diegoferigo-rai
left a comment
There was a problem hiding this comment.
Thanks @StafaH for the contribution. I'm quite concerned about the direction this PR is taking, as it makes downstream consumption significantly more difficult.
In my view, the packages under src/ (which are the ones that could eventually be published independently to PyPI) should be self-contained. Each package should define all of its own metadata and dependencies in its pyproject.toml, so that it remains functional and installable outside the context of this repository.
I do like the idea of having a repository-wide lock file, but I would expect the dependency declarations at the top level to remain relatively slim and primarily aggregate the requirements of the packages in src/.
One potential benefit of the top-level pyproject.toml would be to centralize the stricter version constraints required for IsaacSim, while keeping the package-level dependency specifications in src/ more relaxed and suitable for standalone use.
Happy to discuss this further.
| # Third-party requirements are centralized in the root pyproject.toml | ||
| # (single source of truth for the uv workspace, the wheel builder, and the | ||
| # ./isaaclab.sh -i install CLI). | ||
| dependencies = [] |
There was a problem hiding this comment.
From a packaging perspective, I don't think this approach is viable.
I understand the need for an isaaclab-dev catch-all metapackage, but that should not influence the packaging semantics of the individual packages. Each package should remain valid as a standalone distribution, with a complete and accurate declaration of its own dependencies.
If stricter version pinning is needed for development or repository-wide compatibility, that can be enforced at the top-level isaaclab-dev package. The individual packages, however, should retain dependency specifications that reflect their actual requirements and support independent installation and distribution.
There was a problem hiding this comment.
that's a valid point. I think part of what we wanted to achieve here is that we can have a central location that guards the version pinning for our dependencies so that we don't end up with multiple packages specifying the same dependency, but could easily misalign in versioning because someone forgot to update it.
perhaps there's a better way to handle both of these needs. ideally we can have a central place that acts as the source of truth for all version pinning, and each package will hold its own list of dependencies and pull the versioning from the central location. maybe the per-package pyproject.toml files could be constructed from the central one?
There was a problem hiding this comment.
I think the individual packages should remain self-contained and define a sufficiently relaxed set of dependencies so that their package metadata is complete and accurate. Moving dependency definitions elsewhere would result in incomplete metadata. For example, if isaaclab-newton is published on PyPI, its metadata should explicitly declare newton as a dependency.
maybe the per-package pyproject.toml files could be constructed from the central one?
Regarding the central location, I see that as something serving repository development rather than package distribution. It is useful for maintaining a consistent development environment, but it should not dictate the structure of the individual packages. The individual packages should also not depend on isaaclab-dev, since that package is not intended for downstream distribution.
Instead, isaaclab-dev could collect the individual packages and provide a resolved development environment (e.g., through a workspace/lock file). This would allow you to:
- keep package metadata correct and independent
- avoid unnecessary strict pins in individual packages
- introduce strict pinning here, e.g. for isaacsim interoperability
- provide developers with a known-good environment
My preference would be:
- Individual packages specify dependencies with
>=constraints (and upper bounds only when strictly required, e.g. a new major release that already broke assumptions). isaaclab-devis structured as a workspace that collects all packages and generates the lock file (workspaces seems the perfect use case here).- If you want to ensure shared dependencies use exactly matching constraints across packages, a small validation python script in pre-commit / CI could parse the pyproject files and check for inconsistencies.
In general, I think it is better for individual packages to be under-constrained rather than over-constrained. Downstream users can always add stricter pins in their environment, but overly strict package requirements are difficult to override and can prevent otherwise valid installations.
| @@ -70,36 +31,6 @@ | |||
| train = "isaaclab.cli:train" | |||
| train_multigpu = "isaaclab.cli:train_multigpu" | |||
There was a problem hiding this comment.
As I already commented in the previous PR, these generic executable names are problematic in larger downstream environments.
I would suggest to refactor these play/train commands as subcommands of isaaclab, such as:
- isaaclab [...]
- isaaclab play [...]
- isaaclab train [...]
- isaaclab train --multi-gpu [...]
There was a problem hiding this comment.
is the concern here around the global definition of train/play in an environment?
There was a problem hiding this comment.
Yes, the main concern is the global definition of these commands in an environment.
isaaclab might be installed in a virtualenv or a larger conda environment together with many other packages, including ML/RL frameworks such as PyTorch, Lightning, Ray, etc. In these cases, the environment's bin/ directory contains entry points from all installed packages. Adding generic executables such as play or train makes the namespace ambiguous and can easily lead to conflicts with other projects.
This also creates problems for downstream packagers. For example, if someone wanted to create a python3-isaaclab package for Ubuntu/Debian, generic binaries like train or play would likely not be acceptable in /usr/bin and would need to be renamed or wrapped anyway.
This is admittedly an extreme example, but it highlights the underlying issue: these names do not uniquely identify IsaacLab functionality. Since you already have a natural namespace available through an isaaclab CLI, I think it would be cleaner and more future-proof to expose these as subcommands:
isaaclab play [...]
isaaclab train [...]
isaaclab train --multi-gpu [...]
Given the growing adoption of IsaacLab, having a single, well-defined command namespace would also make it easier for users and downstream maintainers to integrate it into larger environments.
There was a problem hiding this comment.
I agree, that's a good point, we should not pollute global namespace in any environment
| # Omniverse renderer / physics backends. Installable separately or together via | ||
| # the ``ov[ovphysx]`` / ``ov[ovrtx]`` / ``ov[all]`` install selectors. Pins mirror | ||
| # ``[tool.isaaclab.versions]``. | ||
| ov = ["ovphysx==0.4.13"] |
There was a problem hiding this comment.
should this be ovphysx instead?
| # The base contrib package is installed with the core Isaac Lab packages. | ||
| # Install its optional dependencies (e.g., for RLinf VLA post-training) with pip: | ||
| pip install "ray[default]>=2.47.0" "av>=12.3.0" "numpydantic>=1.7.0" \ | ||
| "albumentations>=1.4.18" decord2 "dm_tree>=0.1.8" "diffusers>=0.35.0" \ | ||
| "timm>=1.0.14" "peft>=0.17.0" pandas |
| # Install with optional extras (e.g., for RLinf VLA post-training) | ||
| uv pip install -e "source/isaaclab_contrib[rlinf]" | ||
| # The base contrib package is installed with the core Isaac Lab packages. | ||
| # Install its optional dependencies (e.g., for RLinf VLA post-training) with pip: |
There was a problem hiding this comment.
this feels a lot less user friendly. are we able to reference the rlinf option from pyproject directly somehow?
There was a problem hiding this comment.
Fixed with a better option that uses deps form root pyproject
| " ov[ovrtx|ovphysx|all]\n" | ||
| " rl[rsl-rl|skrl|sb3|rl-games] (default: all)\n" | ||
| " visualizer[kit|newton|rerun|viser] (default: all)\n" | ||
| " visualizer[kit|rerun|viser] (default: all)\n" |
There was a problem hiding this comment.
is newton still a valid option? it still seems to be listed in the selective install docs
| # Third-party requirements are centralized in the root pyproject.toml | ||
| # (single source of truth for the uv workspace, the wheel builder, and the | ||
| # ./isaaclab.sh -i install CLI). | ||
| dependencies = [] |
There was a problem hiding this comment.
that's a valid point. I think part of what we wanted to achieve here is that we can have a central location that guards the version pinning for our dependencies so that we don't end up with multiple packages specifying the same dependency, but could easily misalign in versioning because someone forgot to update it.
perhaps there's a better way to handle both of these needs. ideally we can have a central place that acts as the source of truth for all version pinning, and each package will hold its own list of dependencies and pull the versioning from the central location. maybe the per-package pyproject.toml files could be constructed from the central one?
| @@ -70,36 +31,6 @@ | |||
| train = "isaaclab.cli:train" | |||
| train_multigpu = "isaaclab.cli:train_multigpu" | |||
There was a problem hiding this comment.
is the concern here around the global definition of train/play in an environment?
Resolve against the dependency centralization refactor (isaac-sim#6009): - Re-apply the pin-pink 3.3.0 bump in the root pyproject.toml, the new single source for third-party dependencies (subpackage pyprojects and tools/wheel_builder/res/python_packages.toml no longer declare them). - Drop the isaaclab_rl changelog fragment: the packaging<24 bound this PR removed was already dropped upstream by the centralization, so the package is no longer touched. - Keep the prebundle dangling-symlink invariant bracketing the pip window in command_install; the refactor's new _install_centralized_dependencies step now runs inside the guarded window.
The pin-pink/daqp versions were mirrored in four places and had to be swept manually on every bump (3.1.0 -> 3.3.0 touched all of them). Following the dependency centralization in isaac-sim#6009, the root pyproject.toml is the single source of truth: - Replace the hardcoded _PINK_IK_STACK tuple with _pink_ik_stack(), which derives the requirement strings from [project.dependencies] (markers stripped; fails loud when a stack package is missing). - Build the force-install failure warning from the derived stack. - Drop the version literals from the pink_ik controller error messages, which run in installed environments without repo access; they now point at the root pyproject pins instead.
The bare train/play console scripts were removed from the isaaclab package by the central pyproject consolidation (isaac-sim#6009); the only remaining entry point is isaaclab. CI builds the PR merge commit, so the kitless image no longer contains .venv/bin/train and 'docker run ... train' fails with 'executable file not found'. Switch the docs verification command and the CI smoke test to 'isaaclab train', matching the uv workflow docs.
…undle deletion, pin-pink) (#6329) # Description Fixes the Docker-only error flood in nvbugs 6343978 (follow-up to #6288): streaming starts, but the log carries 438 `[Error]` lines and 14 Isaac Sim extensions fail to load. uv installs are unaffected. Two independent causes, both Isaac Lab's install mutating packages that Isaac Sim's extensions rely on. ## Summary - **`packaging` deleted from a shared prebundle.** The vestigial `packaging<24` bound in `isaaclab_rl` forced a downgrade; pip (which sees prebundle paths through `python.sh`'s environment) uninstalled `packaging-26.0` from the `omni.isaac.core_archive` prebundle. `omni.services.pip_archive` shares that package as per-file symlinks, so the deletion dangled the farm and cascaded into 13 extension startup failures. Fixed by relaxing the bound (no consumer requires it; now in the root `pyproject.toml` after the #6009 centralization), plus a **fail-loud invariant**: the install aborts if pip leaves a prebundled package with a dangling `__init__.py`. - **`pin-pink==3.1.0` too old for Isaac Sim 6.x.** `isaacsim.robot_motion.pink` needs `pink.exceptions.NoSolutionFound` (pink ≥ 3.3.0). Isaac Sim bundles pink 4.2.0, but the install replaces it with the kit-site-packages copy, pinned to 3.1.0 since pink 3.4+ broke the `pink_ik` task API (#5846). Bumped to **3.3.0**, which satisfies both consumers (`DampingTask.set_target_from_configuration` verified present on both wheels). The pin lives once in the root `pyproject.toml`; the install CLI now derives its force-install stack from those entries instead of a hardcoded copy. - **Impact**: an image rebuilt with this PR runs the exact reported command with **0 errors / 0 tracebacks / 0 extension failures** (broken image and the customer's attached log: 438 / 34 / 14). ## 1. Design notes 1. **Invariant scoping (empirical).** Every docker build routinely replaces prebundled dists (numpy, the cmeel/pinocchio stack, scipy, …) and leaves ~42 dangling links to files Python never imports at startup (test modules, `WHEEL`/license files, cmake hooks) — none of them `__init__.py`. The harmful class (this bug) dangles package `__init__.py` files, making the package unimportable for every extension that loads it. The install therefore fails only on a new dangling `__init__.py` and warns on other new dangling links. 2. **Considered and rejected: hiding prebundles from pip.** Routing pip to the concrete kit interpreter also prevents deletions, but changes dependency resolution build-wide: deps previously satisfied by prebundled copies get freshly resolved into kit site-packages, and the `isaacteleop` step then downgraded numpy to 2.3.5 and pin to 3.9.0 — CI measured the `rsl_rl` export flow at ~4.4× baseline (600s timeouts vs 168s). Prebundle-visible resolution is kept as-is, with the invariant as the guard. ## 2. Validation - **End-to-end on a fresh image built from this PR** (Isaac Sim base digest `99e4e4cfae17…`): `isaac-sim.streaming.sh --allow-root` reaches streaming at ~34 s, stays alive to timeout, with 0 Kit errors, 0 tracebacks, 0 extension-startup failures. Baked state: `packaging` 26.0 resolves from the prebundle, pink 3.3.0 imports from kit site-packages, 0 dangling `__init__.py` anywhere in the prebundles. - **Customer log cross-check**: the attached `isaaclab_streaming_20260702.log` has the identical 438-error class set as the local broken reproduction — both roots, no third issue. - **Invariant**: catches the packaging cascade in-container (RuntimeError naming the broken `omni.services.pip_archive` links) and passes the routine-residue case. - **Tests**: install CLI suites 148 passed / 1 skipped (invariant + derived-stack tests); `test_pink_ik_components.py` with pink 3.3.0 — 21 passed. CI fully green; the export flow runs at its 168 s baseline. Fixes nvbugs 6343978.
Follow the centralized dependency scheme (isaac-sim#6009): the pin moves in [tool.isaaclab.versions] with the mirrored [tool.uv] override. The pinned commit b24dc255 is the merge commit of the upstream inverse-dynamics feature (newton-physics/newton#2753). Newton's MuJoCo requirement moved to the 3.10 series upstream (newton-physics/newton#2980) while isaacsim-core 6.0.0.1 exact-pins mujoco-warp==3.8.0.3, so mujoco/mujoco-warp join override-dependencies — Isaac Lab owns the Newton stack, the same rationale as the existing newton and torch overrides. The previously failing isaaclab[all,isaacsim] wheel resolution now succeeds from the repo root with the overrides applied. With the pin guaranteeing the API, drop the availability guard in the articulation data and the skip gating in the tests; the accessor and tests are unconditional like the sibling Jacobian and mass-matrix accessors.
…etion, pin-pink) (#6436) # Description Cherry-pick of #6329 onto `release/3.0.0-beta2` — the follow-up to #6295 for NVBug 6410989 (continuation of NVBug 6343978): Docker streaming works but the log floods with 438 `[Error]` lines and 14 Isaac Sim extensions fail to load. uv installs are unaffected. ## 1. Summary - Relaxed the vestigial `packaging<24` bound in `isaaclab_rl` — it forced pip to downgrade `packaging` and delete it from the `omni.isaac.core_archive` prebundle, dangling the per-file symlink farm `omni.services.pip_archive` shares with it (13 extension startup failures). - Bumped `pin-pink` `3.1.0` → `3.3.0` at every pin site — `isaacsim.robot_motion.pink` needs `pink.exceptions.NoSolutionFound` (pink ≥ 3.3.0); pink 3.4+ stays excluded (pink_ik task-API break, #5846). The wheel spec's `pin-pink>=2.3.6` also becomes `==3.3.0` (it currently resolves to 4.x). - Added the fail-loud post-install invariant: the install aborts when pip leaves a prebundled Isaac Sim package with a dangling `__init__.py`; other new dangling links only warn. ## 2. Backport adaptations vs #6329 This branch predates the #6009 dependency centralization, so: - Pin edits land in `source/isaaclab/setup.py`, `source/isaaclab_rl/setup.py`, and `tools/wheel_builder/res/python_packages.toml` instead of the root `pyproject.toml`. - The install CLI keeps its hardcoded `_PINK_IK_STACK` (bumped to 3.3.0); the pyproject-derived stack from #6329 and its tests are not ported — the derivation would `KeyError` here since the root `pyproject.toml` has no pin entries on this branch. - `import pytest` added to `test_install_prebundle.py` (develop had it from an intermediate commit not on this branch). ## 3. Heads-up: the invariant can surface latent arm64 breakage On develop, the first nightly image build containing #6329 failed its arm64 leg because the invariant caught a real prebundle breakage (Pillow deleted from `omni.kit.pip_archive`). If this release branch's arm64 docker build has a similar latent issue, the invariant will turn a silently-broken image into a failed build — that is by design, but worth knowing before merging. ## 4. Test plan - [x] `source/isaaclab/test/cli/` — 141 passed locally (prebundle invariant tests included). - [ ] PR CI green. --------- Co-authored-by: Piotr Barejko <[email protected]>
…cker installs (#6467) # Description Cherry-pick of #6437 onto `release/3.0.0-beta2`, plus the `isaaclab_rl` pillow floor that this branch's per-package install path additionally needs. Unblocks the `Publish Docker Images` arm64 leg, which fails since the #6436 post-install invariant landed (run [29124274839](https://github.com/isaac-sim/IsaacLab/actions/runs/29124274839)). ## 1. Summary - Root cause on this branch: `moviepy` (unpinned in `isaaclab_rl`) resolves to 2.2.1, which caps `pillow<12.0`. The standalone `isaaclab_rl` install batches do not have `isaaclab`'s pillow pin in their resolution set, so pip downgrades pillow to 11.3.0 and uninstalls the prebundled pillow 12.2.0 from `omni.kit.pip_archive` — on aarch64 that dangles the per-file symlink farm (228 links incl. `PIL/__init__.py`) and breaks extension startup at runtime (nvbugs 6410989). Green builds before the invariant were already doing this silently (run [28493820266](https://github.com/isaac-sim/IsaacLab/actions/runs/28493820266) shows the same `Uninstalling pillow-12.2.0`). - `source/isaaclab_rl/setup.py`: added a `pillow>=12.1.1` floor — pip then backs moviepy off to 1.0.3 instead of touching pillow. - `source/isaaclab/setup.py`: relaxed the exact `pillow==12.2.0` pin to `>=12.1.1` (the #6437 change), so a future Isaac Sim base-image bump past the pinned version cannot force the same downgrade. - `tools/wheel_builder/res/python_packages.toml`: mirrored both changes. - `moviepy` bounded to `>=1.0.3,<2.0.0.dev0` (the #6454 change adapted to this branch): with the floor excluding stable moviepy 2.x, prerelease-allowing resolvers (uv with `prerelease = "allow"`) otherwise fall through to the broken `2.0.0.dev2` build; the bound makes pip and uv both resolve stable 1.0.3. ## 2. Backport adaptations vs #6437 - This branch predates the #6009 dependency centralization, so the floor lands in the two `setup.py` files + the wheel spec instead of the root `pyproject.toml`. - The extra `isaaclab_rl` floor is beta2-specific: develop resolves `isaaclab` + RL dependencies in one pip batch where the central floor is in scope; this branch installs per package, so `isaaclab_rl`'s own resolution needs the floor. An exact `pillow==12.2.0` in `isaaclab` demonstrably did not protect it — the failing run shows `Uninstalling pillow-12.2.0` during the `isaaclab_rl` batch with only a resolver warning for the isaaclab pin. ## 3. Test plan - [x] Resolver regression proof (py3.12 venv with pillow 12.2.0 preinstalled — the prebundle state — then `pip install --dry-run --report` of `source/isaaclab_rl`): - without fix: plans `pillow 11.3.0` + `moviepy 2.2.1` (the prebundle-deleting downgrade) - with fix: plans `moviepy 1.0.3` + `decorator 4.4.2`; pillow untouched - [x] `source/isaaclab/test/cli` — 140 passed, 1 skipped locally. - [x] pre-commit clean on all files. - [ ] Local amd64 `docker build -f docker/Dockerfile.base` with the fix (in progress). - [ ] PR CI green (incl. Build Base Docker Image + ARM installation tests). - [x] arm64 proof: diagnostic PR #6469 ran the exact publish arm64 leg (build-only) with this fix — green (run [29134632249](https://github.com/isaac-sim/IsaacLab/actions/runs/29134632249)): moviepy backtracks to 1.0.3, no pillow uninstall, post-install invariant passes. - [ ] After merge: the next `Publish Docker Images` run on `release/3.0.0-beta2` validates the arm64 leg — run [29124274839](https://github.com/isaac-sim/IsaacLab/actions/runs/29124274839) is the FAIL baseline.
…isaac-sim#6009) # Description Consolidates all dependencies into the central pyproject. This should make it easier to maintain a ground truth. ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…undle deletion, pin-pink) (isaac-sim#6329) # Description Fixes the Docker-only error flood in nvbugs 6343978 (follow-up to isaac-sim#6288): streaming starts, but the log carries 438 `[Error]` lines and 14 Isaac Sim extensions fail to load. uv installs are unaffected. Two independent causes, both Isaac Lab's install mutating packages that Isaac Sim's extensions rely on. ## Summary - **`packaging` deleted from a shared prebundle.** The vestigial `packaging<24` bound in `isaaclab_rl` forced a downgrade; pip (which sees prebundle paths through `python.sh`'s environment) uninstalled `packaging-26.0` from the `omni.isaac.core_archive` prebundle. `omni.services.pip_archive` shares that package as per-file symlinks, so the deletion dangled the farm and cascaded into 13 extension startup failures. Fixed by relaxing the bound (no consumer requires it; now in the root `pyproject.toml` after the isaac-sim#6009 centralization), plus a **fail-loud invariant**: the install aborts if pip leaves a prebundled package with a dangling `__init__.py`. - **`pin-pink==3.1.0` too old for Isaac Sim 6.x.** `isaacsim.robot_motion.pink` needs `pink.exceptions.NoSolutionFound` (pink ≥ 3.3.0). Isaac Sim bundles pink 4.2.0, but the install replaces it with the kit-site-packages copy, pinned to 3.1.0 since pink 3.4+ broke the `pink_ik` task API (isaac-sim#5846). Bumped to **3.3.0**, which satisfies both consumers (`DampingTask.set_target_from_configuration` verified present on both wheels). The pin lives once in the root `pyproject.toml`; the install CLI now derives its force-install stack from those entries instead of a hardcoded copy. - **Impact**: an image rebuilt with this PR runs the exact reported command with **0 errors / 0 tracebacks / 0 extension failures** (broken image and the customer's attached log: 438 / 34 / 14). ## 1. Design notes 1. **Invariant scoping (empirical).** Every docker build routinely replaces prebundled dists (numpy, the cmeel/pinocchio stack, scipy, …) and leaves ~42 dangling links to files Python never imports at startup (test modules, `WHEEL`/license files, cmake hooks) — none of them `__init__.py`. The harmful class (this bug) dangles package `__init__.py` files, making the package unimportable for every extension that loads it. The install therefore fails only on a new dangling `__init__.py` and warns on other new dangling links. 2. **Considered and rejected: hiding prebundles from pip.** Routing pip to the concrete kit interpreter also prevents deletions, but changes dependency resolution build-wide: deps previously satisfied by prebundled copies get freshly resolved into kit site-packages, and the `isaacteleop` step then downgraded numpy to 2.3.5 and pin to 3.9.0 — CI measured the `rsl_rl` export flow at ~4.4× baseline (600s timeouts vs 168s). Prebundle-visible resolution is kept as-is, with the invariant as the guard. ## 2. Validation - **End-to-end on a fresh image built from this PR** (Isaac Sim base digest `99e4e4cfae17…`): `isaac-sim.streaming.sh --allow-root` reaches streaming at ~34 s, stays alive to timeout, with 0 Kit errors, 0 tracebacks, 0 extension-startup failures. Baked state: `packaging` 26.0 resolves from the prebundle, pink 3.3.0 imports from kit site-packages, 0 dangling `__init__.py` anywhere in the prebundles. - **Customer log cross-check**: the attached `isaaclab_streaming_20260702.log` has the identical 438-error class set as the local broken reproduction — both roots, no third issue. - **Invariant**: catches the packaging cascade in-container (RuntimeError naming the broken `omni.services.pip_archive` links) and passes the routine-residue case. - **Tests**: install CLI suites 148 passed / 1 skipped (invariant + derived-stack tests); `test_pink_ik_components.py` with pink 3.3.0 — 21 passed. CI fully green; the export flow runs at its 168 s baseline. Fixes nvbugs 6343978.
Description
Consolidates all dependencies into the central pyproject. This should make it easier to maintain a ground truth.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there