Bug 255013 - Mk/Uses/python.mk: Prepare infrastructure support for Python 3.10
Summary: Mk/Uses/python.mk: Prepare infrastructure support for Python 3.10
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Package Infrastructure (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 17:55 UTC by Dmitry Marakasov
Modified: 2021-05-05 02:30 UTC (History)
4 users (show)

See Also:
koobs: maintainer-feedback? (python)
antoine: exp-run+


Attachments
Patch 1: switch to 5 digit PYTHON_REL (32.38 KB, patch)
2021-04-12 17:58 UTC, Dmitry Marakasov
no flags Details | Diff
Patch 2: support for 2 digit python minor version (3.62 KB, patch)
2021-04-12 17:58 UTC, Dmitry Marakasov
no flags Details | Diff
Patch 3: Switch from PYTHON_PORTVERSION to PYTHON_DISTVERSION (17.48 KB, patch)
2021-04-12 17:59 UTC, Dmitry Marakasov
no flags Details | Diff
Cumulative patch, actual version (54.28 KB, patch)
2021-04-24 20:50 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer 2021-04-12 17:55:39 UTC
Add infrastructure support for python 3.10.

- Switch to 5 digit PYTHON_REL due to two digit minor version
- Add the rest of 2 digit minor version support
- Switch from PYTHON_PORTVERSION to PYTHON_DISTVERSION to simplify adding prerelease python versions

Review: https://reviews.freebsd.org/D29418
Complete git branch: https://github.com/freebsd/freebsd-ports/compare/main...AMDmi3:python310
Comment 1 Dmitry Marakasov freebsd_committer 2021-04-12 17:58:11 UTC
Created attachment 224060 [details]
Patch 1: switch to 5 digit PYTHON_REL
Comment 2 Dmitry Marakasov freebsd_committer 2021-04-12 17:58:45 UTC
Created attachment 224061 [details]
Patch 2: support for 2 digit python minor version
Comment 3 Dmitry Marakasov freebsd_committer 2021-04-12 17:59:35 UTC
Created attachment 224062 [details]
Patch 3: Switch from PYTHON_PORTVERSION to PYTHON_DISTVERSION
Comment 4 Dmitry Marakasov freebsd_committer 2021-04-24 20:49:51 UTC
Requesting an exp-run
Comment 5 Dmitry Marakasov freebsd_committer 2021-04-24 20:50:51 UTC
Created attachment 224403 [details]
Cumulative patch, actual version

Patch for exp-run
Comment 6 Antoine Brodin freebsd_committer 2021-05-01 16:23:51 UTC
Exp-run looks fine.

@kai : can you review the patch?
Comment 7 Dmitry Marakasov freebsd_committer 2021-05-01 17:24:54 UTC
For the record, in private email wen@ has approved the patch. He also suggested to wait with python 310 import till first beta release, but I don't see any reason for this - we can and should start testing and improving 3.10 support as soon as possible.
Comment 8 Kubilay Kocak freebsd_committer freebsd_triage 2021-05-02 05:05:17 UTC
(In reply to Dmitry Marakasov from comment #7

Feel free to create a issue and review for, and land a lang/python310 port, suffixing the comment with (Development Version), just add python@ to reviewers
Comment 9 Kai Knoblich freebsd_committer 2021-05-04 09:14:21 UTC
(In reply to Antoine Brodin from comment #6)

No, I have to pass because I don't have much spare cycles at the moment.