Page MenuHomeFreeBSD

Mk/Uses/python.mk: prepare for python 3.10
ClosedPublic

Authored by AMDmi3 on Mar 25 2021, 12:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 3:14 AM
Unknown Object (File)
Sat, Dec 21, 8:30 PM
Unknown Object (File)
Fri, Dec 13, 4:46 PM
Unknown Object (File)
Sun, Dec 8, 3:52 PM
Unknown Object (File)
Sat, Dec 7, 2:24 AM
Unknown Object (File)
Tue, Dec 3, 6:36 AM
Unknown Object (File)
Nov 30 2024, 2:47 PM
Unknown Object (File)
Nov 29 2024, 10:03 PM
Subscribers

Details

Summary

Python versions with 2-digit minor are not currently supported, so fix it in preparation for python 3.10.

Test Plan

Tested in poudriere with python 3.10 as default. Example build log:

https://people.freebsd.org/~amdmi3/py310-libversion.log

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fix min/max version calculation

This is incomplete, PYTHON_REL has to be changed to a 5 digits string too

Switch PYTHON_REL to 5 digits

  • Mk: switch PYTHON_REL to 5 digits to support python 3.10.x
  • Mk: add framework support for two digit python minor version

Rebased and updated to latest version split into 3 commits:

  • 5 digit PYTHON_REL
  • 2 digit minor support
  • switch from PYTHON_PORTVERSION to PYTHON_DISTVERSION