Monday, October 31, 2022

[New(ish)] Python 3.11.0

Here's the initial port for Python 3.11.0

I've tested on amd64 and sparc64.

Python upstream switched a number of autoconf things from command line
switches to environment variables. We may see it show up in later releases
of the other 3.x versions, but for now we'll just set what we need in the
3.11 Makefile.

This still suffers from the same problem 3.10 does where the readline module
does not build properly. (3.9 makes the same complaint, but somehow a
working version of the module gets built).

ok?

--Kurt

Index: python.port.mk
===================================================================
RCS file: /cvs/ports/lang/python/python.port.mk,v
retrieving revision 1.169
diff -u -p -r1.169 python.port.mk
--- python.port.mk 23 Oct 2022 10:14:04 -0000 1.169
+++ python.port.mk 31 Oct 2022 21:22:01 -0000
@@ -74,7 +74,8 @@ MODPY_VERSION ?= ${MODPY_DEFAULT_VERSION
# verify if MODPY_VERSION found is correct
.if ${MODPY_VERSION} != "2.7" && \
${MODPY_VERSION} != "3.9" && \
- ${MODPY_VERSION} != "3.10"
+ ${MODPY_VERSION} != "3.10" && \
+ ${MODPY_VERSION} != "3.11"
ERRORS += "Fatal: unknown or unsupported MODPY_VERSION: ${MODPY_VERSION}"
.endif

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/python/Makefile,v
retrieving revision 1.77
diff -u -p -r1.77 Makefile
--- Makefile 11 Aug 2022 02:15:02 -0000 1.77
+++ Makefile 31 Oct 2022 21:22:01 -0000
@@ -2,5 +2,6 @@ SUBDIR =
SUBDIR += 2.7
SUBDIR += 3.9
SUBDIR += 3.10
+SUBDIR += 3.11

.include <bsd.port.subdir.mk>

No comments:

Post a Comment