Skip to content

Commit 30564ec

Browse files
committed
Ship python 3.13 modules alongside
1 parent 481e05a commit 30564ec

File tree

10 files changed

+3431
-16
lines changed

10 files changed

+3431
-16
lines changed

Diff for: src/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,5 @@ $(TESTRESULTS): $(PYTESTS)
101101

102102
FRC:
103103

104+
.NO_PARALLEL: $(PYTESTS)
105+

Diff for: src/Makefile.com

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CFLAGS = -m64 -Wall -Werror -Wextra -gdwarf-2 -gstrict-dwarf \
3434
CPPFLAGS = -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
3535

3636
# Whitespace separated list of versions to build and test.
37-
PYVERSIONS = 3.12
37+
PYVERSIONS = 3.12 3.13
3838
# The single version used for shebang lines and packaging.
3939
PYVER = 3.12
4040

Diff for: src/modules/p5p.py

-4
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,6 @@ def add(self, pathname, arcname=None):
598598
self.__queue_offset += entry_sz
599599
self.__queue.append((pathname, ti.name))
600600

601-
# Discard tarinfo; it would be more efficient to keep these in
602-
# memory, but at a significant memory footprint cost.
603-
ti.tarfile = None
604601
del ti
605602

606603
def __add_publisher_files(
@@ -1311,7 +1308,6 @@ def close(self, progtrack=None):
13111308
ti = tfile.members.pop()
13121309
if progtrack:
13131310
progtrack.archive_add_progress(1, tfile.offset - start_offset)
1314-
ti.tarfile = None
13151311
del ti
13161312

13171313
# Cleanup temporary files.

Diff for: src/pkg/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ INCORP = consolidation\:ips\:ips-incorporation
108108

109109
PM_TRANSFORMS = defaults
110110
# For python version migrations
111-
#PM_TRANSFORMS += pynext
111+
PM_TRANSFORMS += pynext
112112

113113
i386_DEFINES = \
114114
i386_ONLY='' \

Diff for: src/pkg/external_deps.txt

+13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@
1111
pkg:/library/python-3/rapidjson-312
1212
pkg:/library/python-3/setuptools-312
1313
#
14+
pkg:/runtime/python-313
15+
pkg:/library/python-3/cffi-313
16+
pkg:/library/python-3/coverage-313
17+
pkg:/library/python-3/cryptography-313
18+
pkg:/library/python-3/jsonrpclib-313
19+
pkg:/library/python-3/jsonschema-313
20+
pkg:/library/python-3/pybonjour-313
21+
pkg:/library/python-3/pycurl-313
22+
pkg:/library/python-3/pyopenssl-313
23+
pkg:/library/python-3/rapidjson-313
24+
pkg:/library/python-3/setuptools-313
25+
#
1426
pkg:/system/library/python/libbe-312
27+
pkg:/system/library/python/libbe-313
1528
#
1629
pkg:/SUNWcs
1730
pkg:/archiver/gnu-tar

Diff for: src/pkg/manifests/package:pkg.p5m

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#
2929
<include bundledlicences.3.12.core.p5m>
3030
<include bundledmodules.3.12.core.p5m>
31+
<include bundledmodules.3.13.core.p5m>
3132
set name=pkg.fmri value=pkg:/package/pkg@$(PKGVERS)
3233
set name=pkg.summary value="Image Packaging System - pkg(7)"
3334
set name=pkg.description \

Diff for: src/pkg/manifests/system:zones:brand:bhyve.p5m

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<include bundledlicences.3.12.bhyve.p5m>
1717
<include bundledmodules.3.12.bhyve.p5m>
18+
<include bundledmodules.3.13.bhyve.p5m>
1819
set name=pkg.fmri value=pkg:/system/zones/brand/bhyve@$(PKGVERS)
1920
set name=pkg.summary value="Image Packaging System branded zone - bhyve zones"
2021
set name=pkg.description value="Support for bhyve branded zones"

Diff for: src/pkg/transforms/pynext

+9-7
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
# version of python alongside the existing ones to aid transition or
1616
# testing
1717

18+
<transform dir path=$(PYDIR)$ -> emit %(action.name) path=TBD%(path) >
19+
1820
<transform file dir path=$(PYDIRVP) -> \
1921
emit %(action.name) path=TBD%(path) \
2022
pkg.depend.bypass-generate=%(pkg.depend.bypass-generate;notfound='notfound')>
2123

22-
<transform path=TBD -> delete pkg.depend.bypass-generate notfound>
24+
<transform file path=usr/lib/brand/bhyve/(uefi/)?__pycache__/ -> \
25+
emit %(action.name) path=TBD%(path) \
26+
pkg.depend.bypass-generate=%(pkg.depend.bypass-generate;notfound='notfound')>
2327

24-
# Deliver 3.12 modules alongside the 3.11 ones (temporary, during migration)
25-
<transform path=TBD -> edit path 312 311>
26-
<transform path=TBD -> edit path 3.12 3.11>
28+
<transform path=TBD -> delete pkg.depend.bypass-generate notfound>
2729

28-
# During the 3.11 to 3.12 upgrade, we need to also translate the loadable
29-
# module names as they were unqualified with 3.11
30-
<transform path=TBD -> edit path cpython-311-$(TRIPLE) cpython-311>
30+
# Deliver new modules alongside the old ones (temporary, during migration)
31+
<transform path=TBD -> edit path 312 313>
32+
<transform path=TBD -> edit path 3.12 3.13>
3133

3234
<transform path=TBD -> edit path TBD ''>
3335

0 commit comments

Comments
 (0)