[Bug 274643] Mk/Uses/python.mk: Add PEP517_WHEEL_VERSION to allow custom wheel versions

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 22 Oct 2023 09:33:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274643

            Bug ID: 274643
           Summary: Mk/Uses/python.mk: Add PEP517_WHEEL_VERSION to allow
                    custom wheel versions
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

Created attachment 245793
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245793&action=edit
patch

The attached patch allows the port to specify the wheel version when it is
different from DISTVERSION.

Wheel files can have versions different from DISTVERSION in several cases:
* when the intermediate revision is used, in which case
DISTVERSION=MAJOR.MINOR-NUM but the wheel might have the version MAJOR.MINOR or
the next, pending version.
* when wheel version has the word ".post" in it.

I think that this patch is better than patches in Bug#272771 in that it is
clean and straightforward.

I attempted to update misc/py-polars to the intermediate revision to fix
compilation and wasn't able to do this due to the use of ${DISTVERSION}. This
patch allows to build the intermediate revision of misc/py-polars.

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