Repository navigation
Fix flatdict version pin to allow 4.1.0+ (develop) - #5181
Conversation
flatdict==4.0.0 (and 4.0.1) are source distributions that require pkg_resources during the build step. On modern Python (3.10+) with newer pip/setuptools, the build isolation environment often lacks pkg_resources, causing installation to fail with: ModuleNotFoundError: No module named 'pkg_resources' flatdict 4.1.0 ships as a wheel and installs without build issues. The FlatDict API used in isaaclab (FlatDict constructor with delimiter) is fully compatible across 4.0.0 → 4.1.0. Fixes #4576
Greptile SummaryRelaxes the Confidence Score: 5/5Safe to merge; both findings are P2 suggestions that do not affect runtime correctness or installation success. The change is minimal and well-motivated — it unblocks installation on modern Python without breaking the existing API usage. The two remaining findings (missing upper bound and missing CHANGELOG entry) are P2 quality/process suggestions; neither blocks a correct install or introduces a functional defect. No files require blocking attention; source/isaaclab/setup.py has two P2 style suggestions. Important Files Changed
Sequence DiagramsequenceDiagram
participant pip
participant PyPI
participant isaaclab
Note over pip,PyPI: Before fix (flatdict==4.0.0)
pip->>PyPI: Request flatdict 4.0.0
PyPI-->>pip: flatdict-4.0.0.tar.gz (sdist)
pip->>pip: Build wheel (requires pkg_resources)
pip-->>isaaclab: ModuleNotFoundError: pkg_resources
Note over pip,PyPI: After fix (flatdict>=4.0.0)
pip->>PyPI: Request flatdict >=4.0.0
PyPI-->>pip: flatdict-4.1.0-py3-none-any.whl (pre-built)
pip-->>isaaclab: Install success
Reviews (1): Last reviewed commit: "fix: relax flatdict version pin to >=4.0..." | Re-trigger Greptile |
| "coverage==7.6.1", | ||
| "debugpy>=1.8.20", | ||
| "flatdict==4.0.0", | ||
| "flatdict>=4.0.0", |
There was a problem hiding this comment.
Per project guidelines, every change targeting a source/<package>/ directory requires a new patch-version section in source/isaaclab/docs/CHANGELOG.rst. This PR modifies source/isaaclab/setup.py but no changelog entry was added. A new version (e.g. 4.5.26) with a Fixed bullet noting the relaxed flatdict pin is expected.
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Antoine RICHARD <[email protected]>
Description
Relaxes the
flatdictversion pin from==4.0.0to>=4.0.0insource/isaaclab/setup.py.Motivation
flatdict==4.0.0(and 4.0.1) are source distributions (.tar.gz) that requirepkg_resourcesduring the build step. On modern Python (3.10+) with newer pip/setuptools, the build isolation environment often lackspkg_resources, causing installation to fail with:flatdict 4.1.0ships as a pre-built wheel (.whl) and installs cleanly without any build step.Changes
source/isaaclab/setup.py: Changedflatdict==4.0.0→flatdict>=4.0.0Verification
The
FlatDictAPI used in isaaclab (FlatDict(dict, delimiter='.')insimulation_context.pyandtest_simulation_render_config.py) is fully compatible across 4.0.0 → 4.1.0. Tested both the constructor and nested dict flattening.Fixes #4576