Skip to content

build: add backports-tarfile dependency for CLI builder#537

Merged
elookpotts-nvidia merged 1 commit intomainfrom
elookpotts/cli-backports
Feb 26, 2026
Merged

build: add backports-tarfile dependency for CLI builder#537
elookpotts-nvidia merged 1 commit intomainfrom
elookpotts/cli-backports

Conversation

@elookpotts-nvidia
Copy link
Copy Markdown
Contributor

Description

The setuptools upgrade to 82.0.0 (introduced in #485) brought in a newer vendored version of jaraco.context that conditionally imports backports.tarfile on Python < 3.12. Since the CLI is built with Python 3.10, this import always executes, but backports-tarfile was not in the project's dependencies — causing every PyInstaller-built CLI binary to crash immediately on startup with ModuleNotFoundError: No module named 'backports', regardless of platform.

Verification: built //src/cli/packaging/macos:macos_client_unsigned_pkg_arm64, install it, and confirm osmo login <url> no longer crashes with ModuleNotFoundError

Issue #None

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@elookpotts-nvidia elookpotts-nvidia merged commit 5932b05 into main Feb 26, 2026
7 checks passed
@elookpotts-nvidia elookpotts-nvidia deleted the elookpotts/cli-backports branch February 26, 2026 04:32
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-02-26 04:33 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants