Just create one local build system and build PyTorch with it, similar to copr but light and fast

Local Copr (lc)

A lightweight, secure local RPM build system for Fedora/RHEL-based distributions. Build and manage your own RPM repositories without needing Copr infrastructure.

Features

  • :building_construction: Local RPM Building - Build RPMs in isolated mock environments
  • :repeat_button: Git Automation - Push-to-Build workflow via lc-git hooks
  • :locked_with_key: GPG Signing Support - Optional package and repository signing
  • :shield: Resource Control - Memory and CPU limits for safe builds
  • :globe_with_meridians: Network Isolation - Offline builds by default
  • :package: Repository Management - Create and maintain local yum/dnf repositories
  • :link: Auto-Rebuild Planner - Intelligent dependency-based rebuild chains via lc-rebuild
  • :gear: Configuration per Package - JSON config files for package-specific build options
  • :wrench: Zero-Config - Works out of the box with sensible defaults

Architecture

Local Copr consists of four tools with clear separation of duties:

  • lc - Main build tool (runs as regular user)

    • Supports manual builds, chain builds via JSON plans
    • Automatic version bumping for incremental builds
    • Multiple storage backends (tmpfs, SSD, hybrid tmpfs)
  • lc-git - Git integration manager (manages local forges and build triggers)

    • Creates β€œforges” (git repositories) inside your RPM repository
    • Push-to-build workflow with automatic hook installation
    • Supports both local repos and remote cloning
  • lc-rebuild - Dependency planning tool using libdnf5

    • Analyzes package dependencies for rebuild orchestration
    • Generates build plans that respect dependency chains
    • Integrates with conf.json for per-package configuration
  • lc-add-repo - System integration tool (requires sudo)

    • Adds local repositories to system package manager
    • Handles GPG key import and repository registration
    • Manages repo files in /etc/yum.repos.d/

See GitHub - sunnyyangyangyang/local-copr

That is a pretty good idea!

I see from the GitHub page one can deploy it via Fedora Copr! Great!

May I ask if you used AI in building it?

yes, a lot of ai work, sorry for my poor programming skill

It’s okay to use AI, but Fedora requires disclosure of the fact.

1 Like

Edited the git repos to mention ai usage.

1 Like