[Bug 290653] Mk/Uses/python.mk: Enable building Python wheel files alongside packages

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Oct 2025 11:36:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290653

            Bug ID: 290653
           Summary: Mk/Uses/python.mk: Enable building Python wheel files
                    alongside packages
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: michaelo@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

Today's build tools (pip, uv) don't use system-installed packages/wheels. This
causes two problems:

* Public indexes like pypi don't contain system-specific wheels for FreeBSD
* Constant rebuilds of these packages consume a lot of resources

Solution: The ports system has everything to build wheels almost for free, when
paired with poudriere the output can be used to serve them publically,
privately or upload them to pypi. Make the ports system to build the wheels for
us and install them in a local cache. This solution is opt-in and has to be
enabled via make.conf.

poudriere integration:
https://gist.github.com/michael-o/d3377227cdebaa2a19c82dc3e8b91187

-- 
You are receiving this mail because:
You are on the CC list for the bug.