build: add backports-tarfile dependency for CLI builder#537
Merged
elookpotts-nvidia merged 1 commit intomainfrom Feb 26, 2026
Merged
build: add backports-tarfile dependency for CLI builder#537elookpotts-nvidia merged 1 commit intomainfrom
elookpotts-nvidia merged 1 commit intomainfrom
Conversation
fernandol-nvidia
approved these changes
Feb 26, 2026
vvnpn-nv
approved these changes
Feb 26, 2026
|
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.
Description
The
setuptoolsupgrade to 82.0.0 (introduced in #485) brought in a newer vendored version ofjaraco.contextthat conditionally importsbackports.tarfileon Python < 3.12. Since the CLI is built with Python 3.10, this import always executes, butbackports-tarfilewas not in the project's dependencies — causing every PyInstaller-built CLI binary to crash immediately on startup withModuleNotFoundError: No module named 'backports', regardless of platform.Verification: built
//src/cli/packaging/macos:macos_client_unsigned_pkg_arm64, install it, and confirmosmo login <url>no longer crashes withModuleNotFoundErrorIssue #None
Checklist