Skip to content

chore(docker): AUT-1344 uninstall pyelftools to address dependency/license issues - #736

Merged
balasaajay merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/uninstall-pyelftools
Aug 5, 2026
Merged

chore(docker): AUT-1344 uninstall pyelftools to address dependency/license issues#736
balasaajay merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/uninstall-pyelftools

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

pyelftools is pulled in as a transitive dependency but is not needed at runtime. It was identified as causing dependency/license issues in the container image. This mirrors the fix in NVIDIA-NeMo/Megatron-Bridge#5330.

What changed

  • Added pip uninstall -y pyelftools after dependency installation in the pip path of docker/common/install.sh.
  • Added uv pip uninstall pyelftools (without -y, since uv 0.7.2 does not support that flag) in the uv path.

Details

flowchart LR
    A[install.sh] --> B{USE_UV?}
    B -->|yes| C[uv sync + uv pip install]
    C --> D[uv pip uninstall pyelftools]
    B -->|no| E[pip install]
    E --> F[pip uninstall -y pyelftools]
Loading

docker/common/install.sh — added pyelftools uninstall in both the uv-based and pip-based install paths, right after dependencies are installed. The uv path omits -y because uv 0.7.2's pip uninstall does not accept that flag.

Tested

bash -n docker/common/install.sh — shell syntax validated (exit 0). Verified uv pip uninstall pyelftools (no -y) and pip uninstall -y pyelftools are the correct commands for their respective tools.

Remove pyelftools from the container image after dependency installation,
matching the approach in NVIDIA-NeMo/Megatron-Bridge#5330.

Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
@svcnemo-autobot
svcnemo-autobot requested a review from a team as a code owner August 5, 2026 17:22
@copy-pr-bot

copy-pr-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the CI label Aug 5, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test ab32e7f

@balasaajay
balasaajay merged commit 7cdfb32 into NVIDIA-NeMo:main Aug 5, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants