From 3d376da1e00162baadc58769d2feca778ee898fe Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 12 Mar 2022 22:46:00 +0100 Subject: [PATCH 1/4] fix python3 ci? --- ports/python3/portfile.cmake | 2 ++ ports/python3/vcpkg.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index 74733674c1bc48..d249cc15b5790f 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -217,6 +217,8 @@ else() "--with-ensurepip" "--with-suffix=" "--with-system-expat" + "--without-readline" + "--disable-test-modules" ) if(VCPKG_TARGET_IS_OSX) list(APPEND OPTIONS "LIBS=-liconv -lintl") diff --git a/ports/python3/vcpkg.json b/ports/python3/vcpkg.json index a57226bdb19896..1a2ec9110034a3 100644 --- a/ports/python3/vcpkg.json +++ b/ports/python3/vcpkg.json @@ -1,6 +1,7 @@ { "name": "python3", - "version-semver": "3.10.2", + "version": "3.10.2", + "port-version": 1, "description": "The Python programming language", "homepage": "https://github.com/python/cpython", "license": "Python-2.0", From dcaf6cb44da3e96de577ad777247729f209285ee Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 12 Mar 2022 23:13:57 +0100 Subject: [PATCH 2/4] add bz2d patch --- ports/python3/0010-bz2d.patch | 19 +++++++++++++++++++ ports/python3/portfile.cmake | 1 + 2 files changed, 20 insertions(+) create mode 100644 ports/python3/0010-bz2d.patch diff --git a/ports/python3/0010-bz2d.patch b/ports/python3/0010-bz2d.patch new file mode 100644 index 00000000000000..b6770a5646ba85 --- /dev/null +++ b/ports/python3/0010-bz2d.patch @@ -0,0 +1,19 @@ +diff --git a/ setup.py b/ setup.py +index 43e807f20..df4d43d3d 100644 +--- a/ setup.py ++++ b/ setup.py +@@ -1741,6 +1741,14 @@ def detect_compress_exts(self): + self.add(Extension('_bz2', ['_bz2module.c'], + libraries=['bz2'], + extra_link_args=bz2_extra_link_args)) ++ elif (self.compiler.find_library_file(self.lib_dirs, 'bz2d')): ++ if MACOS: ++ bz2_extra_link_args = ('-Wl,-search_paths_first',) ++ else: ++ bz2_extra_link_args = () ++ self.add(Extension('_bz2', ['_bz2module.c'], ++ libraries=['bz2d'], ++ extra_link_args=bz2_extra_link_args)) + else: + self.missing.append('_bz2') + diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index d249cc15b5790f..d99a0fd673bf55 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -14,6 +14,7 @@ set(PATCHES 0004-dont-copy-vcruntime.patch 0005-only-build-required-projects.patch 0009-python.pc.patch + 0010-bz2d.patch ) if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") list(PREPEND PATCHES 0001-static-library.patch) From 18d8783a68691be9b9b83ab2640836cd00415963 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 12 Mar 2022 23:17:06 +0100 Subject: [PATCH 3/4] fix extra spaces --- ports/python3/0010-bz2d.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/python3/0010-bz2d.patch b/ports/python3/0010-bz2d.patch index b6770a5646ba85..162cc7cabab272 100644 --- a/ports/python3/0010-bz2d.patch +++ b/ports/python3/0010-bz2d.patch @@ -1,7 +1,7 @@ -diff --git a/ setup.py b/ setup.py +diff --git a/setup.py b/setup.py index 43e807f20..df4d43d3d 100644 ---- a/ setup.py -+++ b/ setup.py +--- a/setup.py ++++ b/setup.py @@ -1741,6 +1741,14 @@ def detect_compress_exts(self): self.add(Extension('_bz2', ['_bz2module.c'], libraries=['bz2'], From 9a13b2a78eeacf73fe10ca214aa0cf0841058313 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 12 Mar 2022 23:21:48 +0100 Subject: [PATCH 4/4] version stuff --- versions/baseline.json | 2 +- versions/p-/python3.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/versions/baseline.json b/versions/baseline.json index c6782a4d05506f..f9a31fcc4222cf 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5574,7 +5574,7 @@ }, "python3": { "baseline": "3.10.2", - "port-version": 0 + "port-version": 1 }, "qca": { "baseline": "2.3.4", diff --git a/versions/p-/python3.json b/versions/p-/python3.json index 2ccde84c0420c3..a89a02eb10de82 100644 --- a/versions/p-/python3.json +++ b/versions/p-/python3.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "4e348bd50d8c4252bda83903ce22f1e60d34be88", + "version": "3.10.2", + "port-version": 1 + }, { "git-tree": "0cf2e0bbf8fd712f82ed1997be82b136f1c13108", "version-semver": "3.10.2",