From 50cdcaa971b9e4e9c7954ba422ab10a32a2400c4 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 26 Nov 2025 15:15:05 +0100 Subject: [PATCH 01/57] python 3.15.0a2 --- recipe/conda_build_config.yaml | 6 ++--- recipe/meta.yaml | 16 ++++++++------ ...2-Change-FD_SETSIZE-from-512-to-2048.patch | 6 ++--- ...0002-Win32-Do-not-download-externals.patch | 4 ++-- ...-so-that-it-looks-in-sys.prefix-lib-.patch | 4 ++-- ...-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch | 6 ++--- recipe/patches/0005-Unvendor-openssl.patch | 12 +++++----- recipe/patches/0006-Unvendor-sqlite3.patch | 4 ++-- ...dd-CondaEcosystemModifyDllSearchPath.patch | 12 +++++----- recipe/patches/0008-Doing-d1trimfile.patch | 16 +++++++------- .../patches/0009-cross-compile-darwin.patch | 16 +++++++------- .../patches/0010-Fix-TZPATH-on-windows.patch | 8 +++---- ...ch-work-with-SYSTEM_VERSION_COMPAT-1.patch | 10 ++++----- recipe/patches/0012-Unvendor-bzip2.patch | 4 ++-- recipe/patches/0013-Unvendor-libffi.patch | 4 ++-- recipe/patches/0014-Unvendor-tcltk.patch | 4 ++-- recipe/patches/0015-unvendor-xz.patch | 4 ++-- recipe/patches/0016-unvendor-zlib.patch | 14 ++++++------ ...-not-pass-g-to-GCC-when-not-Py_DEBUG.patch | 14 ++++++------ recipe/patches/0018-Unvendor-expat.patch | 4 ++-- .../patches/0019-Remove-unused-readelf.patch | 6 ++--- ...t-checksharedmods-if-cross-compiling.patch | 8 +++---- .../0021-Override-configure-LIBFFI.patch | 8 +++---- recipe/patches/0022-Unvendor-libmpdec.patch | 14 ++++++------ recipe/patches/0023-Brand-conda-forge.patch | 8 +++---- ...d_t-as-it-might-conflict-with-the-ac.patch | 18 +++++++-------- recipe/patches/0025-Unvendor-zstd.patch | 4 ++-- ...IL_DISABLED-in-windows-to-match-unix.patch | 8 +++---- ...and-guard-for-types_world_is_stopped.patch | 22 +++++++++++++++++++ 29 files changed, 144 insertions(+), 120 deletions(-) create mode 100644 recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 9d84028dd..2a216093a 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -2,13 +2,13 @@ MACOSX_SDK_VERSION: # [osx and x86_64] - 11.0 # [osx and x86_64] # See https://docs.python.org/3.14/whatsnew/3.14.html#a-new-type-of-interpreter c_compiler_version: # [osx] - - 20.1 # [osx] + - 21 # [osx] cxx_compiler_version: # [osx] - - 20.1 # [osx] + - 21 # [osx] # Override Python `zip_keys` python: - - 3.14 + - 3.15 numpy: - 1.16 python_impl: diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 1b26b7a00..599ffc703 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ -{% set version = "3.14.2" %} -{% set dev = "" %} +{% set version = "3.15.0" %} +{% set dev = "a2" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} @@ -46,7 +46,7 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - md5: 19a31b2838db3b53f9f2db8782bf8773 + md5: 8a16a56591101a698e8d0779d41782f4 patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch @@ -80,6 +80,8 @@ source: {% if freethreading == "yes" %} - patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch {% endif %} + # https://github.com/python/cpython/pull/142039 + - patches/0027-Expand-guard-for-types_world_is_stopped.patch build: number: {{ build_number }} @@ -159,10 +161,10 @@ outputs: - llvm-tools # [osx] - ld_impl_{{ target_platform }} # [linux] - binutils_impl_{{ target_platform }} # [linux] - - clang-19 # [not win] - - llvm-tools-19 # [not win] - - clang 19.* # [win] - - llvm-tools 19.* # [win] + - clang-21 # [not win] + - llvm-tools-21 # [not win] + - clang 21.* # [win] + - llvm-tools 21.* # [win] - bzip2 # [build_platform != target_platform] - libsqlite # [build_platform != target_platform] - liblzma-devel # [build_platform != target_platform] diff --git a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch index 348ac3d5d..c03c8843d 100644 --- a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +++ b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch @@ -1,7 +1,7 @@ -From 3dff368f2f15764584cd9d90234ae7e8248e4e4d Mon Sep 17 00:00:00 2001 +From f0d0c464af24f7fbbc430abaa005eb298e18e5c8 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:53:55 +0100 -Subject: [PATCH 01/26] Win32: Change FD_SETSIZE from 512 to 2048 +Subject: [PATCH 01/27] Win32: Change FD_SETSIZE from 512 to 2048 https://github.com/ContinuumIO/anaconda-issues/issues/1241 --- @@ -9,7 +9,7 @@ https://github.com/ContinuumIO/anaconda-issues/issues/1241 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c -index d234d504cb5..3856307c611 100644 +index 19fe509ec5e..02c9665afa7 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -44,7 +44,7 @@ diff --git a/recipe/patches/0002-Win32-Do-not-download-externals.patch b/recipe/patches/0002-Win32-Do-not-download-externals.patch index 2fc7dfd08..b5638a655 100644 --- a/recipe/patches/0002-Win32-Do-not-download-externals.patch +++ b/recipe/patches/0002-Win32-Do-not-download-externals.patch @@ -1,7 +1,7 @@ -From 15bfc5e613ae654bd685f65d975d79ce88d3853d Mon Sep 17 00:00:00 2001 +From 6a15ec3d4e45c28bff8510c81f571c6112b13497 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Thu, 7 Sep 2017 11:35:47 +0100 -Subject: [PATCH 02/26] Win32: Do not download externals +Subject: [PATCH 02/27] Win32: Do not download externals --- PCbuild/build.bat | 2 +- diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index 626e4df29..7f4b0ba92 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -1,7 +1,7 @@ -From 2e9e95c2e3aa8d212a302de52f19d129c5068d57 Mon Sep 17 00:00:00 2001 +From 299fc079ce68d641b415cb3d8843e029d7fc5b6c Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 5 Dec 2017 22:47:59 +0000 -Subject: [PATCH 03/26] Fix find_library so that it looks in sys.prefix/lib +Subject: [PATCH 03/27] Fix find_library so that it looks in sys.prefix/lib first --- diff --git a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch index cd2f67fad..fd2a3a12f 100644 --- a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +++ b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch @@ -1,7 +1,7 @@ -From 12999f1ec012f5c3859aa23070a5d293b852afda Mon Sep 17 00:00:00 2001 +From 5bb72c8e81480293d90558a693e1be1550d512b6 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Sat, 27 Oct 2018 18:48:30 +0100 -Subject: [PATCH 04/26] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS +Subject: [PATCH 04/27] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS is not 0 Co-authored-by: Isuru Fernando @@ -23,7 +23,7 @@ index 1e75993480a..ff96c8e1990 100644 !progname_to_dict(dict, "real_executable") || !library_to_dict(dict, "library") || diff --git a/Modules/getpath.py b/Modules/getpath.py -index b89d7427e3f..21df0efac12 100644 +index ceb605a75c8..6d5b9c0d480 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -52,6 +52,7 @@ diff --git a/recipe/patches/0005-Unvendor-openssl.patch b/recipe/patches/0005-Unvendor-openssl.patch index 3be8ce468..5c1aa3f81 100644 --- a/recipe/patches/0005-Unvendor-openssl.patch +++ b/recipe/patches/0005-Unvendor-openssl.patch @@ -1,7 +1,7 @@ -From f3da6c061da6528ac2aa9069418e2abec3e81bec Mon Sep 17 00:00:00 2001 +From 17fcde2d5bbbe8236afdd38526ad7b59a6868ab5 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Sat, 24 Nov 2018 20:38:02 -0600 -Subject: [PATCH 05/26] Unvendor openssl +Subject: [PATCH 05/27] Unvendor openssl Co-authored-by: Isuru Fernando --- @@ -90,10 +90,10 @@ index 7ca750dda8f..17eee400ebb 100644 diff --git a/PCbuild/python.props b/PCbuild/python.props -index d4d9a54248d..94fb385c1fb 100644 +index 7840e2a1cfc..253aa66f477 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props -@@ -67,6 +67,7 @@ +@@ -68,6 +68,7 @@ $(EXTERNALS_DIR) @@ -101,13 +101,13 @@ index d4d9a54248d..94fb385c1fb 100644 $([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`)) $(ExternalsDir)\ -@@ -74,20 +75,8 @@ +@@ -75,20 +76,8 @@ - $(ExternalsDir)sqlite-3.50.4.0\ - $(ExternalsDir)bzip2-1.0.8\ -- $(ExternalsDir)xz-5.2.5\ +- $(ExternalsDir)xz-5.8.1.1\ - $(ExternalsDir)libffi-3.4.4\ - $(libffiDir)$(ArchName)\ - $(libffiOutDir)include diff --git a/recipe/patches/0006-Unvendor-sqlite3.patch b/recipe/patches/0006-Unvendor-sqlite3.patch index d97f464ea..4bc21b0b4 100644 --- a/recipe/patches/0006-Unvendor-sqlite3.patch +++ b/recipe/patches/0006-Unvendor-sqlite3.patch @@ -1,7 +1,7 @@ -From 73585456429c8ce96c088d3403afd7e430bdeb85 Mon Sep 17 00:00:00 2001 +From 5d333d7c6aaa395b4bccee40fec534aa7c19d7f5 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Tue, 5 Oct 2021 12:42:06 -0700 -Subject: [PATCH 06/26] Unvendor sqlite3 +Subject: [PATCH 06/27] Unvendor sqlite3 --- PCbuild/_sqlite3.vcxproj | 11 +++++------ diff --git a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch index fa194652d..20f7f48e9 100644 --- a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch +++ b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch @@ -1,7 +1,7 @@ -From 966dfbe7e1972661885959ec72d34d52af373698 Mon Sep 17 00:00:00 2001 +From 83958047fd8a64f8c049735d5d8594bd5673a696 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 24 Dec 2019 18:37:17 +0100 -Subject: [PATCH 07/26] Add CondaEcosystemModifyDllSearchPath() +Subject: [PATCH 07/27] Add CondaEcosystemModifyDllSearchPath() The python interpreter is modifed so that it works as if the python interpreter was called with the following conda directories. @@ -33,10 +33,10 @@ Co-authored-by: Isuru Fernando 1 file changed, 95 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c -index 352787c6495..4fd4fcb0f6e 100644 +index 67368b5ce07..e08b2df1226 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c -@@ -80,6 +80,10 @@ +@@ -81,6 +81,10 @@ #ifdef MS_WINDOWS # undef BYTE @@ -47,7 +47,7 @@ index 352787c6495..4fd4fcb0f6e 100644 #endif #define PUTS(fd, str) (void)_Py_write_noraise(fd, str, (int)strlen(str)) -@@ -114,6 +118,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) +@@ -115,6 +119,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) = _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie); _Py_COMP_DIAG_POP @@ -141,7 +141,7 @@ index 352787c6495..4fd4fcb0f6e 100644 static int runtime_initialized = 0; -@@ -131,6 +222,10 @@ _PyRuntime_Initialize(void) +@@ -132,6 +223,10 @@ _PyRuntime_Initialize(void) } runtime_initialized = 1; diff --git a/recipe/patches/0008-Doing-d1trimfile.patch b/recipe/patches/0008-Doing-d1trimfile.patch index a80d79b6e..ec9828e04 100644 --- a/recipe/patches/0008-Doing-d1trimfile.patch +++ b/recipe/patches/0008-Doing-d1trimfile.patch @@ -1,7 +1,7 @@ -From 17412eb7031d69a13c749f5d6a5f9cdef01c1188 Mon Sep 17 00:00:00 2001 +From 5c39a338040451810cc97adc1d0088e914cccd07 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 31 Dec 2019 21:47:47 +0100 -Subject: [PATCH 08/26] Doing d1trimfile +Subject: [PATCH 08/27] Doing d1trimfile --- PCbuild/_asyncio.vcxproj | 20 ++++++++++++++++++++ @@ -147,7 +147,7 @@ index f15b80852e3..e565441ca4c 100644 diff --git a/PCbuild/_decimal.vcxproj b/PCbuild/_decimal.vcxproj -index ee7421484b5..e9d60b4db1a 100644 +index 3ba49370d58..921d22e47b3 100644 --- a/PCbuild/_decimal.vcxproj +++ b/PCbuild/_decimal.vcxproj @@ -99,6 +99,10 @@ @@ -179,7 +179,7 @@ index 3eb9c89bcb6..920656f2ee2 100644 diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj -index 5ceddf759b8..6b113ad8c2e 100644 +index 605861ad3fd..4082f3f6d51 100644 --- a/PCbuild/_freeze_module.vcxproj +++ b/PCbuild/_freeze_module.vcxproj @@ -93,6 +93,10 @@ @@ -429,7 +429,7 @@ index 4e721e8ce09..3fec7516ed5 100644 \ No newline at end of file + diff --git a/PCbuild/_testcapi.vcxproj b/PCbuild/_testcapi.vcxproj -index a68f15d25aa..5c42f15c312 100644 +index 68707a54ff6..4e88650812f 100644 --- a/PCbuild/_testcapi.vcxproj +++ b/PCbuild/_testcapi.vcxproj @@ -92,6 +92,26 @@ @@ -603,11 +603,11 @@ index 87f6005fffc..de9358312ac 100644 $(tcltkLib);%(AdditionalDependencies) diff --git a/PCbuild/liblzma.vcxproj b/PCbuild/liblzma.vcxproj -index 97938692328..212fb5e1ebc 100644 +index 75d4e162346..d50534affa1 100644 --- a/PCbuild/liblzma.vcxproj +++ b/PCbuild/liblzma.vcxproj @@ -95,6 +95,10 @@ - $(lzmaDir)windows/vs2019;$(lzmaDir)src/liblzma/common;$(lzmaDir)src/common;$(lzmaDir)src/liblzma/api;$(lzmaDir)src/liblzma/check;$(lzmaDir)src/liblzma/delta;$(lzmaDir)src/liblzma/lz;$(lzmaDir)src/liblzma/lzma;$(lzmaDir)src/liblzma/rangecoder;$(lzmaDir)src/liblzma/simple;%(AdditionalIncludeDirectories) + $(lzmaDir)windows;$(lzmaDir)src/liblzma/common;$(lzmaDir)src/common;$(lzmaDir)src/liblzma/api;$(lzmaDir)src/liblzma/check;$(lzmaDir)src/liblzma/delta;$(lzmaDir)src/liblzma/lz;$(lzmaDir)src/liblzma/lzma;$(lzmaDir)src/liblzma/rangecoder;$(lzmaDir)src/liblzma/simple;%(AdditionalIncludeDirectories) 4244;4267;4996;%(DisableSpecificWarnings) %(AdditionalOptions) -Wno-deprecated-declarations + /d1trimfile:%SRC_DIR% @@ -720,7 +720,7 @@ index 3f8772d30b4..d80968e351a 100644 windowsapp.lib;%(AdditionalDependencies) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index b911c938563..8e45967a83c 100644 +index 359a47fbfc4..ee07e5cffa2 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -99,7 +99,7 @@ diff --git a/recipe/patches/0009-cross-compile-darwin.patch b/recipe/patches/0009-cross-compile-darwin.patch index ae8f1be68..f454977cb 100644 --- a/recipe/patches/0009-cross-compile-darwin.patch +++ b/recipe/patches/0009-cross-compile-darwin.patch @@ -1,7 +1,7 @@ -From 4a750134d0e82bf5e843bcde03a28c4ef7e6c036 Mon Sep 17 00:00:00 2001 +From 73649c07901551bcb28074e72c192e8338f2a794 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Oct 2020 00:03:12 +0200 -Subject: [PATCH 09/26] cross compile darwin +Subject: [PATCH 09/27] cross compile darwin By Isuru Fernando. --- @@ -11,10 +11,10 @@ By Isuru Fernando. 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 784b6b749b7..9918b4106e8 100644 +index 4db93bea2a3..fce802b20a2 100644 --- a/Lib/platform.py +++ b/Lib/platform.py -@@ -477,7 +477,12 @@ def win32_ver(release='', version='', csd='', ptype=''): +@@ -475,7 +475,12 @@ def win32_ver(release='', version='', csd='', ptype=''): def _mac_ver_xml(): fn = '/System/Library/CoreServices/SystemVersion.plist' if not os.path.exists(fn): @@ -29,10 +29,10 @@ index 784b6b749b7..9918b4106e8 100644 try: import plistlib diff --git a/configure b/configure -index d31c24dffa2..1e4cf61234b 100755 +index a4514f80c3a..3896a8a6fce 100755 --- a/configure +++ b/configure -@@ -4110,6 +4110,9 @@ then +@@ -4113,6 +4113,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -42,7 +42,7 @@ index d31c24dffa2..1e4cf61234b 100755 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -4589,6 +4592,9 @@ if test "$cross_compiling" = yes; then +@@ -4592,6 +4595,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; @@ -53,7 +53,7 @@ index d31c24dffa2..1e4cf61234b 100755 _host_ident= ;; diff --git a/configure.ac b/configure.ac -index af7a9623d7b..e7a4bb5b998 100644 +index a059a07bec2..50381cf760e 100644 --- a/configure.ac +++ b/configure.ac @@ -324,6 +324,9 @@ then diff --git a/recipe/patches/0010-Fix-TZPATH-on-windows.patch b/recipe/patches/0010-Fix-TZPATH-on-windows.patch index b380b8065..3164d56d0 100644 --- a/recipe/patches/0010-Fix-TZPATH-on-windows.patch +++ b/recipe/patches/0010-Fix-TZPATH-on-windows.patch @@ -1,14 +1,14 @@ -From 53c0cb3b5f5c206ead42a55dcbc39ce1453dfd38 Mon Sep 17 00:00:00 2001 +From b282fdadd59f2a8e90fc995ed76b95383eac6906 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Oct 2020 10:08:30 -0500 -Subject: [PATCH 10/26] Fix TZPATH on windows +Subject: [PATCH 10/27] Fix TZPATH on windows --- Lib/sysconfig/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py -index 2ecbff222fe..9a263dea8da 100644 +index 8ff9c99435b..2caf1862ba0 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -175,6 +175,7 @@ def joinuser(*args): @@ -19,7 +19,7 @@ index 2ecbff222fe..9a263dea8da 100644 _BASE_PREFIX = os.path.normpath(sys.base_prefix) _BASE_EXEC_PREFIX = os.path.normpath(sys.base_exec_prefix) # Mutex guarding initialization of _CONFIG_VARS. -@@ -555,6 +556,7 @@ def _init_config_vars(): +@@ -550,6 +551,7 @@ def _init_config_vars(): if os.name == 'nt': _init_non_posix(_CONFIG_VARS) _CONFIG_VARS['VPATH'] = sys._vpath diff --git a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch index 719ceb57d..3be21004d 100644 --- a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +++ b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch @@ -1,7 +1,7 @@ -From fb9d535290c32d9ff02820949cab3d2c212d6397 Mon Sep 17 00:00:00 2001 +From 6a25a0a62fd89072d2f902cd00fd19b8629f8571 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 25 Jan 2021 03:28:08 -0600 -Subject: [PATCH 11/26] Make dyld search work with SYSTEM_VERSION_COMPAT=1 +Subject: [PATCH 11/27] Make dyld search work with SYSTEM_VERSION_COMPAT=1 In macOS Big Sur, if the executable was compiled with `MACOSX_DEPLOYMENT_TARGET=10.15` or below, then SYSTEM_VERSION_COMPAT=1 is the default which means that Big Sur @@ -18,10 +18,10 @@ and this code using 10.16 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c -index 856b0376e5e..8d269ac5969 100644 +index a8c16547e4b..c8d1eb9dd7e 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c -@@ -1509,7 +1509,7 @@ copy_com_pointer(PyObject *self, PyObject *args) +@@ -1501,7 +1501,7 @@ copy_com_pointer(PyObject *self, PyObject *args) #ifdef HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH # ifdef HAVE_BUILTIN_AVAILABLE # define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \ @@ -30,7 +30,7 @@ index 856b0376e5e..8d269ac5969 100644 # else # define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \ (_dyld_shared_cache_contains_path != NULL) -@@ -1552,8 +1552,10 @@ static PyObject *py_dyld_shared_cache_contains_path(PyObject *self, PyObject *ar +@@ -1544,8 +1544,10 @@ static PyObject *py_dyld_shared_cache_contains_path(PyObject *self, PyObject *ar if (PyUnicode_FSConverter(name, &name2) == 0) return NULL; name_str = PyBytes_AS_STRING(name2); diff --git a/recipe/patches/0012-Unvendor-bzip2.patch b/recipe/patches/0012-Unvendor-bzip2.patch index 94bb7eb82..344272b9d 100644 --- a/recipe/patches/0012-Unvendor-bzip2.patch +++ b/recipe/patches/0012-Unvendor-bzip2.patch @@ -1,7 +1,7 @@ -From 7c194e8eecd10c4f16b25110e53647a87bb71ec6 Mon Sep 17 00:00:00 2001 +From 9afee7464b67b708a18dcee213460f1df98bb404 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 02:56:27 -0700 -Subject: [PATCH 12/26] Unvendor bzip2 +Subject: [PATCH 12/27] Unvendor bzip2 --- PCbuild/_bz2.vcxproj | 15 +++++---------- diff --git a/recipe/patches/0013-Unvendor-libffi.patch b/recipe/patches/0013-Unvendor-libffi.patch index 7da3aa1d1..5adf844c9 100644 --- a/recipe/patches/0013-Unvendor-libffi.patch +++ b/recipe/patches/0013-Unvendor-libffi.patch @@ -1,7 +1,7 @@ -From fafc2c3880a6c1e872142b8ed040a562edb45738 Mon Sep 17 00:00:00 2001 +From 64d9c760bb5a40d5a9f466087b668a8acb4071ce Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 03:07:40 -0700 -Subject: [PATCH 13/26] Unvendor libffi +Subject: [PATCH 13/27] Unvendor libffi --- PCbuild/libffi.props | 17 ++++------------- diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index 0aafc2b3d..f5f4ac0b6 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -1,7 +1,7 @@ -From bac07ba9b9bdbcc560af20d9eadc38bd30a7fc9b Mon Sep 17 00:00:00 2001 +From aac5645d1d583be0604b130749cb61447e3c02c5 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 20 Aug 2021 10:23:51 -0700 -Subject: [PATCH 14/26] Unvendor tcltk +Subject: [PATCH 14/27] Unvendor tcltk --- PCbuild/_tkinter.vcxproj | 6 ------ diff --git a/recipe/patches/0015-unvendor-xz.patch b/recipe/patches/0015-unvendor-xz.patch index 56e718717..346469d71 100644 --- a/recipe/patches/0015-unvendor-xz.patch +++ b/recipe/patches/0015-unvendor-xz.patch @@ -1,7 +1,7 @@ -From 4492573c31d9b6989cf878c1b133870ccc93886f Mon Sep 17 00:00:00 2001 +From 2925d92d9d9f6b476800ea6832ef3bc6257fb230 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Sep 2021 10:07:05 -0700 -Subject: [PATCH 15/26] unvendor xz +Subject: [PATCH 15/27] unvendor xz --- PCbuild/_lzma.vcxproj | 10 +++------- diff --git a/recipe/patches/0016-unvendor-zlib.patch b/recipe/patches/0016-unvendor-zlib.patch index d59a79019..171e54f5a 100644 --- a/recipe/patches/0016-unvendor-zlib.patch +++ b/recipe/patches/0016-unvendor-zlib.patch @@ -1,7 +1,7 @@ -From aca0e2c3d51aaa449f7e849b7fbc26233d611298 Mon Sep 17 00:00:00 2001 +From 59b4df04ee6775095f53787273d750aa23b96f9e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Sep 2021 15:21:55 -0700 -Subject: [PATCH 16/26] unvendor zlib +Subject: [PATCH 16/27] unvendor zlib --- PCbuild/pythoncore.vcxproj | 14 ++----- @@ -9,7 +9,7 @@ Subject: [PATCH 16/26] unvendor zlib 2 files changed, 4 insertions(+), 76 deletions(-) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index 8e45967a83c..fc1a6077b34 100644 +index ee07e5cffa2..0dfc40fab7f 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -82,7 +82,7 @@ @@ -41,7 +41,7 @@ index 8e45967a83c..fc1a6077b34 100644 -@@ -681,12 +681,6 @@ +@@ -689,12 +689,6 @@ @@ -55,10 +55,10 @@ index 8e45967a83c..fc1a6077b34 100644 diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters -index 0e6d42cc959..144a0e3425a 100644 +index 17999690990..7376f1130b5 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters -@@ -900,39 +900,6 @@ +@@ -915,39 +915,6 @@ Include\internal\mimalloc @@ -98,7 +98,7 @@ index 0e6d42cc959..144a0e3425a 100644 Include\internal -@@ -1580,39 +1547,6 @@ +@@ -1604,39 +1571,6 @@ Objects diff --git a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch index d6cb69535..8b3f04dcb 100644 --- a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +++ b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch @@ -1,7 +1,7 @@ -From 34a225d86b9b9d43fe12b130101e35779c4322bc Mon Sep 17 00:00:00 2001 +From 675879079500bd180419d8fff0d0310da3dc2097 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:45:28 +0100 -Subject: [PATCH 17/26] Do not pass -g to GCC when not Py_DEBUG +Subject: [PATCH 17/27] Do not pass -g to GCC when not Py_DEBUG This bloats our exe and our modules a lot. --- @@ -10,10 +10,10 @@ This bloats our exe and our modules a lot. 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure -index 1e4cf61234b..61c94c69308 100755 +index 3896a8a6fce..1f1a310988a 100755 --- a/configure +++ b/configure -@@ -5794,9 +5794,9 @@ if test $ac_test_CFLAGS; then +@@ -5797,9 +5797,9 @@ if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -25,7 +25,7 @@ index 1e4cf61234b..61c94c69308 100755 fi else if test "$GCC" = yes; then -@@ -9572,7 +9572,7 @@ then +@@ -9596,7 +9596,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else @@ -35,10 +35,10 @@ index 1e4cf61234b..61c94c69308 100755 ;; *) diff --git a/configure.ac b/configure.ac -index e7a4bb5b998..480e59d6c3e 100644 +index 50381cf760e..bbd47d7f4df 100644 --- a/configure.ac +++ b/configure.ac -@@ -2306,7 +2306,7 @@ then +@@ -2322,7 +2322,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else diff --git a/recipe/patches/0018-Unvendor-expat.patch b/recipe/patches/0018-Unvendor-expat.patch index d49ff7eb1..3b2f93a3e 100644 --- a/recipe/patches/0018-Unvendor-expat.patch +++ b/recipe/patches/0018-Unvendor-expat.patch @@ -1,7 +1,7 @@ -From 97ae235561329f2310cd2f03b0e6321b448601ca Mon Sep 17 00:00:00 2001 +From c161a3b3435c3f6ce56c3ff2836913349c74cd2e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Mar 2023 23:07:10 -0500 -Subject: [PATCH 18/26] Unvendor expat +Subject: [PATCH 18/27] Unvendor expat --- PCbuild/_elementtree.vcxproj | 24 ++---------- diff --git a/recipe/patches/0019-Remove-unused-readelf.patch b/recipe/patches/0019-Remove-unused-readelf.patch index 91d5eb481..a0d4fd0a1 100644 --- a/recipe/patches/0019-Remove-unused-readelf.patch +++ b/recipe/patches/0019-Remove-unused-readelf.patch @@ -1,7 +1,7 @@ -From 2e87abf11bbb270eb6971923b3854f599a5da6c9 Mon Sep 17 00:00:00 2001 +From 95c0b1bec2955b17f8675c47a60b93d4da048cd4 Mon Sep 17 00:00:00 2001 From: Charles Bousseau Date: Thu, 25 May 2023 17:56:53 -0400 -Subject: [PATCH 19/26] Remove unused readelf +Subject: [PATCH 19/27] Remove unused readelf readelf has been dropped. .. date: 2022-11-02-10-56-40 @@ -15,7 +15,7 @@ Drop unused build dependency on ``readelf``. 1 file changed, 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index ba039794c88..7b0d6dced64 100644 +index dd28ff5d2a3..4178e867ffa 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -38,7 +38,6 @@ CC= @CC@ diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index 9e126e31e..d538f9e60 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -1,7 +1,7 @@ -From 00a945ee9d283d6d189f782092d06348d2ccef00 Mon Sep 17 00:00:00 2001 +From ae6d1f36713b1d7e5dea559c64ba7240cb3a7e52 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 1 Sep 2023 23:32:14 +0200 -Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling +Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling --- Makefile.pre.in | 2 +- @@ -10,10 +10,10 @@ Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling create mode 100755 if_runnable.sh diff --git a/Makefile.pre.in b/Makefile.pre.in -index 7b0d6dced64..e1cc236b150 100644 +index 4178e867ffa..e17f942c515 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1593,7 +1593,7 @@ sharedmods: $(SHAREDMODS) pybuilddir.txt +@@ -1603,7 +1603,7 @@ sharedmods: $(SHAREDMODS) pybuilddir.txt # dependency on BUILDPYTHON ensures that the target is run last .PHONY: checksharedmods checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) diff --git a/recipe/patches/0021-Override-configure-LIBFFI.patch b/recipe/patches/0021-Override-configure-LIBFFI.patch index bc4412089..e2e712508 100644 --- a/recipe/patches/0021-Override-configure-LIBFFI.patch +++ b/recipe/patches/0021-Override-configure-LIBFFI.patch @@ -1,17 +1,17 @@ -From fdef0a3f1a886320e3acd5f01fdbc0907a32d9d8 Mon Sep 17 00:00:00 2001 +From 6c834e4d86f845015526492beb7528cd788ba480 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 5 Sep 2023 21:51:31 +0200 -Subject: [PATCH 21/26] Override configure LIBFFI +Subject: [PATCH 21/27] Override configure LIBFFI --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure -index 61c94c69308..8af6bd41981 100755 +index 1f1a310988a..11f16aa4221 100755 --- a/configure +++ b/configure -@@ -15251,7 +15251,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes +@@ -15287,7 +15287,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes then : have_libffi=yes diff --git a/recipe/patches/0022-Unvendor-libmpdec.patch b/recipe/patches/0022-Unvendor-libmpdec.patch index 2bfccdb41..96b065097 100644 --- a/recipe/patches/0022-Unvendor-libmpdec.patch +++ b/recipe/patches/0022-Unvendor-libmpdec.patch @@ -1,17 +1,17 @@ -From 76f71b983fbe97118ff7e9c187e689226fbdd296 Mon Sep 17 00:00:00 2001 +From 522494d5706490a78702c076959c166bf0141a67 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 16 Aug 2024 21:34:43 -0500 -Subject: [PATCH 22/26] Unvendor libmpdec +Subject: [PATCH 22/27] Unvendor libmpdec --- - PCbuild/_decimal.vcxproj | 50 +++++----------------------------------- - 1 file changed, 6 insertions(+), 44 deletions(-) + PCbuild/_decimal.vcxproj | 51 ++++++---------------------------------- + 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/PCbuild/_decimal.vcxproj b/PCbuild/_decimal.vcxproj -index e9d60b4db1a..0f49d7923f5 100644 +index 921d22e47b3..0f49d7923f5 100644 --- a/PCbuild/_decimal.vcxproj +++ b/PCbuild/_decimal.vcxproj -@@ -93,65 +93,27 @@ +@@ -93,64 +93,27 @@ @@ -40,7 +40,6 @@ index e9d60b4db1a..0f49d7923f5 100644 - - - - - - - @@ -54,6 +53,7 @@ index e9d60b4db1a..0f49d7923f5 100644 - - - ++ diff --git a/recipe/patches/0023-Brand-conda-forge.patch b/recipe/patches/0023-Brand-conda-forge.patch index d7fd45221..330bd6132 100644 --- a/recipe/patches/0023-Brand-conda-forge.patch +++ b/recipe/patches/0023-Brand-conda-forge.patch @@ -1,7 +1,7 @@ -From 3ae72a4b59fec1f5a8f2431f33b37888ebe2f646 Mon Sep 17 00:00:00 2001 +From c8ae5667d4c3a51ec96718fdd69f22c7d9f53580 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 28 Aug 2024 11:12:22 -0500 -Subject: [PATCH 23/26] Brand conda-forge +Subject: [PATCH 23/27] Brand conda-forge --- Lib/platform.py | 1 + @@ -9,10 +9,10 @@ Subject: [PATCH 23/26] Brand conda-forge 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 9918b4106e8..1bedf861aad 100644 +index fce802b20a2..a5b7c6f9d2b 100644 --- a/Lib/platform.py +++ b/Lib/platform.py -@@ -1215,6 +1215,7 @@ def _sys_version(sys_version=None): +@@ -1147,6 +1147,7 @@ def _sys_version(sys_version=None): cpython_sys_version_parser = re.compile( r'([\w.+]+)\s*' # "version" r'(?:free-threading build\s+)?' # "free-threading-build" diff --git a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch index 56b92c848..b459a4559 100644 --- a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch +++ b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch @@ -1,7 +1,7 @@ -From dfd3c9a8237180a5456a13ecc3c1e19cb52ccd1a Mon Sep 17 00:00:00 2001 +From ea34c3871dc06ae261ba216808dcd4fbfe277759 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 12 Jan 2025 10:37:29 +0530 -Subject: [PATCH 24/26] Do not define pid_t as it might conflict with the +Subject: [PATCH 24/27] Do not define pid_t as it might conflict with the actual definition --- @@ -30,7 +30,7 @@ index 6313abf5485..bc8169e2f68 100644 module _testcapi [clinic start generated code]*/ diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c -index 2572df9719a..792c0df35af 100644 +index c14f925b4e7..9d2064d3252 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -23,6 +23,10 @@ @@ -60,7 +60,7 @@ index 34bc7331da9..abae4b19bf0 100644 module _testlimitedcapi [clinic start generated code]*/ diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h -index 87a17935507..a88a9151cb6 100644 +index d880fc52bb3..ec0e9c0b13e 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -10,6 +10,10 @@ preserve @@ -75,10 +75,10 @@ index 87a17935507..a88a9151cb6 100644 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index e1576f809fa..1ea521478e7 100644 +index fc609b2707c..8a4c3d71917 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c -@@ -219,6 +219,7 @@ +@@ -220,6 +220,7 @@ # if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) # define HAVE_SYMLINK # endif /* MS_WINDOWS_DESKTOP | MS_WINDOWS_SYSTEM */ @@ -87,10 +87,10 @@ index e1576f809fa..1ea521478e7 100644 diff --git a/PC/pyconfig.h b/PC/pyconfig.h -index 710a737ebcc..92d327b1e35 100644 +index a126fca6f5a..8332de4afb4 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h -@@ -235,8 +235,6 @@ typedef _W64 int Py_ssize_t; +@@ -240,8 +240,6 @@ typedef _W64 int Py_ssize_t; #endif #endif /* MS_WIN32 && !MS_WIN64 */ @@ -100,7 +100,7 @@ index 710a737ebcc..92d327b1e35 100644 #if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */ diff --git a/Python/remote_debug.h b/Python/remote_debug.h -index 8f9b6cd4c49..20cd65dd818 100644 +index e7676013197..24e78509930 100644 --- a/Python/remote_debug.h +++ b/Python/remote_debug.h @@ -28,6 +28,9 @@ extern "C" { diff --git a/recipe/patches/0025-Unvendor-zstd.patch b/recipe/patches/0025-Unvendor-zstd.patch index b7b496249..379068fa8 100644 --- a/recipe/patches/0025-Unvendor-zstd.patch +++ b/recipe/patches/0025-Unvendor-zstd.patch @@ -1,7 +1,7 @@ -From 0c0f398f475a9d61fbec7e004647299cd7e9e049 Mon Sep 17 00:00:00 2001 +From 7bbe08065cdb171461b7c167616c4502e43c9581 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 22 Jul 2025 18:07:54 +0200 -Subject: [PATCH 25/26] Unvendor zstd +Subject: [PATCH 25/27] Unvendor zstd --- PCbuild/_zstd.vcxproj | 58 +------------ diff --git a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch index 32c34f568..f764dd1a5 100644 --- a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch +++ b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch @@ -1,7 +1,7 @@ -From bdffefd91e576916a70808069885b1c33d6b4f62 Mon Sep 17 00:00:00 2001 +From 15881d9435ebdd3d5a4848f1d8bfcb2a66370605 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 2 Dec 2025 09:46:56 -0800 -Subject: [PATCH 26/26] Set Py_GIL_DISABLED in windows to match unix +Subject: [PATCH 26/27] Set Py_GIL_DISABLED in windows to match unix This is not set upstream because the windows distribution supports free-threaded and default builds at the same time. We have the @@ -11,10 +11,10 @@ luxury of not having to do that. 1 file changed, 2 insertions(+) diff --git a/PC/pyconfig.h b/PC/pyconfig.h -index 92d327b1e35..ed0d9c0592b 100644 +index 8332de4afb4..45744078c1b 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h -@@ -105,6 +105,8 @@ WIN32 is still required for the locale module. +@@ -110,6 +110,8 @@ WIN32 is still required for the locale module. #if Py_GIL_DISABLED == 0 #undef Py_GIL_DISABLED #endif diff --git a/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch b/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch new file mode 100644 index 000000000..eaffaf6fb --- /dev/null +++ b/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch @@ -0,0 +1,22 @@ +From f3502590512de85a6ce1fec94434a8da876932d9 Mon Sep 17 00:00:00 2001 +From: "Uwe L. Korn" +Date: Fri, 28 Nov 2025 15:20:43 +0100 +Subject: [PATCH 27/27] Expand guard for types_world_is_stopped + +--- + Objects/typeobject.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Objects/typeobject.c b/Objects/typeobject.c +index 61bcc21ce13..f48bf0b2b4e 100644 +--- a/Objects/typeobject.c ++++ b/Objects/typeobject.c +@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type" + + #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2() + +-#ifndef NDEBUG ++#if !defined(NDEBUG) || defined(Py_DEBUG) + // Return true if the world is currently stopped. + static bool + types_world_is_stopped(void) From 5da4038b0e28bf633eb650b48db76be5061db919 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 26 Nov 2025 20:08:03 +0100 Subject: [PATCH 02/57] Expand OpenSSL version check --- recipe/meta.yaml | 3 +++ recipe/run_test.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 599ffc703..63c40ec79 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -211,6 +211,9 @@ outputs: - ripgrep - cmake - ninja + # Pin to the openssl version used during the build to check whether + # we load the conda-forge version. + - openssl {{ openssl }} - {{ stdlib('c') }} - {{ compiler('c') }} # Tried to use enable_language(C) to avoid needing this. It does not work. diff --git a/recipe/run_test.py b/recipe/run_test.py index d53c4a388..6b6473899 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -102,8 +102,8 @@ import ssl print('OPENSSL_VERSION:', ssl.OPENSSL_VERSION) -CONDA_OPENSSL_VERSION = os.getenv('openssl').split(".")[0] -assert CONDA_OPENSSL_VERSION in ssl.OPENSSL_VERSION +CONDA_OPENSSL_VERSION = os.getenv('openssl') +assert CONDA_OPENSSL_VERSION in ssl.OPENSSL_VERSION, f"{CONDA_OPENSSL_VERSION} not found in {ssl.OPENSSL_VERSION}" # See https://github.com/conda-forge/python-feedstock/issues/718 for context: assert sys.hash_info.algorithm.startswith("siphash") From 8279301f705c8a3c3f8a3543f220653b3ce2927b Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 1 Dec 2025 20:24:20 +0100 Subject: [PATCH 03/57] Upload to python_dev label --- recipe/conda_build_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 2a216093a..2ae238ad9 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -30,8 +30,8 @@ build_type: - release - debug # [not win] channel_targets: - - conda-forge main - - conda-forge python_debug # [not win] + - conda-forge python_dev + - conda-forge python_dev_debug # [not win] zip_keys: - build_type - channel_targets From bfd8da26acdf09c30e82706bb7f0b0336d1c1cf0 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 10 Dec 2025 11:21:19 +0100 Subject: [PATCH 04/57] MNT: Re-rendered with conda-smithy 3.53.3 and conda-forge-pinning 2025.12.10.08.45.35 Other tools: - conda-build 25.11.1 - rattler-build 0.54.0 - rattler-build-conda-compat 1.4.10 --- .azure-pipelines/azure-pipelines-linux.yml | 48 +++++----- .azure-pipelines/azure-pipelines-osx.yml | 32 +++---- ...orge_python_dev_debugfreethreadingno.yaml} | 4 +- ...rge_python_dev_debugfreethreadingyes.yaml} | 4 +- ...onda-forge_python_devfreethreadingno.yaml} | 4 +- ...nda-forge_python_devfreethreadingyes.yaml} | 4 +- ...orge_python_dev_debugfreethreadingno.yaml} | 4 +- ...rge_python_dev_debugfreethreadingyes.yaml} | 4 +- ...onda-forge_python_devfreethreadingno.yaml} | 4 +- ...nda-forge_python_devfreethreadingyes.yaml} | 4 +- ...orge_python_dev_debugfreethreadingno.yaml} | 4 +- ...rge_python_dev_debugfreethreadingyes.yaml} | 4 +- ...onda-forge_python_devfreethreadingno.yaml} | 4 +- ...nda-forge_python_devfreethreadingyes.yaml} | 4 +- ...orge_python_dev_debugfreethreadingno.yaml} | 8 +- ...rge_python_dev_debugfreethreadingyes.yaml} | 8 +- ...onda-forge_python_devfreethreadingno.yaml} | 8 +- ...nda-forge_python_devfreethreadingyes.yaml} | 8 +- ...orge_python_dev_debugfreethreadingno.yaml} | 8 +- ...rge_python_dev_debugfreethreadingyes.yaml} | 8 +- ...onda-forge_python_devfreethreadingno.yaml} | 8 +- ...nda-forge_python_devfreethreadingyes.yaml} | 8 +- .ci_support/win_64_freethreadingno.yaml | 4 +- .ci_support/win_64_freethreadingyes.yaml | 4 +- README.md | 96 +++++++++---------- 25 files changed, 148 insertions(+), 148 deletions(-) rename .ci_support/{linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml => linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml} (94%) rename .ci_support/{linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml => linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml} (94%) rename .ci_support/{linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml => linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml} (95%) rename .ci_support/{linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml => linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml} (95%) rename .ci_support/{linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml => linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml} (94%) rename .ci_support/{linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml => linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml} (94%) rename .ci_support/{linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml => linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml} (95%) rename .ci_support/{linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml => linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml} (95%) rename .ci_support/{linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml => linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml} (94%) rename .ci_support/{linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml => linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml} (94%) rename .ci_support/{linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml => linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml} (95%) rename .ci_support/{linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml => linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml} (95%) rename .ci_support/{osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml => osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml} (93%) rename .ci_support/{osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml => osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml} (93%) rename .ci_support/{osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml => osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml} (93%) rename .ci_support/{osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml => osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml} (93%) rename .ci_support/{osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml => osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml} (93%) rename .ci_support/{osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml => osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml} (93%) rename .ci_support/{osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml => osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml} (93%) rename .ci_support/{osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml => osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml} (93%) diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index 378d045f1..2ba753abe 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -8,52 +8,52 @@ jobs: vmImage: ubuntu-latest strategy: matrix: - linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno: - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno + linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: + CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes: - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes + linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: + CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno: - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno + linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: + CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes: - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes + linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: + CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno: - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno + linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: + CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes: - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes + linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: + CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno: - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno + linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: + CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes: - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes + linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: + CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno: - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno + linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: + CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes: - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes + linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: + CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno: - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno + linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: + CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes: - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes + linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: + CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 timeoutInMinutes: 360 diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index af6c938c0..255b6a9c5 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -8,29 +8,29 @@ jobs: vmImage: macOS-15 strategy: matrix: - osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno: - CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno + osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: + CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' - osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes: - CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes + osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: + CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' - osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno: - CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno + osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: + CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' - osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes: - CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes + osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: + CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' - osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno: - CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno + osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: + CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' - osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes: - CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes + osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: + CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' - osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno: - CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno + osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: + CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' - osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes: - CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes + osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: + CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' timeoutInMinutes: 360 variables: {} diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml similarity index 94% rename from .ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml rename to .ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 37593b055..e450ab9d3 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml similarity index 94% rename from .ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml rename to .ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index b1b3ad18a..31079909e 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml similarity index 95% rename from .ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml rename to .ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index df48c0233..c2a3977ac 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml similarity index 95% rename from .ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml rename to .ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index e610789ca..fd74202b0 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml similarity index 94% rename from .ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml rename to .ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index fd15ad542..4e85b9160 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml similarity index 94% rename from .ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml rename to .ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 1b77335e7..27265adf8 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml similarity index 95% rename from .ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml rename to .ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 9438623ec..e394c7044 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml similarity index 95% rename from .ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml rename to .ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 94c391015..d66846eb1 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml similarity index 94% rename from .ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml rename to .ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 1aab323bc..96546b899 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml similarity index 94% rename from .ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml rename to .ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 874f4a813..b5cd6b391 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml similarity index 95% rename from .ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml rename to .ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index fae135ea5..bc3202a8d 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml similarity index 95% rename from .ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml rename to .ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 70dcd3114..7413de85b 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -13,7 +13,7 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - gxx cxx_compiler_version: @@ -41,7 +41,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml similarity index 93% rename from .ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml rename to .ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 05ac199c9..5a3a6ffa5 100644 --- a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml +++ b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml similarity index 93% rename from .ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml rename to .ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 2f973fde2..d5efeafa4 100644 --- a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml +++ b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml similarity index 93% rename from .ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml rename to .ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 745a1635f..e0138f85f 100644 --- a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml +++ b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml similarity index 93% rename from .ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml rename to .ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index e4b541998..21d6b3ca9 100644 --- a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml +++ b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml b/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml similarity index 93% rename from .ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml rename to .ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 4c14dd0b8..40e691881 100644 --- a/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno.yaml +++ b/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml b/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml similarity index 93% rename from .ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml rename to .ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 5a9fff19a..9fce21abf 100644 --- a/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes.yaml +++ b/.ci_support/osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge python_debug +- conda-forge python_dev_debug cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml b/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml similarity index 93% rename from .ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml rename to .ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 8589dd2fe..484ed338c 100644 --- a/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml +++ b/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml b/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml similarity index 93% rename from .ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml rename to .ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 01f363958..c0383042b 100644 --- a/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes.yaml +++ b/.ci_support/osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -9,7 +9,7 @@ bzip2: c_compiler: - clang c_compiler_version: -- '20.1' +- '21' c_stdlib: - macosx_deployment_target c_stdlib_version: @@ -17,11 +17,11 @@ c_stdlib_version: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - clangxx cxx_compiler_version: -- '20.1' +- '21' expat: - '2' freethreading: @@ -43,7 +43,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' readline: - '8' target_platform: diff --git a/.ci_support/win_64_freethreadingno.yaml b/.ci_support/win_64_freethreadingno.yaml index 85976e397..1db1459dc 100644 --- a/.ci_support/win_64_freethreadingno.yaml +++ b/.ci_support/win_64_freethreadingno.yaml @@ -9,7 +9,7 @@ c_stdlib: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - vs2022 expat: @@ -29,7 +29,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' target_platform: - win-64 tk: diff --git a/.ci_support/win_64_freethreadingyes.yaml b/.ci_support/win_64_freethreadingyes.yaml index 9a079f9f6..71df4046b 100644 --- a/.ci_support/win_64_freethreadingyes.yaml +++ b/.ci_support/win_64_freethreadingyes.yaml @@ -9,7 +9,7 @@ c_stdlib: channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: -- conda-forge main +- conda-forge python_dev cxx_compiler: - vs2022 expat: @@ -29,7 +29,7 @@ pin_run_as_build: min_pin: x.x max_pin: x.x python: -- '3.14' +- '3.15' target_platform: - win-64 tk: diff --git a/README.md b/README.md index 78eed68b8..739a20c89 100644 --- a/README.md +++ b/README.md @@ -59,143 +59,143 @@ Current build status - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -235,14 +235,14 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: +Installing `python` from the `conda-forge/label/python_dev` channel can be achieved by adding `conda-forge/label/python_dev` to your channels with: ``` -conda config --add channels conda-forge +conda config --add channels conda-forge/label/python_dev conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `cpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: +Once the `conda-forge/label/python_dev` channel has been enabled, `cpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: ``` conda install cpython libpython-static python python-freethreading python-gil python-jit @@ -257,26 +257,26 @@ mamba install cpython libpython-static python python-freethreading python-gil py It is possible to list all of the versions of `cpython` available on your platform with `conda`: ``` -conda search cpython --channel conda-forge +conda search cpython --channel conda-forge/label/python_dev ``` or with `mamba`: ``` -mamba search cpython --channel conda-forge +mamba search cpython --channel conda-forge/label/python_dev ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search cpython --channel conda-forge +mamba repoquery search cpython --channel conda-forge/label/python_dev # List packages depending on `cpython`: -mamba repoquery whoneeds cpython --channel conda-forge +mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev # List dependencies of `cpython`: -mamba repoquery depends cpython --channel conda-forge +mamba repoquery depends cpython --channel conda-forge/label/python_dev ``` From cacd389ad4512886a8382deb31eeb6090ed9de6b Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 17 Dec 2025 20:11:01 +0100 Subject: [PATCH 05/57] python 3.15.0a3 --- recipe/meta.yaml | 6 ++--- ...2-Change-FD_SETSIZE-from-512-to-2048.patch | 4 ++-- ...0002-Win32-Do-not-download-externals.patch | 8 +++---- ...-so-that-it-looks-in-sys.prefix-lib-.patch | 4 ++-- ...-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch | 4 ++-- recipe/patches/0005-Unvendor-openssl.patch | 4 ++-- recipe/patches/0006-Unvendor-sqlite3.patch | 4 ++-- ...dd-CondaEcosystemModifyDllSearchPath.patch | 6 ++--- recipe/patches/0008-Doing-d1trimfile.patch | 6 ++--- .../patches/0009-cross-compile-darwin.patch | 20 ++++++++--------- .../patches/0010-Fix-TZPATH-on-windows.patch | 4 ++-- ...ch-work-with-SYSTEM_VERSION_COMPAT-1.patch | 6 ++--- recipe/patches/0012-Unvendor-bzip2.patch | 4 ++-- recipe/patches/0013-Unvendor-libffi.patch | 4 ++-- recipe/patches/0014-Unvendor-tcltk.patch | 4 ++-- recipe/patches/0015-unvendor-xz.patch | 4 ++-- recipe/patches/0016-unvendor-zlib.patch | 18 +++++++-------- ...-not-pass-g-to-GCC-when-not-Py_DEBUG.patch | 14 ++++++------ recipe/patches/0018-Unvendor-expat.patch | 4 ++-- .../patches/0019-Remove-unused-readelf.patch | 6 ++--- ...t-checksharedmods-if-cross-compiling.patch | 14 ++++++------ .../0021-Override-configure-LIBFFI.patch | 8 +++---- recipe/patches/0022-Unvendor-libmpdec.patch | 4 ++-- recipe/patches/0023-Brand-conda-forge.patch | 8 +++---- ...d_t-as-it-might-conflict-with-the-ac.patch | 8 +++---- recipe/patches/0025-Unvendor-zstd.patch | 4 ++-- ...IL_DISABLED-in-windows-to-match-unix.patch | 4 ++-- ...and-guard-for-types_world_is_stopped.patch | 22 ------------------- 28 files changed, 92 insertions(+), 114 deletions(-) delete mode 100644 recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 63c40ec79..60128474a 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set version = "3.15.0" %} -{% set dev = "a2" %} +{% set dev = "a3" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} @@ -46,7 +46,7 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - md5: 8a16a56591101a698e8d0779d41782f4 + md5: d6ee7c74b9618520e88ec175f5539623 patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch @@ -81,7 +81,7 @@ source: - patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch {% endif %} # https://github.com/python/cpython/pull/142039 - - patches/0027-Expand-guard-for-types_world_is_stopped.patch + # - patches/0027-Expand-guard-for-types_world_is_stopped.patch build: number: {{ build_number }} diff --git a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch index c03c8843d..2a265a29a 100644 --- a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +++ b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch @@ -1,7 +1,7 @@ -From f0d0c464af24f7fbbc430abaa005eb298e18e5c8 Mon Sep 17 00:00:00 2001 +From 8c8d4d1ded1d513cffb4ae94e5bb7c8cef63ec1c Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:53:55 +0100 -Subject: [PATCH 01/27] Win32: Change FD_SETSIZE from 512 to 2048 +Subject: [PATCH 01/26] Win32: Change FD_SETSIZE from 512 to 2048 https://github.com/ContinuumIO/anaconda-issues/issues/1241 --- diff --git a/recipe/patches/0002-Win32-Do-not-download-externals.patch b/recipe/patches/0002-Win32-Do-not-download-externals.patch index b5638a655..c3b733400 100644 --- a/recipe/patches/0002-Win32-Do-not-download-externals.patch +++ b/recipe/patches/0002-Win32-Do-not-download-externals.patch @@ -1,17 +1,17 @@ -From 6a15ec3d4e45c28bff8510c81f571c6112b13497 Mon Sep 17 00:00:00 2001 +From 9f50db5dbb5a150b2c7799b16b6afacbb5339aa8 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Thu, 7 Sep 2017 11:35:47 +0100 -Subject: [PATCH 02/27] Win32: Do not download externals +Subject: [PATCH 02/26] Win32: Do not download externals --- PCbuild/build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCbuild/build.bat b/PCbuild/build.bat -index 60235704886..edb61912b74 100644 +index e4de9a80d76..22892c05dc7 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat -@@ -107,7 +107,7 @@ if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts +@@ -109,7 +109,7 @@ if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index 7f4b0ba92..b34b11ca1 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -1,7 +1,7 @@ -From 299fc079ce68d641b415cb3d8843e029d7fc5b6c Mon Sep 17 00:00:00 2001 +From 7312b782873147be93df6dd501030d8c6fcff5f3 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 5 Dec 2017 22:47:59 +0000 -Subject: [PATCH 03/27] Fix find_library so that it looks in sys.prefix/lib +Subject: [PATCH 03/26] Fix find_library so that it looks in sys.prefix/lib first --- diff --git a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch index fd2a3a12f..fec353e20 100644 --- a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +++ b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch @@ -1,7 +1,7 @@ -From 5bb72c8e81480293d90558a693e1be1550d512b6 Mon Sep 17 00:00:00 2001 +From d8e1bbacdc5456cf43d9dfc0c1231023d285afe9 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Sat, 27 Oct 2018 18:48:30 +0100 -Subject: [PATCH 04/27] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS +Subject: [PATCH 04/26] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS is not 0 Co-authored-by: Isuru Fernando diff --git a/recipe/patches/0005-Unvendor-openssl.patch b/recipe/patches/0005-Unvendor-openssl.patch index 5c1aa3f81..177a20930 100644 --- a/recipe/patches/0005-Unvendor-openssl.patch +++ b/recipe/patches/0005-Unvendor-openssl.patch @@ -1,7 +1,7 @@ -From 17fcde2d5bbbe8236afdd38526ad7b59a6868ab5 Mon Sep 17 00:00:00 2001 +From fe3fd0f75ef1e5fbac3aebe2ae615858850d4324 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Sat, 24 Nov 2018 20:38:02 -0600 -Subject: [PATCH 05/27] Unvendor openssl +Subject: [PATCH 05/26] Unvendor openssl Co-authored-by: Isuru Fernando --- diff --git a/recipe/patches/0006-Unvendor-sqlite3.patch b/recipe/patches/0006-Unvendor-sqlite3.patch index 4bc21b0b4..e0eafd424 100644 --- a/recipe/patches/0006-Unvendor-sqlite3.patch +++ b/recipe/patches/0006-Unvendor-sqlite3.patch @@ -1,7 +1,7 @@ -From 5d333d7c6aaa395b4bccee40fec534aa7c19d7f5 Mon Sep 17 00:00:00 2001 +From 89126b92c8ac764ce9e8034789bf74b4ecf003b5 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Tue, 5 Oct 2021 12:42:06 -0700 -Subject: [PATCH 06/27] Unvendor sqlite3 +Subject: [PATCH 06/26] Unvendor sqlite3 --- PCbuild/_sqlite3.vcxproj | 11 +++++------ diff --git a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch index 20f7f48e9..7231c0e9c 100644 --- a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch +++ b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch @@ -1,7 +1,7 @@ -From 83958047fd8a64f8c049735d5d8594bd5673a696 Mon Sep 17 00:00:00 2001 +From 0d5341782ce10d959a1914b99581aee95c4b4176 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 24 Dec 2019 18:37:17 +0100 -Subject: [PATCH 07/27] Add CondaEcosystemModifyDllSearchPath() +Subject: [PATCH 07/26] Add CondaEcosystemModifyDllSearchPath() The python interpreter is modifed so that it works as if the python interpreter was called with the following conda directories. @@ -33,7 +33,7 @@ Co-authored-by: Isuru Fernando 1 file changed, 95 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c -index 67368b5ce07..e08b2df1226 100644 +index 2527dca71d7..a2d28a9be46 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -81,6 +81,10 @@ diff --git a/recipe/patches/0008-Doing-d1trimfile.patch b/recipe/patches/0008-Doing-d1trimfile.patch index ec9828e04..2226f5c44 100644 --- a/recipe/patches/0008-Doing-d1trimfile.patch +++ b/recipe/patches/0008-Doing-d1trimfile.patch @@ -1,7 +1,7 @@ -From 5c39a338040451810cc97adc1d0088e914cccd07 Mon Sep 17 00:00:00 2001 +From 2c64caf81d33ab9dea54bf06d183b877ddc32d47 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 31 Dec 2019 21:47:47 +0100 -Subject: [PATCH 08/27] Doing d1trimfile +Subject: [PATCH 08/26] Doing d1trimfile --- PCbuild/_asyncio.vcxproj | 20 ++++++++++++++++++++ @@ -720,7 +720,7 @@ index 3f8772d30b4..d80968e351a 100644 windowsapp.lib;%(AdditionalDependencies) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index 359a47fbfc4..ee07e5cffa2 100644 +index dcfb75ce162..5bf342227ad 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -99,7 +99,7 @@ diff --git a/recipe/patches/0009-cross-compile-darwin.patch b/recipe/patches/0009-cross-compile-darwin.patch index f454977cb..5bc03ab03 100644 --- a/recipe/patches/0009-cross-compile-darwin.patch +++ b/recipe/patches/0009-cross-compile-darwin.patch @@ -1,7 +1,7 @@ -From 73649c07901551bcb28074e72c192e8338f2a794 Mon Sep 17 00:00:00 2001 +From 42d193573c79b9760d36d9150d8308f136e874e9 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Oct 2020 00:03:12 +0200 -Subject: [PATCH 09/27] cross compile darwin +Subject: [PATCH 09/26] cross compile darwin By Isuru Fernando. --- @@ -11,10 +11,10 @@ By Isuru Fernando. 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 4db93bea2a3..fce802b20a2 100644 +index 3a71b669985..b342ceec761 100644 --- a/Lib/platform.py +++ b/Lib/platform.py -@@ -475,7 +475,12 @@ def win32_ver(release='', version='', csd='', ptype=''): +@@ -474,7 +474,12 @@ def win32_ver(release='', version='', csd='', ptype=''): def _mac_ver_xml(): fn = '/System/Library/CoreServices/SystemVersion.plist' if not os.path.exists(fn): @@ -29,10 +29,10 @@ index 4db93bea2a3..fce802b20a2 100644 try: import plistlib diff --git a/configure b/configure -index a4514f80c3a..3896a8a6fce 100755 +index a1bc7991aa8..f26e19a400a 100755 --- a/configure +++ b/configure -@@ -4113,6 +4113,9 @@ then +@@ -4133,6 +4133,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -42,7 +42,7 @@ index a4514f80c3a..3896a8a6fce 100755 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -4592,6 +4595,9 @@ if test "$cross_compiling" = yes; then +@@ -4612,6 +4615,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; @@ -53,10 +53,10 @@ index a4514f80c3a..3896a8a6fce 100755 _host_ident= ;; diff --git a/configure.ac b/configure.ac -index a059a07bec2..50381cf760e 100644 +index a284a118f02..b86228cea4f 100644 --- a/configure.ac +++ b/configure.ac -@@ -324,6 +324,9 @@ then +@@ -333,6 +333,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -66,7 +66,7 @@ index a059a07bec2..50381cf760e 100644 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -771,6 +774,9 @@ if test "$cross_compiling" = yes; then +@@ -780,6 +783,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; diff --git a/recipe/patches/0010-Fix-TZPATH-on-windows.patch b/recipe/patches/0010-Fix-TZPATH-on-windows.patch index 3164d56d0..3d6ad29f3 100644 --- a/recipe/patches/0010-Fix-TZPATH-on-windows.patch +++ b/recipe/patches/0010-Fix-TZPATH-on-windows.patch @@ -1,7 +1,7 @@ -From b282fdadd59f2a8e90fc995ed76b95383eac6906 Mon Sep 17 00:00:00 2001 +From 630cb148ad55a8c366b0c4dd357faf0c99d3f133 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Oct 2020 10:08:30 -0500 -Subject: [PATCH 10/27] Fix TZPATH on windows +Subject: [PATCH 10/26] Fix TZPATH on windows --- Lib/sysconfig/__init__.py | 2 ++ diff --git a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch index 3be21004d..dd9587941 100644 --- a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +++ b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch @@ -1,7 +1,7 @@ -From 6a25a0a62fd89072d2f902cd00fd19b8629f8571 Mon Sep 17 00:00:00 2001 +From 9f173aa92e5bb529fd60991c42abb178f16b1e9a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 25 Jan 2021 03:28:08 -0600 -Subject: [PATCH 11/27] Make dyld search work with SYSTEM_VERSION_COMPAT=1 +Subject: [PATCH 11/26] Make dyld search work with SYSTEM_VERSION_COMPAT=1 In macOS Big Sur, if the executable was compiled with `MACOSX_DEPLOYMENT_TARGET=10.15` or below, then SYSTEM_VERSION_COMPAT=1 is the default which means that Big Sur @@ -18,7 +18,7 @@ and this code using 10.16 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c -index a8c16547e4b..c8d1eb9dd7e 100644 +index 9a1c1ff8bb9..730e1fd1394 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -1501,7 +1501,7 @@ copy_com_pointer(PyObject *self, PyObject *args) diff --git a/recipe/patches/0012-Unvendor-bzip2.patch b/recipe/patches/0012-Unvendor-bzip2.patch index 344272b9d..fef372407 100644 --- a/recipe/patches/0012-Unvendor-bzip2.patch +++ b/recipe/patches/0012-Unvendor-bzip2.patch @@ -1,7 +1,7 @@ -From 9afee7464b67b708a18dcee213460f1df98bb404 Mon Sep 17 00:00:00 2001 +From b8da28d50e7830647b1069c3ee791914cf6eda1f Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 02:56:27 -0700 -Subject: [PATCH 12/27] Unvendor bzip2 +Subject: [PATCH 12/26] Unvendor bzip2 --- PCbuild/_bz2.vcxproj | 15 +++++---------- diff --git a/recipe/patches/0013-Unvendor-libffi.patch b/recipe/patches/0013-Unvendor-libffi.patch index 5adf844c9..bc6439490 100644 --- a/recipe/patches/0013-Unvendor-libffi.patch +++ b/recipe/patches/0013-Unvendor-libffi.patch @@ -1,7 +1,7 @@ -From 64d9c760bb5a40d5a9f466087b668a8acb4071ce Mon Sep 17 00:00:00 2001 +From 8fe13b763103443ad71be1c8be14764b1afa0b00 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 03:07:40 -0700 -Subject: [PATCH 13/27] Unvendor libffi +Subject: [PATCH 13/26] Unvendor libffi --- PCbuild/libffi.props | 17 ++++------------- diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index f5f4ac0b6..e178ca88f 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -1,7 +1,7 @@ -From aac5645d1d583be0604b130749cb61447e3c02c5 Mon Sep 17 00:00:00 2001 +From 1a6e9fc3846eee64ffa9477fd0ca120ee19eac11 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 20 Aug 2021 10:23:51 -0700 -Subject: [PATCH 14/27] Unvendor tcltk +Subject: [PATCH 14/26] Unvendor tcltk --- PCbuild/_tkinter.vcxproj | 6 ------ diff --git a/recipe/patches/0015-unvendor-xz.patch b/recipe/patches/0015-unvendor-xz.patch index 346469d71..d3c137422 100644 --- a/recipe/patches/0015-unvendor-xz.patch +++ b/recipe/patches/0015-unvendor-xz.patch @@ -1,7 +1,7 @@ -From 2925d92d9d9f6b476800ea6832ef3bc6257fb230 Mon Sep 17 00:00:00 2001 +From fae25b8b8186b60128621097ebe4922c0c1d33ae Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Sep 2021 10:07:05 -0700 -Subject: [PATCH 15/27] unvendor xz +Subject: [PATCH 15/26] unvendor xz --- PCbuild/_lzma.vcxproj | 10 +++------- diff --git a/recipe/patches/0016-unvendor-zlib.patch b/recipe/patches/0016-unvendor-zlib.patch index 171e54f5a..6fd1848da 100644 --- a/recipe/patches/0016-unvendor-zlib.patch +++ b/recipe/patches/0016-unvendor-zlib.patch @@ -1,7 +1,7 @@ -From 59b4df04ee6775095f53787273d750aa23b96f9e Mon Sep 17 00:00:00 2001 +From cb1c4b7ebe9936da5001437bcdd54f3f496ebdcd Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Sep 2021 15:21:55 -0700 -Subject: [PATCH 16/27] unvendor zlib +Subject: [PATCH 16/26] unvendor zlib --- PCbuild/pythoncore.vcxproj | 14 ++----- @@ -9,7 +9,7 @@ Subject: [PATCH 16/27] unvendor zlib 2 files changed, 4 insertions(+), 76 deletions(-) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index ee07e5cffa2..0dfc40fab7f 100644 +index 5bf342227ad..f0e8fa6aaad 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -82,7 +82,7 @@ @@ -30,8 +30,8 @@ index ee07e5cffa2..0dfc40fab7f 100644 $(GeneratedJitStencilsDir);%(AdditionalIncludeDirectories) _USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";ZLIB_COMPAT;%(PreprocessorDefinitions) _Py_HAVE_ZLIB;%(PreprocessorDefinitions) -@@ -112,8 +112,8 @@ - Py_REMOTE_DEBUG;%(PreprocessorDefinitions) +@@ -113,8 +113,8 @@ + Py_STACKREF_DEBUG;%(PreprocessorDefinitions) - version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies) @@ -41,7 +41,7 @@ index ee07e5cffa2..0dfc40fab7f 100644 -@@ -689,12 +689,6 @@ +@@ -691,12 +691,6 @@ @@ -55,10 +55,10 @@ index ee07e5cffa2..0dfc40fab7f 100644 diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters -index 17999690990..7376f1130b5 100644 +index 247f4b5a784..00c8bd6e551 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters -@@ -915,39 +915,6 @@ +@@ -918,39 +918,6 @@ Include\internal\mimalloc @@ -98,7 +98,7 @@ index 17999690990..7376f1130b5 100644 Include\internal -@@ -1604,39 +1571,6 @@ +@@ -1607,39 +1574,6 @@ Objects diff --git a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch index 8b3f04dcb..e6499762e 100644 --- a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +++ b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch @@ -1,7 +1,7 @@ -From 675879079500bd180419d8fff0d0310da3dc2097 Mon Sep 17 00:00:00 2001 +From f8510f4e1d2f6adbe4d7ac28f039febf6ed7d144 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:45:28 +0100 -Subject: [PATCH 17/27] Do not pass -g to GCC when not Py_DEBUG +Subject: [PATCH 17/26] Do not pass -g to GCC when not Py_DEBUG This bloats our exe and our modules a lot. --- @@ -10,10 +10,10 @@ This bloats our exe and our modules a lot. 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure -index 3896a8a6fce..1f1a310988a 100755 +index f26e19a400a..24b4a5290e6 100755 --- a/configure +++ b/configure -@@ -5797,9 +5797,9 @@ if test $ac_test_CFLAGS; then +@@ -5817,9 +5817,9 @@ if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -25,7 +25,7 @@ index 3896a8a6fce..1f1a310988a 100755 fi else if test "$GCC" = yes; then -@@ -9596,7 +9596,7 @@ then +@@ -9612,7 +9612,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else @@ -35,10 +35,10 @@ index 3896a8a6fce..1f1a310988a 100755 ;; *) diff --git a/configure.ac b/configure.ac -index 50381cf760e..bbd47d7f4df 100644 +index b86228cea4f..095fd5fd9ea 100644 --- a/configure.ac +++ b/configure.ac -@@ -2322,7 +2322,7 @@ then +@@ -2327,7 +2327,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else diff --git a/recipe/patches/0018-Unvendor-expat.patch b/recipe/patches/0018-Unvendor-expat.patch index 3b2f93a3e..d4ab77db8 100644 --- a/recipe/patches/0018-Unvendor-expat.patch +++ b/recipe/patches/0018-Unvendor-expat.patch @@ -1,7 +1,7 @@ -From c161a3b3435c3f6ce56c3ff2836913349c74cd2e Mon Sep 17 00:00:00 2001 +From b795ea2453a53052d407c26c9f145731fed44580 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Mar 2023 23:07:10 -0500 -Subject: [PATCH 18/27] Unvendor expat +Subject: [PATCH 18/26] Unvendor expat --- PCbuild/_elementtree.vcxproj | 24 ++---------- diff --git a/recipe/patches/0019-Remove-unused-readelf.patch b/recipe/patches/0019-Remove-unused-readelf.patch index a0d4fd0a1..433bc0528 100644 --- a/recipe/patches/0019-Remove-unused-readelf.patch +++ b/recipe/patches/0019-Remove-unused-readelf.patch @@ -1,7 +1,7 @@ -From 95c0b1bec2955b17f8675c47a60b93d4da048cd4 Mon Sep 17 00:00:00 2001 +From 256b1d81abd3c5643150824d234123f3530c9c16 Mon Sep 17 00:00:00 2001 From: Charles Bousseau Date: Thu, 25 May 2023 17:56:53 -0400 -Subject: [PATCH 19/27] Remove unused readelf +Subject: [PATCH 19/26] Remove unused readelf readelf has been dropped. .. date: 2022-11-02-10-56-40 @@ -15,7 +15,7 @@ Drop unused build dependency on ``readelf``. 1 file changed, 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index dd28ff5d2a3..4178e867ffa 100644 +index a6beb96d12a..a8207acf889 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -38,7 +38,6 @@ CC= @CC@ diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index d538f9e60..ff60f22e6 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -1,7 +1,7 @@ -From ae6d1f36713b1d7e5dea559c64ba7240cb3a7e52 Mon Sep 17 00:00:00 2001 +From 512dd160fb94c23a16753e0cd7dd7720782cebf6 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 1 Sep 2023 23:32:14 +0200 -Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling +Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling --- Makefile.pre.in | 2 +- @@ -10,13 +10,13 @@ Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling create mode 100755 if_runnable.sh diff --git a/Makefile.pre.in b/Makefile.pre.in -index 4178e867ffa..e17f942c515 100644 +index a8207acf889..0e694d378cb 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1603,7 +1603,7 @@ sharedmods: $(SHAREDMODS) pybuilddir.txt - # dependency on BUILDPYTHON ensures that the target is run last - .PHONY: checksharedmods - checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) +@@ -1609,7 +1609,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) + else \ + $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/check_extension_modules.py --generate-missing-stdlib-info; \ + fi - @$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/check_extension_modules.py + @$(RUNSHARED) $(srcdir)/if_runnable.sh $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/check_extension_modules.py diff --git a/recipe/patches/0021-Override-configure-LIBFFI.patch b/recipe/patches/0021-Override-configure-LIBFFI.patch index e2e712508..476162470 100644 --- a/recipe/patches/0021-Override-configure-LIBFFI.patch +++ b/recipe/patches/0021-Override-configure-LIBFFI.patch @@ -1,17 +1,17 @@ -From 6c834e4d86f845015526492beb7528cd788ba480 Mon Sep 17 00:00:00 2001 +From 175e7c2f9d1f1d183fc29047daf81b70ace54752 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 5 Sep 2023 21:51:31 +0200 -Subject: [PATCH 21/27] Override configure LIBFFI +Subject: [PATCH 21/26] Override configure LIBFFI --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure -index 1f1a310988a..11f16aa4221 100755 +index 24b4a5290e6..29bf868a17b 100755 --- a/configure +++ b/configure -@@ -15287,7 +15287,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes +@@ -15303,7 +15303,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes then : have_libffi=yes diff --git a/recipe/patches/0022-Unvendor-libmpdec.patch b/recipe/patches/0022-Unvendor-libmpdec.patch index 96b065097..b41d1f6c2 100644 --- a/recipe/patches/0022-Unvendor-libmpdec.patch +++ b/recipe/patches/0022-Unvendor-libmpdec.patch @@ -1,7 +1,7 @@ -From 522494d5706490a78702c076959c166bf0141a67 Mon Sep 17 00:00:00 2001 +From e2cd18e27083402da2c9898cf830af50a4abc812 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 16 Aug 2024 21:34:43 -0500 -Subject: [PATCH 22/27] Unvendor libmpdec +Subject: [PATCH 22/26] Unvendor libmpdec --- PCbuild/_decimal.vcxproj | 51 ++++++---------------------------------- diff --git a/recipe/patches/0023-Brand-conda-forge.patch b/recipe/patches/0023-Brand-conda-forge.patch index 330bd6132..d1adb62dd 100644 --- a/recipe/patches/0023-Brand-conda-forge.patch +++ b/recipe/patches/0023-Brand-conda-forge.patch @@ -1,7 +1,7 @@ -From c8ae5667d4c3a51ec96718fdd69f22c7d9f53580 Mon Sep 17 00:00:00 2001 +From dfc270d853e31e8f6fd77fcbf4cee5903153e9ed Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 28 Aug 2024 11:12:22 -0500 -Subject: [PATCH 23/27] Brand conda-forge +Subject: [PATCH 23/26] Brand conda-forge --- Lib/platform.py | 1 + @@ -9,10 +9,10 @@ Subject: [PATCH 23/27] Brand conda-forge 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/platform.py b/Lib/platform.py -index fce802b20a2..a5b7c6f9d2b 100644 +index b342ceec761..201abdda7ab 100644 --- a/Lib/platform.py +++ b/Lib/platform.py -@@ -1147,6 +1147,7 @@ def _sys_version(sys_version=None): +@@ -1146,6 +1146,7 @@ def _sys_version(sys_version=None): cpython_sys_version_parser = re.compile( r'([\w.+]+)\s*' # "version" r'(?:free-threading build\s+)?' # "free-threading-build" diff --git a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch index b459a4559..a53ca95c2 100644 --- a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch +++ b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch @@ -1,7 +1,7 @@ -From ea34c3871dc06ae261ba216808dcd4fbfe277759 Mon Sep 17 00:00:00 2001 +From 2a47d939b009483e82dd373c9416227e67478334 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 12 Jan 2025 10:37:29 +0530 -Subject: [PATCH 24/27] Do not define pid_t as it might conflict with the +Subject: [PATCH 24/26] Do not define pid_t as it might conflict with the actual definition --- @@ -75,7 +75,7 @@ index d880fc52bb3..ec0e9c0b13e 100644 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index fc609b2707c..8a4c3d71917 100644 +index 221cfc5a934..6be30793a58 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -220,6 +220,7 @@ @@ -100,7 +100,7 @@ index a126fca6f5a..8332de4afb4 100644 #if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */ diff --git a/Python/remote_debug.h b/Python/remote_debug.h -index e7676013197..24e78509930 100644 +index d3932a3fd1e..6346deb9f49 100644 --- a/Python/remote_debug.h +++ b/Python/remote_debug.h @@ -28,6 +28,9 @@ extern "C" { diff --git a/recipe/patches/0025-Unvendor-zstd.patch b/recipe/patches/0025-Unvendor-zstd.patch index 379068fa8..4fbbb0fc2 100644 --- a/recipe/patches/0025-Unvendor-zstd.patch +++ b/recipe/patches/0025-Unvendor-zstd.patch @@ -1,7 +1,7 @@ -From 7bbe08065cdb171461b7c167616c4502e43c9581 Mon Sep 17 00:00:00 2001 +From b6c16c900f6aaae919cc04856723d199097c1f5b Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 22 Jul 2025 18:07:54 +0200 -Subject: [PATCH 25/27] Unvendor zstd +Subject: [PATCH 25/26] Unvendor zstd --- PCbuild/_zstd.vcxproj | 58 +------------ diff --git a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch index f764dd1a5..c4451976c 100644 --- a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch +++ b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch @@ -1,7 +1,7 @@ -From 15881d9435ebdd3d5a4848f1d8bfcb2a66370605 Mon Sep 17 00:00:00 2001 +From 9efaededaf799dd06bbd0972be4fc4569c16a8c8 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 2 Dec 2025 09:46:56 -0800 -Subject: [PATCH 26/27] Set Py_GIL_DISABLED in windows to match unix +Subject: [PATCH 26/26] Set Py_GIL_DISABLED in windows to match unix This is not set upstream because the windows distribution supports free-threaded and default builds at the same time. We have the diff --git a/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch b/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch deleted file mode 100644 index eaffaf6fb..000000000 --- a/recipe/patches/0027-Expand-guard-for-types_world_is_stopped.patch +++ /dev/null @@ -1,22 +0,0 @@ -From f3502590512de85a6ce1fec94434a8da876932d9 Mon Sep 17 00:00:00 2001 -From: "Uwe L. Korn" -Date: Fri, 28 Nov 2025 15:20:43 +0100 -Subject: [PATCH 27/27] Expand guard for types_world_is_stopped - ---- - Objects/typeobject.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Objects/typeobject.c b/Objects/typeobject.c -index 61bcc21ce13..f48bf0b2b4e 100644 ---- a/Objects/typeobject.c -+++ b/Objects/typeobject.c -@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type" - - #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2() - --#ifndef NDEBUG -+#if !defined(NDEBUG) || defined(Py_DEBUG) - // Return true if the world is currently stopped. - static bool - types_world_is_stopped(void) From daf9c8f1815d9f7b4bff812cc92a02f775f3ef8e Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 17 Dec 2025 20:13:14 +0100 Subject: [PATCH 06/57] fix --- recipe/meta.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 60128474a..7c6069da7 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -80,8 +80,6 @@ source: {% if freethreading == "yes" %} - patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch {% endif %} - # https://github.com/python/cpython/pull/142039 - # - patches/0027-Expand-guard-for-types_world_is_stopped.patch build: number: {{ build_number }} From c237464a35c806b29fb078b9081d9a8129b731b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 15 Jan 2026 14:37:11 +0100 Subject: [PATCH 07/57] Use sysconfigdata from shared library build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the sysconfigdata from the shared library build rather than the static one. The main difference is that this ensures that programs link to the shared Python library rather than the static library. Other differences are mostly superficial (build directories, test invocation commands). Fixes #565 Signed-off-by: Michał Górny --- recipe/build_base.sh | 4 +++- recipe/meta.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index a376602ca..8f32b42cb 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -395,7 +395,9 @@ if [[ ${target_platform} =~ .*linux.* ]]; then ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} fi -SYSCONFIG=$(find ${_buildd_static}/$(cat ${_buildd_static}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0) +# Use sysconfigdata from shared build, as we want packages to prefer linking against the shared library. +# Issue #565. +SYSCONFIG=$(find ${_buildd_shared}/$(cat ${_buildd_shared}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0) cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ "${_FLAGS_REPLACE[@]}" \ > ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 7c6069da7..bc771353e 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -4,7 +4,7 @@ {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 0 %} +{% set build_number = 1 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} From dc22d8545d3055095419d98e86ec8d625885e068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 15 Jan 2026 16:26:26 +0100 Subject: [PATCH 08/57] Also use shared-lib `build-details.json` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 8f32b42cb..6f48b68a7 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -395,12 +395,15 @@ if [[ ${target_platform} =~ .*linux.* ]]; then ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} fi -# Use sysconfigdata from shared build, as we want packages to prefer linking against the shared library. -# Issue #565. -SYSCONFIG=$(find ${_buildd_shared}/$(cat ${_buildd_shared}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0) +# Use sysconfigdata and build-details.json from the shared build, as we want packages to prefer +# linking against the shared library. Issue #565. +BUILD_DIR=$(< ${_buildd_shared}/pybuilddir.txt) +SYSCONFIG=$(find ${_buildd_shared}/${BUILD_DIR} -name "_sysconfigdata*.py" -print0) cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ "${_FLAGS_REPLACE[@]}" \ > ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) +BUILD_DETAILS=${_buildd_shared}/${BUILD_DIR}/build-details.json +cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ MAKEFILE=$(find ${PREFIX}/lib/python${VERABI_NO_DBG}/ -path "*config-*/Makefile" -print0) cp ${MAKEFILE} /tmp/Makefile-$$ cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ From 0e83970090571c5c9f7dc17ad84d03f5fd4dd8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 16 Jan 2026 17:34:06 +0100 Subject: [PATCH 09/57] Add missing ripgrep dep to the test case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index bc771353e..189548b26 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -310,6 +310,7 @@ outputs: requires: - {{ stdlib('c') }} - {{ compiler('c') }} + - ripgrep commands: - VER=${PKG_VERSION%.*} # [not win] - VERABI=${VER} # [not win] From b422d66386d709cf04d54e4dd49cb3a435565239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 16 Jan 2026 17:42:42 +0100 Subject: [PATCH 10/57] Fix the linking test case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now python3-config defaults to shared linking, so perform that part of the test first. Then remove the shared libraries to force static linking. Signed-off-by: Michał Górny --- .../prefix-replacement/build-and-test.sh | 47 +++++++++---------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/recipe/tests/prefix-replacement/build-and-test.sh b/recipe/tests/prefix-replacement/build-and-test.sh index 633b741a3..851d74fa2 100644 --- a/recipe/tests/prefix-replacement/build-and-test.sh +++ b/recipe/tests/prefix-replacement/build-and-test.sh @@ -2,32 +2,7 @@ set -ex -if [[ "$PKG_NAME" == "libpython-static" ]]; then - # see bpo44182 for why -L${CONDA_PREFIX}/lib is added - ${CC} a.c $(python3-config --cflags) $(python3-config --embed --ldflags) -L${CONDA_PREFIX}/lib -o ${CONDA_PREFIX}/bin/embedded-python-static - if [[ "$target_platform" == linux-* ]]; then - if ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then - echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." - fi - elif [[ "$target_platform" == osx-* ]]; then - if ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then - echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." - fi - fi - ${CONDA_PREFIX}/bin/embedded-python-static - - # I thought this would prefer the shared library for Python. I was wrong: - # EMBED_LDFLAGS=$(python3-config --ldflags) - # re='^(.*)(-lpython[^ ]*)(.*)$' - # if [[ ${EMBED_LDFLAGS} =~ $re ]]; then - # EMBED_LDFLAGS="${BASH_REMATCH[1]} ${BASH_REMATCH[3]} -Wl,-Bdynamic ${BASH_REMATCH[2]}" - # fi - # ${CC} a.c $(python3-config --cflags) ${EMBED_LDFLAGS} -o ${CONDA_PREFIX}/bin/embedded-python-shared - - # Brute-force way of linking to the shared library, sorry! - rm -rf ${CONDA_PREFIX}/lib/libpython*.a -fi - +# see bpo44182 for why -L${CONDA_PREFIX}/lib is added ${CC} a.c $(python3-config --cflags) \ $(python3-config --embed --ldflags) \ -L${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib \ @@ -44,4 +19,24 @@ elif [[ "$target_platform" == osx-* ]]; then fi ${CONDA_PREFIX}/bin/embedded-python-shared +if [[ "$PKG_NAME" == "libpython-static" ]]; then + # remove the shared library to force static linking + rm -f ${CONDA_PREFIX}/lib/libpython*.{so,dylib} + + ${CC} a.c $(python3-config --cflags) \ + $(python3-config --embed --ldflags) \ + -L${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib \ + -o ${CONDA_PREFIX}/bin/embedded-python-static + if [[ "$target_platform" == linux-* ]]; then + if ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then + echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." + fi + elif [[ "$target_platform" == osx-* ]]; then + if ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then + echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." + fi + fi + ${CONDA_PREFIX}/bin/embedded-python-static +fi + set +x From 622caf66f38c7654bc6b06269b167528c004d496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 21 Jan 2026 16:23:07 +0100 Subject: [PATCH 11/57] MNT: Re-rendered with conda-smithy 3.54.1 and conda-forge-pinning 2026.01.20.09.33.33 Other tools: - conda-build 25.11.1 - rattler-build 0.55.0 - rattler-build-conda-compat 1.4.10 --- .scripts/run_osx_build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index 361edeb2c..bac7141a9 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -63,6 +63,25 @@ if [[ "${sha:-}" == "" ]]; then sha=$(git rev-parse HEAD) fi +if [[ "${OSX_SDK_DIR:-}" == "" ]]; then + if [[ "${CI:-}" == "" ]]; then + echo "Please set OSX_SDK_DIR to a directory where SDKs can be downloaded to. Aborting" + exit 1 + else + export OSX_SDK_DIR=/opt/conda-sdks + /usr/bin/sudo mkdir -p "${OSX_SDK_DIR}" + /usr/bin/sudo chown "${USER}" "${OSX_SDK_DIR}" + fi +else + if tmpf=$(mktemp -p "$OSX_SDK_DIR" tmp.XXXXXXXX 2>/dev/null); then + rm -f "$tmpf" + echo "OSX_SDK_DIR is writeable without sudo, continuing" + else + echo "User-provided OSX_SDK_DIR is not writeable for current user! Aborting" + exit 1 + fi +fi + echo -e "\n\nRunning the build setup script." source run_conda_forge_build_setup From 6eeda71c4e440d6d17a1936f522cb374d2368a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 22 Jan 2026 15:59:51 +0100 Subject: [PATCH 12/57] Split shared Python library to `libpython` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #843 Signed-off-by: Michał Górny --- recipe/build_base.sh | 10 --- recipe/build_shared.bat | 0 recipe/build_shared.sh | 33 +++++++ recipe/meta.yaml | 87 ++++++++++++++++--- recipe/tests/cmake/CMakeLists.txt | 14 +-- .../prefix-replacement/build-and-test.sh | 66 +++++++------- 6 files changed, 147 insertions(+), 63 deletions(-) create mode 100644 recipe/build_shared.bat create mode 100644 recipe/build_shared.sh diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 6f48b68a7..bf36540ab 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -385,15 +385,6 @@ if [[ ${_OPTIMIZED} == yes ]]; then _FLAGS_REPLACE+=("") done fi -# Install the shared library (for people who embed Python only, e.g. GDB). -# Linking module extensions to this on Linux is redundant (but harmless). -# Linking module extensions to this on Darwin is harmful (multiply defined symbols). -shopt -s extglob -cp -pf ${_buildd_shared}/libpython*${SHLIB_EXT}!(.lto) ${PREFIX}/lib/ -shopt -u extglob -if [[ ${target_platform} =~ .*linux.* ]]; then - ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} -fi # Use sysconfigdata and build-details.json from the shared build, as we want packages to prefer # linking against the shared library. Issue #565. @@ -520,7 +511,6 @@ rm ${PREFIX}/lib/libpython${VERABI}.a if [[ ${PY_INTERP_DEBUG} == yes ]]; then rm ${PREFIX}/bin/python${VER} ln -s ${PREFIX}/bin/python${VERABI} ${PREFIX}/bin/python${VER} - ln -s ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} ${PREFIX}/lib/libpython${VERABI_NO_DBG}${SHLIB_EXT} ln -s ${PREFIX}/include/python${VERABI} ${PREFIX}/include/python${VER} fi diff --git a/recipe/build_shared.bat b/recipe/build_shared.bat new file mode 100644 index 000000000..e69de29bb diff --git a/recipe/build_shared.sh b/recipe/build_shared.sh new file mode 100644 index 000000000..35812a5d1 --- /dev/null +++ b/recipe/build_shared.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -ex + +_buildd_shared=build-shared +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + DBG=d +else + DBG= +fi +if [[ ${PY_FREETHREADING} == yes ]]; then + # This Python will not be usable with non-free threading Python modules. + THREAD=t +else + THREAD= +fi + +VER=${PKG_VERSION%.*} +ABIFLAGS=${DBG}${THREAD} +VERABI=${VER}${THREAD}${DBG} +VERABI_NO_DBG=${VER}${THREAD} + +# Install the shared library (for people who embed Python only, e.g. GDB). +# Linking module extensions to this on Linux is redundant (but harmless). +# Linking module extensions to this on Darwin is harmful (multiply defined symbols). +shopt -s extglob +cp -pf ${_buildd_shared}/libpython*${SHLIB_EXT}!(.lto) ${PREFIX}/lib/ +shopt -u extglob +if [[ ${target_platform} =~ .*linux.* ]]; then + ln -sf ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT}.1.0 ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} +fi +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + ln -s ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} ${PREFIX}/lib/libpython${VERABI_NO_DBG}${SHLIB_EXT} +fi diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 189548b26..6266f8cdb 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -221,7 +221,6 @@ outputs: files: - tests/cmake/* - tests/cython/* - - tests/prefix-replacement/* - run_test.py commands: - echo on # [win] @@ -247,8 +246,11 @@ outputs: - _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_linux_gnu python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [linux64] # check for unreplaced @ symbols in sysconfig files, excluding e.g. '"$@".lto' - for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @[^@]*@ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx] - - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix] - - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.so # [unix] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.so # [linux] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.dylib # [osx] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix] {% if freethreading == "yes" %} - if not exist %PREFIX%\\libs\\python3t.lib exit 1 # [win] - if not exist %PREFIX%\\libs\\python{{ ver2nd }}t.lib exit 1 # [win] @@ -265,14 +267,8 @@ outputs: - if not exist %PREFIX%\\Scripts\\pydoc.exe exit 1 # [win] - if not exist %PREFIX%\\include\\pyconfig.h exit 1 # [win] - pushd tests - - pushd prefix-replacement # [unix] - - bash build-and-test.sh # [unix] - - popd # [unix] - pushd cmake -{% if freethreading == "no" %} - # TODO: use the new FindPython3 which supports freethreading - - cmake -GNinja -DPY_VER={{ version }} --debug-find --trace --debug-output --debug-trycompile . -{% endif %} + - cmake -GNinja -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Module" --debug-find --trace --debug-output --debug-trycompile . - popd - popd - python run_test.py @@ -283,6 +279,61 @@ outputs: # Test for wide character supported via ncursesw - TERM=xterm >/dev/null python -c "import curses; scr = curses.initscr(); curses.unget_wch('x'); assert 'x' == scr.get_wch()" # [unix] + - name: libpython + script: build_shared.sh # [unix] + script: build_shared.bat # [win] + build: + number: {{ build_number }} + activate_in_script: true + ignore_run_exports: + - python_abi + script_env: + - PY_INTERP_DEBUG={{ py_interp_debug }} + - PY_FREETHREADING={{ freethreading }} + string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ debug }}_{{ abi_tag }} + requirements: + build: + - {{ compiler('c') }} + - {{ stdlib('c') }} + - {{ compiler('cxx') }} + host: + - {{ pin_subpackage('python', exact=True) }} + run: + - {{ pin_subpackage('python', exact=True) }} + test: + files: + - tests/cmake/* + - tests/prefix-replacement/* + requires: + - {{ stdlib('c') }} + - {{ compiler('c') }} + # cmake expects a C++ compiler for some reason + - {{ compiler('cxx') }} + - ripgrep + - cmake + - ninja + commands: + - VER=${PKG_VERSION%.*} # [not win] + - VERABI=${VER} # [not win] +{% if freethreading == "yes" %} + - VERABI=${VERABI}t # [not win] +{% endif %} + - VERABI_NO_DBG=${VERABI} # [not win] +{% if py_interp_debug == "yes" %} + - VERABI=${VERABI}d # [not win] +{% endif %} + - test -f ${PREFIX}/lib/libpython${VERABI}.so # [linux] + - test -f ${PREFIX}/lib/libpython3.so # [linux and build_type == "release"] + - test -f ${PREFIX}/lib/libpython${VERABI}.dylib # [osx] + - pushd tests + - pushd prefix-replacement # [unix] + - bash build-and-test.sh # [unix] + - popd # [unix] + - pushd cmake + - cmake -GNinja -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Embed" --debug-find --trace --debug-output --debug-trycompile . + - popd + - popd + - name: libpython-static script: build_static.sh # [unix] script: build_static.bat # [win] @@ -306,11 +357,16 @@ outputs: - {{ pin_subpackage('python', exact=True) }} test: files: + - tests/cmake/* - tests/prefix-replacement/* requires: - {{ stdlib('c') }} - {{ compiler('c') }} + # cmake expects a C++ compiler for some reason + - {{ compiler('cxx') }} - ripgrep + - cmake + - ninja commands: - VER=${PKG_VERSION%.*} # [not win] - VERABI=${VER} # [not win] @@ -324,9 +380,14 @@ outputs: - test -f ${PREFIX}/lib/libpython${VERABI}.a # [unix] - test -f ${PREFIX}/lib/libpython${VERABI_NO_DBG}.nolto.a # [unix] - test -f ${PREFIX}/lib/python${VERABI_NO_DBG}/config-${VERABI}-darwin/libpython${VERABI}.a # [osx] - - pushd tests/prefix-replacement # [unix] - - bash build-and-test.sh # [unix] - - popd # [unix] + - pushd tests + - pushd prefix-replacement # [unix] + - bash build-and-test.sh # [unix] + - popd # [unix] + - pushd cmake + - cmake -GNinja -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Embed" --debug-find --trace --debug-output --debug-trycompile . + - popd + - popd - name: cpython build: diff --git a/recipe/tests/cmake/CMakeLists.txt b/recipe/tests/cmake/CMakeLists.txt index a13e20ae1..f3e41560c 100644 --- a/recipe/tests/cmake/CMakeLists.txt +++ b/recipe/tests/cmake/CMakeLists.txt @@ -1,16 +1,10 @@ -# https://martinopilia.com/posts/2018/09/15/building-python-extension.html -# FindPythonInterp and FindPythonLibs are deprecated since cmake 3.12 -# These can be replaced by find_package(Python ${PY_VER} REQUIRED) -# But these are still used by other packages, so we keep them. +# https://scikit-build-core.readthedocs.io/en/latest/guide/cmakelists.html#finding-python cmake_minimum_required(VERSION 3.10) enable_language(C) project(mymath) -option(PY_VER, "Python version to use") +option(PY_VER "Python version to use") +option(EXTRA_COMPONENTS "Additional Python components to check for") -find_package(PythonInterp ${PY_VER} REQUIRED) -# PATHS $ENV{CONDA_PREFIX} - -# This goes after, since it uses PythonInterp as hint -find_package(PythonLibs ${PY_VER} REQUIRED) +find_package(Python ${PY_VER} COMPONENTS Interpreter ${EXTRA_COMPONENTS} REQUIRED) diff --git a/recipe/tests/prefix-replacement/build-and-test.sh b/recipe/tests/prefix-replacement/build-and-test.sh index 851d74fa2..d710bde75 100644 --- a/recipe/tests/prefix-replacement/build-and-test.sh +++ b/recipe/tests/prefix-replacement/build-and-test.sh @@ -2,41 +2,47 @@ set -ex -# see bpo44182 for why -L${CONDA_PREFIX}/lib is added -${CC} a.c $(python3-config --cflags) \ - $(python3-config --embed --ldflags) \ - -L${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib \ - -o ${CONDA_PREFIX}/bin/embedded-python-shared +case ${PKG_NAME} in + libpython) + # see bpo44182 for why -L${CONDA_PREFIX}/lib is added + ${CC} a.c $(python3-config --cflags) \ + $(python3-config --embed --ldflags) \ + -L${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib \ + -o ${CONDA_PREFIX}/bin/embedded-python-shared -if [[ "$target_platform" == linux-* ]]; then - if ! ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-shared | rg libpython; then - echo "ERROR :: Embedded python linked to static python library. We tried to force it to use the shared library." - fi -elif [[ "$target_platform" == osx-* ]]; then - if ! ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-shared | rg libpython; then - echo "ERROR :: Embedded python linked to static python library. We tried to force it to use the shared library." - fi -fi -${CONDA_PREFIX}/bin/embedded-python-shared - -if [[ "$PKG_NAME" == "libpython-static" ]]; then - # remove the shared library to force static linking - rm -f ${CONDA_PREFIX}/lib/libpython*.{so,dylib} + if [[ "$target_platform" == linux-* ]]; then + if ! ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-shared | rg libpython; then + echo "ERROR :: Embedded python linked to static python library. We tried to force it to use the shared library." + fi + elif [[ "$target_platform" == osx-* ]]; then + if ! ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-shared | rg libpython; then + echo "ERROR :: Embedded python linked to static python library. We tried to force it to use the shared library." + fi + fi + ${CONDA_PREFIX}/bin/embedded-python-shared + ;; - ${CC} a.c $(python3-config --cflags) \ + libpython-static) + ${CC} a.c $(python3-config --cflags) \ $(python3-config --embed --ldflags) \ -L${CONDA_PREFIX}/lib -Wl,-rpath,${CONDA_PREFIX}/lib \ -o ${CONDA_PREFIX}/bin/embedded-python-static - if [[ "$target_platform" == linux-* ]]; then - if ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then - echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." + if [[ "$target_platform" == linux-* ]]; then + if ${READELF} -d ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then + echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." + fi + elif [[ "$target_platform" == osx-* ]]; then + if ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then + echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." + fi fi - elif [[ "$target_platform" == osx-* ]]; then - if ${OTOOL} -l ${CONDA_PREFIX}/bin/embedded-python-static | rg libpython; then - echo "ERROR :: Embedded python linked to shared python library. It is expected to link to the static library." - fi - fi - ${CONDA_PREFIX}/bin/embedded-python-static -fi + ${CONDA_PREFIX}/bin/embedded-python-static + ;; + + *) + # invalid package + exit 1 + ;; +esac set +x From a407c5dc3aba1f4183fa7d22e70ff113052b7b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 22 Jan 2026 19:52:30 +0100 Subject: [PATCH 13/57] MNT: Re-rendered with conda-smithy 3.54.1 and conda-forge-pinning 2026.01.22.10.05.09 Other tools: - conda-build 25.11.1 - rattler-build 0.55.0 - rattler-build-conda-compat 1.4.10 --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 739a20c89..c190c2a10 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,7 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-cpython-green.svg)](https://anaconda.org/conda-forge/cpython) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/cpython.svg)](https://anaconda.org/conda-forge/cpython) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/cpython.svg)](https://anaconda.org/conda-forge/cpython) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/cpython.svg)](https://anaconda.org/conda-forge/cpython) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-libpython-green.svg)](https://anaconda.org/conda-forge/libpython) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/libpython.svg)](https://anaconda.org/conda-forge/libpython) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/libpython.svg)](https://anaconda.org/conda-forge/libpython) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/libpython.svg)](https://anaconda.org/conda-forge/libpython) | | [![Conda Recipe](https://img.shields.io/badge/recipe-libpython--static-green.svg)](https://anaconda.org/conda-forge/libpython-static) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/libpython-static.svg)](https://anaconda.org/conda-forge/libpython-static) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/libpython-static.svg)](https://anaconda.org/conda-forge/libpython-static) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/libpython-static.svg)](https://anaconda.org/conda-forge/libpython-static) | | [![Conda Recipe](https://img.shields.io/badge/recipe-python-green.svg)](https://anaconda.org/conda-forge/python) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/python.svg)](https://anaconda.org/conda-forge/python) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/python.svg)](https://anaconda.org/conda-forge/python) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/python.svg)](https://anaconda.org/conda-forge/python) | | [![Conda Recipe](https://img.shields.io/badge/recipe-python--freethreading-green.svg)](https://anaconda.org/conda-forge/python-freethreading) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/python-freethreading.svg)](https://anaconda.org/conda-forge/python-freethreading) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/python-freethreading.svg)](https://anaconda.org/conda-forge/python-freethreading) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/python-freethreading.svg)](https://anaconda.org/conda-forge/python-freethreading) | @@ -235,48 +236,48 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge/label/python_dev` channel can be achieved by adding `conda-forge/label/python_dev` to your channels with: +Installing `python` from the `conda-forge/label/python_dev_debug` channel can be achieved by adding `conda-forge/label/python_dev_debug` to your channels with: ``` -conda config --add channels conda-forge/label/python_dev +conda config --add channels conda-forge/label/python_dev_debug conda config --set channel_priority strict ``` -Once the `conda-forge/label/python_dev` channel has been enabled, `cpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: +Once the `conda-forge/label/python_dev_debug` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: ``` -conda install cpython libpython-static python python-freethreading python-gil python-jit +conda install cpython libpython libpython-static python python-freethreading python-gil python-jit ``` or with `mamba`: ``` -mamba install cpython libpython-static python python-freethreading python-gil python-jit +mamba install cpython libpython libpython-static python python-freethreading python-gil python-jit ``` It is possible to list all of the versions of `cpython` available on your platform with `conda`: ``` -conda search cpython --channel conda-forge/label/python_dev +conda search cpython --channel conda-forge/label/python_dev_debug ``` or with `mamba`: ``` -mamba search cpython --channel conda-forge/label/python_dev +mamba search cpython --channel conda-forge/label/python_dev_debug ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search cpython --channel conda-forge/label/python_dev +mamba repoquery search cpython --channel conda-forge/label/python_dev_debug # List packages depending on `cpython`: -mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev +mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev_debug # List dependencies of `cpython`: -mamba repoquery depends cpython --channel conda-forge/label/python_dev +mamba repoquery depends cpython --channel conda-forge/label/python_dev_debug ``` From 0d3e6ce5761710d94c2c9011d6593907f9aa44b0 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 16 Mar 2026 16:26:39 +0100 Subject: [PATCH 14/57] Python 3.15.0a7 --- recipe/meta.yaml | 4 ++-- ...01-Win32-Change-FD_SETSIZE-from-512-to-2048.patch | 4 ++-- .../0002-Win32-Do-not-download-externals.patch | 6 +++--- ...library-so-that-it-looks-in-sys.prefix-lib-.patch | 8 ++++---- ...egistry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch | 10 +++++----- recipe/patches/0005-Unvendor-openssl.patch | 8 ++++---- recipe/patches/0006-Unvendor-sqlite3.patch | 2 +- .../0007-Add-CondaEcosystemModifyDllSearchPath.patch | 10 +++++----- recipe/patches/0008-Doing-d1trimfile.patch | 12 ++++++------ recipe/patches/0009-cross-compile-darwin.patch | 12 ++++++------ recipe/patches/0010-Fix-TZPATH-on-windows.patch | 2 +- ...ld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch | 2 +- recipe/patches/0012-Unvendor-bzip2.patch | 2 +- recipe/patches/0013-Unvendor-libffi.patch | 2 +- recipe/patches/0014-Unvendor-tcltk.patch | 2 +- recipe/patches/0015-unvendor-xz.patch | 2 +- recipe/patches/0016-unvendor-zlib.patch | 12 ++++++------ ...0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch | 10 +++++----- recipe/patches/0018-Unvendor-expat.patch | 6 +++--- recipe/patches/0019-Remove-unused-readelf.patch | 4 ++-- ...20-Don-t-checksharedmods-if-cross-compiling.patch | 6 +++--- recipe/patches/0021-Override-configure-LIBFFI.patch | 6 +++--- recipe/patches/0022-Unvendor-libmpdec.patch | 2 +- recipe/patches/0023-Brand-conda-forge.patch | 4 ++-- ...fine-pid_t-as-it-might-conflict-with-the-ac.patch | 10 +++++----- recipe/patches/0025-Unvendor-zstd.patch | 2 +- ...et-Py_GIL_DISABLED-in-windows-to-match-unix.patch | 2 +- 27 files changed, 76 insertions(+), 76 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 6266f8cdb..76a3853cf 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set version = "3.15.0" %} -{% set dev = "a3" %} +{% set dev = "a7" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} @@ -46,7 +46,7 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - md5: d6ee7c74b9618520e88ec175f5539623 + md5: 76b680750285a243d63dec8374b70818 patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch diff --git a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch index 2a265a29a..18c2ccaf8 100644 --- a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +++ b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch @@ -1,4 +1,4 @@ -From 8c8d4d1ded1d513cffb4ae94e5bb7c8cef63ec1c Mon Sep 17 00:00:00 2001 +From ffb1951d87e6554c3e0ae00b6ab8a042e085779a Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:53:55 +0100 Subject: [PATCH 01/26] Win32: Change FD_SETSIZE from 512 to 2048 @@ -9,7 +9,7 @@ https://github.com/ContinuumIO/anaconda-issues/issues/1241 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c -index 19fe509ec5e..02c9665afa7 100644 +index 137bf2ca55b..70e2d178c54 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -44,7 +44,7 @@ diff --git a/recipe/patches/0002-Win32-Do-not-download-externals.patch b/recipe/patches/0002-Win32-Do-not-download-externals.patch index c3b733400..ef7b2585f 100644 --- a/recipe/patches/0002-Win32-Do-not-download-externals.patch +++ b/recipe/patches/0002-Win32-Do-not-download-externals.patch @@ -1,4 +1,4 @@ -From 9f50db5dbb5a150b2c7799b16b6afacbb5339aa8 Mon Sep 17 00:00:00 2001 +From 25b73c426a756ffea6425130b7e22b5ee544c8ff Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Thu, 7 Sep 2017 11:35:47 +0100 Subject: [PATCH 02/26] Win32: Do not download externals @@ -8,10 +8,10 @@ Subject: [PATCH 02/26] Win32: Do not download externals 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCbuild/build.bat b/PCbuild/build.bat -index e4de9a80d76..22892c05dc7 100644 +index 8fb2f096c93..e69b3aef564 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat -@@ -109,7 +109,7 @@ if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts +@@ -112,7 +112,7 @@ if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index b34b11ca1..c398546f1 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -1,4 +1,4 @@ -From 7312b782873147be93df6dd501030d8c6fcff5f3 Mon Sep 17 00:00:00 2001 +From bd6431cd6b69c8111e1b3c72a89d5ace434c6265 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 5 Dec 2017 22:47:59 +0000 Subject: [PATCH 03/26] Fix find_library so that it looks in sys.prefix/lib @@ -25,10 +25,10 @@ index 583c47daff3..ab9b01c87e2 100644 yield os.path.join(executable_path, name[len('@executable_path/'):]) diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py -index 378f12167c6..bf45580ab9f 100644 +index 3b21658433b..ecd2c6cbd9c 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py -@@ -129,7 +129,8 @@ def dllist(): +@@ -135,7 +135,8 @@ def dllist(): elif os.name == "posix" and sys.platform in {"darwin", "ios", "tvos", "watchos"}: from ctypes.macholib.dyld import dyld_find as _dyld_find def find_library(name): @@ -38,7 +38,7 @@ index 378f12167c6..bf45580ab9f 100644 '%s.dylib' % name, '%s.framework/%s' % (name, name)] for name in possible: -@@ -430,10 +431,30 @@ def _findLib_ld(name): +@@ -436,10 +437,30 @@ def _findLib_ld(name): pass # result will be None return result diff --git a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch index fec353e20..7d3b5f681 100644 --- a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +++ b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch @@ -1,4 +1,4 @@ -From d8e1bbacdc5456cf43d9dfc0c1231023d285afe9 Mon Sep 17 00:00:00 2001 +From e380a8cfc9757d26d85cfe1d0c965b7415fb73ac Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Sat, 27 Oct 2018 18:48:30 +0100 Subject: [PATCH 04/26] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS @@ -23,7 +23,7 @@ index 1e75993480a..ff96c8e1990 100644 !progname_to_dict(dict, "real_executable") || !library_to_dict(dict, "library") || diff --git a/Modules/getpath.py b/Modules/getpath.py -index ceb605a75c8..6d5b9c0d480 100644 +index 4dceb5cdc8d..43a47ca77af 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -52,6 +52,7 @@ @@ -34,9 +34,9 @@ index ceb605a75c8..6d5b9c0d480 100644 # ** Values calculated at runtime ** # config -- [in/out] dict of the PyConfig structure -@@ -704,7 +705,7 @@ def search_up(prefix, *landmarks, test=isfile): - else: - pythonpath.append(joinpath(base_prefix, ZIP_LANDMARK)) +@@ -706,7 +707,7 @@ def search_up(prefix, *landmarks, test=isfile): + stdlib_zip = joinpath(base_prefix, ZIP_LANDMARK) + pythonpath.append(stdlib_zip) - if os_name == 'nt' and use_environment and winreg: + if os_name == 'nt' and use_environment and winreg and ENV_CONDA_PY_ALLOW_REG_PATHS and ENV_CONDA_PY_ALLOW_REG_PATHS != '0': diff --git a/recipe/patches/0005-Unvendor-openssl.patch b/recipe/patches/0005-Unvendor-openssl.patch index 177a20930..9660771c2 100644 --- a/recipe/patches/0005-Unvendor-openssl.patch +++ b/recipe/patches/0005-Unvendor-openssl.patch @@ -1,4 +1,4 @@ -From fe3fd0f75ef1e5fbac3aebe2ae615858850d4324 Mon Sep 17 00:00:00 2001 +From d441985a62cf37f233a6093a187e06497740069d Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Sat, 24 Nov 2018 20:38:02 -0600 Subject: [PATCH 05/26] Unvendor openssl @@ -90,7 +90,7 @@ index 7ca750dda8f..17eee400ebb 100644 diff --git a/PCbuild/python.props b/PCbuild/python.props -index 7840e2a1cfc..253aa66f477 100644 +index 3ad8d81dfc9..05c8c7cd83f 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -68,6 +68,7 @@ @@ -112,8 +112,8 @@ index 7840e2a1cfc..253aa66f477 100644 - $(libffiDir)$(ArchName)\ - $(libffiOutDir)include $(ExternalsDir)\mpdecimal-4.0.0\ -- $(ExternalsDir)openssl-3.0.18\ -- $(ExternalsDir)openssl-bin-3.0.18\$(ArchName)\ +- $(ExternalsDir)openssl-3.5.5\ +- $(ExternalsDir)openssl-bin-3.5.5\$(ArchName)\ - $(opensslOutDir)include $(ExternalsDir)\nasm-2.11.06\ - $(ExternalsDir)\zlib-1.3.1\ diff --git a/recipe/patches/0006-Unvendor-sqlite3.patch b/recipe/patches/0006-Unvendor-sqlite3.patch index e0eafd424..089cba660 100644 --- a/recipe/patches/0006-Unvendor-sqlite3.patch +++ b/recipe/patches/0006-Unvendor-sqlite3.patch @@ -1,4 +1,4 @@ -From 89126b92c8ac764ce9e8034789bf74b4ecf003b5 Mon Sep 17 00:00:00 2001 +From b9106812add3d50b2f441cf7d463725f60b9978c Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Tue, 5 Oct 2021 12:42:06 -0700 Subject: [PATCH 06/26] Unvendor sqlite3 diff --git a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch index 7231c0e9c..2adf2356a 100644 --- a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch +++ b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch @@ -1,4 +1,4 @@ -From 0d5341782ce10d959a1914b99581aee95c4b4176 Mon Sep 17 00:00:00 2001 +From 32d83eacf1dc0cb8db86f22cd310e376d5493350 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 24 Dec 2019 18:37:17 +0100 Subject: [PATCH 07/26] Add CondaEcosystemModifyDllSearchPath() @@ -33,10 +33,10 @@ Co-authored-by: Isuru Fernando 1 file changed, 95 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c -index 2527dca71d7..a2d28a9be46 100644 +index 711e7bc89b7..89ad70f2105 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c -@@ -81,6 +81,10 @@ +@@ -85,6 +85,10 @@ #ifdef MS_WINDOWS # undef BYTE @@ -47,7 +47,7 @@ index 2527dca71d7..a2d28a9be46 100644 #endif #define PUTS(fd, str) (void)_Py_write_noraise(fd, str, (int)strlen(str)) -@@ -115,6 +119,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) +@@ -119,6 +123,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) = _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie); _Py_COMP_DIAG_POP @@ -141,7 +141,7 @@ index 2527dca71d7..a2d28a9be46 100644 static int runtime_initialized = 0; -@@ -132,6 +223,10 @@ _PyRuntime_Initialize(void) +@@ -136,6 +227,10 @@ _PyRuntime_Initialize(void) } runtime_initialized = 1; diff --git a/recipe/patches/0008-Doing-d1trimfile.patch b/recipe/patches/0008-Doing-d1trimfile.patch index 2226f5c44..23878624c 100644 --- a/recipe/patches/0008-Doing-d1trimfile.patch +++ b/recipe/patches/0008-Doing-d1trimfile.patch @@ -1,4 +1,4 @@ -From 2c64caf81d33ab9dea54bf06d183b877ddc32d47 Mon Sep 17 00:00:00 2001 +From 9a38ec4f30d8ec426af73ff082b696dd31d3dcbb Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 31 Dec 2019 21:47:47 +0100 Subject: [PATCH 08/26] Doing d1trimfile @@ -179,7 +179,7 @@ index 3eb9c89bcb6..920656f2ee2 100644 diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj -index 605861ad3fd..4082f3f6d51 100644 +index cb806459596..a85ba7ca53f 100644 --- a/PCbuild/_freeze_module.vcxproj +++ b/PCbuild/_freeze_module.vcxproj @@ -93,6 +93,10 @@ @@ -535,7 +535,7 @@ index c35ac83c1c7..c9d7f5d22b7 100644 diff --git a/PCbuild/_testinternalcapi.vcxproj b/PCbuild/_testinternalcapi.vcxproj -index f7e050b7c74..58c3e10c0f0 100644 +index f3e423fa046..ac285717998 100644 --- a/PCbuild/_testinternalcapi.vcxproj +++ b/PCbuild/_testinternalcapi.vcxproj @@ -92,6 +92,26 @@ @@ -618,13 +618,13 @@ index 75d4e162346..d50534affa1 100644 diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj -index dc9161a8b29..3bcef600a3e 100644 +index 8e0f5f63112..7a1d5942a6c 100644 --- a/PCbuild/pyexpat.vcxproj +++ b/PCbuild/pyexpat.vcxproj @@ -92,6 +92,10 @@ $(PySourcePath)Modules\expat;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;XML_STATIC;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;XML_STATIC;%(PreprocessorDefinitions) + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% @@ -720,7 +720,7 @@ index 3f8772d30b4..d80968e351a 100644 windowsapp.lib;%(AdditionalDependencies) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index dcfb75ce162..5bf342227ad 100644 +index 61bee29c0af..d1efe476439 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -99,7 +99,7 @@ diff --git a/recipe/patches/0009-cross-compile-darwin.patch b/recipe/patches/0009-cross-compile-darwin.patch index 5bc03ab03..998ecdecd 100644 --- a/recipe/patches/0009-cross-compile-darwin.patch +++ b/recipe/patches/0009-cross-compile-darwin.patch @@ -1,4 +1,4 @@ -From 42d193573c79b9760d36d9150d8308f136e874e9 Mon Sep 17 00:00:00 2001 +From 323229d393ca44056d519d8b926ac57d900f6fa9 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Oct 2020 00:03:12 +0200 Subject: [PATCH 09/26] cross compile darwin @@ -11,7 +11,7 @@ By Isuru Fernando. 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 3a71b669985..b342ceec761 100644 +index 9d7aa5c66a9..2401eff96df 100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -474,7 +474,12 @@ def win32_ver(release='', version='', csd='', ptype=''): @@ -29,10 +29,10 @@ index 3a71b669985..b342ceec761 100644 try: import plistlib diff --git a/configure b/configure -index a1bc7991aa8..f26e19a400a 100755 +index eca5f03cdcf..0595b8dc8c2 100755 --- a/configure +++ b/configure -@@ -4133,6 +4133,9 @@ then +@@ -4140,6 +4140,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -42,7 +42,7 @@ index a1bc7991aa8..f26e19a400a 100755 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -4612,6 +4615,9 @@ if test "$cross_compiling" = yes; then +@@ -4619,6 +4622,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; @@ -53,7 +53,7 @@ index a1bc7991aa8..f26e19a400a 100755 _host_ident= ;; diff --git a/configure.ac b/configure.ac -index a284a118f02..b86228cea4f 100644 +index c21024a1e77..9a63e9bbaef 100644 --- a/configure.ac +++ b/configure.ac @@ -333,6 +333,9 @@ then diff --git a/recipe/patches/0010-Fix-TZPATH-on-windows.patch b/recipe/patches/0010-Fix-TZPATH-on-windows.patch index 3d6ad29f3..aeb319c9e 100644 --- a/recipe/patches/0010-Fix-TZPATH-on-windows.patch +++ b/recipe/patches/0010-Fix-TZPATH-on-windows.patch @@ -1,4 +1,4 @@ -From 630cb148ad55a8c366b0c4dd357faf0c99d3f133 Mon Sep 17 00:00:00 2001 +From 1848c4134c71cda587ff04bea02e59cb2347669d Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Oct 2020 10:08:30 -0500 Subject: [PATCH 10/26] Fix TZPATH on windows diff --git a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch index dd9587941..0aaf0cf25 100644 --- a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +++ b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch @@ -1,4 +1,4 @@ -From 9f173aa92e5bb529fd60991c42abb178f16b1e9a Mon Sep 17 00:00:00 2001 +From 387b71e1e8de72e8b88166e0a7cbdb79416acd53 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 25 Jan 2021 03:28:08 -0600 Subject: [PATCH 11/26] Make dyld search work with SYSTEM_VERSION_COMPAT=1 diff --git a/recipe/patches/0012-Unvendor-bzip2.patch b/recipe/patches/0012-Unvendor-bzip2.patch index fef372407..bc19267ae 100644 --- a/recipe/patches/0012-Unvendor-bzip2.patch +++ b/recipe/patches/0012-Unvendor-bzip2.patch @@ -1,4 +1,4 @@ -From b8da28d50e7830647b1069c3ee791914cf6eda1f Mon Sep 17 00:00:00 2001 +From 108f13f1274c37edc200c431e74f6d5de1f0472e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 02:56:27 -0700 Subject: [PATCH 12/26] Unvendor bzip2 diff --git a/recipe/patches/0013-Unvendor-libffi.patch b/recipe/patches/0013-Unvendor-libffi.patch index bc6439490..1e9516e69 100644 --- a/recipe/patches/0013-Unvendor-libffi.patch +++ b/recipe/patches/0013-Unvendor-libffi.patch @@ -1,4 +1,4 @@ -From 8fe13b763103443ad71be1c8be14764b1afa0b00 Mon Sep 17 00:00:00 2001 +From e12404f2f87ab519d56519e894798a020a31a50b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 03:07:40 -0700 Subject: [PATCH 13/26] Unvendor libffi diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index e178ca88f..8f882b629 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -1,4 +1,4 @@ -From 1a6e9fc3846eee64ffa9477fd0ca120ee19eac11 Mon Sep 17 00:00:00 2001 +From 224891042e975b4c534582fcb201f7b1510bb7ad Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 20 Aug 2021 10:23:51 -0700 Subject: [PATCH 14/26] Unvendor tcltk diff --git a/recipe/patches/0015-unvendor-xz.patch b/recipe/patches/0015-unvendor-xz.patch index d3c137422..6bfa48584 100644 --- a/recipe/patches/0015-unvendor-xz.patch +++ b/recipe/patches/0015-unvendor-xz.patch @@ -1,4 +1,4 @@ -From fae25b8b8186b60128621097ebe4922c0c1d33ae Mon Sep 17 00:00:00 2001 +From a49377ccaae2185b5ed4658d361725c32a3b5b67 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Sep 2021 10:07:05 -0700 Subject: [PATCH 15/26] unvendor xz diff --git a/recipe/patches/0016-unvendor-zlib.patch b/recipe/patches/0016-unvendor-zlib.patch index 6fd1848da..46015dc89 100644 --- a/recipe/patches/0016-unvendor-zlib.patch +++ b/recipe/patches/0016-unvendor-zlib.patch @@ -1,4 +1,4 @@ -From cb1c4b7ebe9936da5001437bcdd54f3f496ebdcd Mon Sep 17 00:00:00 2001 +From a20ff3cb121cccad86df60f0e6594b01cb16c97a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Sep 2021 15:21:55 -0700 Subject: [PATCH 16/26] unvendor zlib @@ -9,7 +9,7 @@ Subject: [PATCH 16/26] unvendor zlib 2 files changed, 4 insertions(+), 76 deletions(-) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index 5bf342227ad..f0e8fa6aaad 100644 +index d1efe476439..62b762f8bdc 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -82,7 +82,7 @@ @@ -41,7 +41,7 @@ index 5bf342227ad..f0e8fa6aaad 100644 -@@ -691,12 +691,6 @@ +@@ -695,12 +695,6 @@ @@ -55,10 +55,10 @@ index 5bf342227ad..f0e8fa6aaad 100644 diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters -index 247f4b5a784..00c8bd6e551 100644 +index 664788e69af..53665c076ac 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters -@@ -918,39 +918,6 @@ +@@ -921,39 +921,6 @@ Include\internal\mimalloc @@ -98,7 +98,7 @@ index 247f4b5a784..00c8bd6e551 100644 Include\internal -@@ -1607,39 +1574,6 @@ +@@ -1613,39 +1580,6 @@ Objects diff --git a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch index e6499762e..32edaddb5 100644 --- a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +++ b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch @@ -1,4 +1,4 @@ -From f8510f4e1d2f6adbe4d7ac28f039febf6ed7d144 Mon Sep 17 00:00:00 2001 +From f424f1bd6619a7134bb4543b52d36ed8af4b7aa6 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:45:28 +0100 Subject: [PATCH 17/26] Do not pass -g to GCC when not Py_DEBUG @@ -10,10 +10,10 @@ This bloats our exe and our modules a lot. 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure -index f26e19a400a..24b4a5290e6 100755 +index 0595b8dc8c2..4f2966857ba 100755 --- a/configure +++ b/configure -@@ -5817,9 +5817,9 @@ if test $ac_test_CFLAGS; then +@@ -5824,9 +5824,9 @@ if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -25,7 +25,7 @@ index f26e19a400a..24b4a5290e6 100755 fi else if test "$GCC" = yes; then -@@ -9612,7 +9612,7 @@ then +@@ -9619,7 +9619,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else @@ -35,7 +35,7 @@ index f26e19a400a..24b4a5290e6 100755 ;; *) diff --git a/configure.ac b/configure.ac -index b86228cea4f..095fd5fd9ea 100644 +index 9a63e9bbaef..854e66bedcb 100644 --- a/configure.ac +++ b/configure.ac @@ -2327,7 +2327,7 @@ then diff --git a/recipe/patches/0018-Unvendor-expat.patch b/recipe/patches/0018-Unvendor-expat.patch index d4ab77db8..1eaac615a 100644 --- a/recipe/patches/0018-Unvendor-expat.patch +++ b/recipe/patches/0018-Unvendor-expat.patch @@ -1,4 +1,4 @@ -From b795ea2453a53052d407c26c9f145731fed44580 Mon Sep 17 00:00:00 2001 +From a1019278bfabcbacd69bbbf62cba9b5e8edd5763 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Mar 2023 23:07:10 -0500 Subject: [PATCH 18/26] Unvendor expat @@ -129,7 +129,7 @@ index a5368024cce..7cc8e9a3b9b 100644 \ No newline at end of file + diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj -index 3bcef600a3e..ec5d4b64b3c 100644 +index 7a1d5942a6c..8bc1bcec7e8 100644 --- a/PCbuild/pyexpat.vcxproj +++ b/PCbuild/pyexpat.vcxproj @@ -90,23 +90,19 @@ @@ -138,7 +138,7 @@ index 3bcef600a3e..ec5d4b64b3c 100644 - $(PySourcePath)Modules\expat;%(AdditionalIncludeDirectories) + $(condaDir)\include;%(AdditionalIncludeDirectories) - _CRT_SECURE_NO_WARNINGS;PYEXPAT_EXPORTS;XML_STATIC;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;XML_STATIC;%(PreprocessorDefinitions) /d1trimfile:%SRC_DIR% /d1trimfile:%SRC_DIR% /d1trimfile:%SRC_DIR% diff --git a/recipe/patches/0019-Remove-unused-readelf.patch b/recipe/patches/0019-Remove-unused-readelf.patch index 433bc0528..ca162a4d6 100644 --- a/recipe/patches/0019-Remove-unused-readelf.patch +++ b/recipe/patches/0019-Remove-unused-readelf.patch @@ -1,4 +1,4 @@ -From 256b1d81abd3c5643150824d234123f3530c9c16 Mon Sep 17 00:00:00 2001 +From dac34619b5be2dea6cff95887e8350716e1e4ca5 Mon Sep 17 00:00:00 2001 From: Charles Bousseau Date: Thu, 25 May 2023 17:56:53 -0400 Subject: [PATCH 19/26] Remove unused readelf @@ -15,7 +15,7 @@ Drop unused build dependency on ``readelf``. 1 file changed, 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index a6beb96d12a..a8207acf889 100644 +index 120a6add385..e39dfef95ae 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -38,7 +38,6 @@ CC= @CC@ diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index ff60f22e6..dd578b035 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -1,4 +1,4 @@ -From 512dd160fb94c23a16753e0cd7dd7720782cebf6 Mon Sep 17 00:00:00 2001 +From b5e14a23a5c91e6f7e14f923efed0ac803ef79f6 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 1 Sep 2023 23:32:14 +0200 Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling @@ -10,10 +10,10 @@ Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling create mode 100755 if_runnable.sh diff --git a/Makefile.pre.in b/Makefile.pre.in -index a8207acf889..0e694d378cb 100644 +index e39dfef95ae..109939cbc36 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1609,7 +1609,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) +@@ -1615,7 +1615,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) else \ $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/check_extension_modules.py --generate-missing-stdlib-info; \ fi diff --git a/recipe/patches/0021-Override-configure-LIBFFI.patch b/recipe/patches/0021-Override-configure-LIBFFI.patch index 476162470..502cd71e0 100644 --- a/recipe/patches/0021-Override-configure-LIBFFI.patch +++ b/recipe/patches/0021-Override-configure-LIBFFI.patch @@ -1,4 +1,4 @@ -From 175e7c2f9d1f1d183fc29047daf81b70ace54752 Mon Sep 17 00:00:00 2001 +From ff05e640d84cddc9fb18ae57b476fdbcc0a99c05 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 5 Sep 2023 21:51:31 +0200 Subject: [PATCH 21/26] Override configure LIBFFI @@ -8,10 +8,10 @@ Subject: [PATCH 21/26] Override configure LIBFFI 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure -index 24b4a5290e6..29bf868a17b 100755 +index 4f2966857ba..9f700232d40 100755 --- a/configure +++ b/configure -@@ -15303,7 +15303,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes +@@ -15317,7 +15317,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes then : have_libffi=yes diff --git a/recipe/patches/0022-Unvendor-libmpdec.patch b/recipe/patches/0022-Unvendor-libmpdec.patch index b41d1f6c2..0a24c8977 100644 --- a/recipe/patches/0022-Unvendor-libmpdec.patch +++ b/recipe/patches/0022-Unvendor-libmpdec.patch @@ -1,4 +1,4 @@ -From e2cd18e27083402da2c9898cf830af50a4abc812 Mon Sep 17 00:00:00 2001 +From b713152ab14c7df7ed3ea0e2b963c263e2a46eef Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 16 Aug 2024 21:34:43 -0500 Subject: [PATCH 22/26] Unvendor libmpdec diff --git a/recipe/patches/0023-Brand-conda-forge.patch b/recipe/patches/0023-Brand-conda-forge.patch index d1adb62dd..bf3e53476 100644 --- a/recipe/patches/0023-Brand-conda-forge.patch +++ b/recipe/patches/0023-Brand-conda-forge.patch @@ -1,4 +1,4 @@ -From dfc270d853e31e8f6fd77fcbf4cee5903153e9ed Mon Sep 17 00:00:00 2001 +From a5f26fdd98167ffbcfd64502e85c6cbac3a4638c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 28 Aug 2024 11:12:22 -0500 Subject: [PATCH 23/26] Brand conda-forge @@ -9,7 +9,7 @@ Subject: [PATCH 23/26] Brand conda-forge 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/platform.py b/Lib/platform.py -index b342ceec761..201abdda7ab 100644 +index 2401eff96df..69808d58586 100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -1146,6 +1146,7 @@ def _sys_version(sys_version=None): diff --git a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch index a53ca95c2..39d08ce32 100644 --- a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch +++ b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch @@ -1,4 +1,4 @@ -From 2a47d939b009483e82dd373c9416227e67478334 Mon Sep 17 00:00:00 2001 +From 3076bdfe11bc89567638c0ff669a8ad817dd759b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 12 Jan 2025 10:37:29 +0530 Subject: [PATCH 24/26] Do not define pid_t as it might conflict with the @@ -30,7 +30,7 @@ index 6313abf5485..bc8169e2f68 100644 module _testcapi [clinic start generated code]*/ diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c -index c14f925b4e7..9d2064d3252 100644 +index c0ab35cda19..af073445222 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -23,6 +23,10 @@ @@ -60,7 +60,7 @@ index 34bc7331da9..abae4b19bf0 100644 module _testlimitedcapi [clinic start generated code]*/ diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h -index d880fc52bb3..ec0e9c0b13e 100644 +index ad4c5dd1c9b..0053e527fe7 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -10,6 +10,10 @@ preserve @@ -75,7 +75,7 @@ index d880fc52bb3..ec0e9c0b13e 100644 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index 221cfc5a934..6be30793a58 100644 +index aa3d682a19b..102ba435d86 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -220,6 +220,7 @@ @@ -100,7 +100,7 @@ index a126fca6f5a..8332de4afb4 100644 #if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */ diff --git a/Python/remote_debug.h b/Python/remote_debug.h -index d3932a3fd1e..6346deb9f49 100644 +index 7628fb04ba5..398c91c0470 100644 --- a/Python/remote_debug.h +++ b/Python/remote_debug.h @@ -28,6 +28,9 @@ extern "C" { diff --git a/recipe/patches/0025-Unvendor-zstd.patch b/recipe/patches/0025-Unvendor-zstd.patch index 4fbbb0fc2..d258ba066 100644 --- a/recipe/patches/0025-Unvendor-zstd.patch +++ b/recipe/patches/0025-Unvendor-zstd.patch @@ -1,4 +1,4 @@ -From b6c16c900f6aaae919cc04856723d199097c1f5b Mon Sep 17 00:00:00 2001 +From afc1b0812b94fbb4ada518031f0c518c526f932e Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 22 Jul 2025 18:07:54 +0200 Subject: [PATCH 25/26] Unvendor zstd diff --git a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch index c4451976c..523b2d3c1 100644 --- a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch +++ b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch @@ -1,4 +1,4 @@ -From 9efaededaf799dd06bbd0972be4fc4569c16a8c8 Mon Sep 17 00:00:00 2001 +From 6a769cac72e65980185dbc12c76655656fea19ad Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 2 Dec 2025 09:46:56 -0800 Subject: [PATCH 26/26] Set Py_GIL_DISABLED in windows to match unix From cceff208ba7e5f80b532772137d085af5bc91a79 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 16 Mar 2026 16:28:01 +0100 Subject: [PATCH 15/57] MNT: Re-rendered with conda-smithy 3.56.3 and conda-forge-pinning 2026.03.16.13.44.37 Other tools: - conda-build 26.1.0 - rattler-build 0.58.4 - rattler-build-conda-compat 1.4.11 --- .azure-pipelines/azure-pipelines-osx.yml | 10 +++++++++- ...da-forge_python_dev_debugfreethreadingno.yaml | 4 ++-- ...a-forge_python_dev_debugfreethreadingyes.yaml | 4 ++-- ...etsconda-forge_python_devfreethreadingno.yaml | 4 ++-- ...tsconda-forge_python_devfreethreadingyes.yaml | 4 ++-- .github/workflows/conda-build.yml | 15 +++++++++++++++ .scripts/build_steps.sh | 1 + LICENSE.txt | 3 +-- README.md | 16 ++++++++-------- azure-pipelines.yml | 2 +- build-locally.py | 8 +------- 11 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/conda-build.yml diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index 255b6a9c5..f7f2a778f 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -5,33 +5,41 @@ jobs: - job: osx pool: - vmImage: macOS-15 + vmImage: $(VMIMAGE) strategy: matrix: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' + VMIMAGE: macOS-15 timeoutInMinutes: 360 variables: {} diff --git a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 5a3a6ffa5..eb477a3f6 100644 --- a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -1,5 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '11.0' MACOSX_SDK_VERSION: - '11.0' build_type: @@ -13,7 +13,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '11.0' channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: diff --git a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index d5efeafa4..95124a5f3 100644 --- a/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -1,5 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '11.0' MACOSX_SDK_VERSION: - '11.0' build_type: @@ -13,7 +13,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '11.0' channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: diff --git a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index e0138f85f..a875cde41 100644 --- a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -1,5 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '11.0' MACOSX_SDK_VERSION: - '11.0' build_type: @@ -13,7 +13,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '11.0' channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: diff --git a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 21d6b3ca9..c8b0b8e56 100644 --- a/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -1,5 +1,5 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '11.0' MACOSX_SDK_VERSION: - '11.0' build_type: @@ -13,7 +13,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '11.0' channel_sources: - conda-forge/label/python_rc,conda-forge channel_targets: diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml new file mode 100644 index 000000000..b4e6e61b9 --- /dev/null +++ b/.github/workflows/conda-build.yml @@ -0,0 +1,15 @@ +# This file was generated automatically from conda-smithy. To update this configuration, +# update the conda-forge.yml and/or the recipe/meta.yaml. +# -*- mode: yaml -*- + +name: Build conda package +on: + workflow_dispatch: + +jobs: + build: + name: Disabled build + runs-on: ubuntu-slim + if: false + steps: + - run: exit 0 diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 780a358ff..be060cb03 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -20,6 +20,7 @@ export PYTHONUNBUFFERED=1 export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}" export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support" export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml" +export RATTLER_CACHE_DIR="${FEEDSTOCK_ROOT}/build_artifacts/pkg_cache" cat >~/.condarc < Date: Mon, 16 Mar 2026 16:30:31 +0100 Subject: [PATCH 16/57] Fix clash between folders in lib and usable libraries --- ...3-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index c398546f1..a3f9e58dc 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -47,7 +47,7 @@ index 3b21658433b..ecd2c6cbd9c 100644 + return None + for fullname in (name, "lib%s.so" % (name)): + path = os.path.join(sys.prefix, 'lib', fullname) -+ if os.path.exists(path): ++ if os.path.exists(path) and not os.path.isdir(path): + return path + return None + From 1a1a4251de3cf1e7e0fdbfe17259ca5132d6b85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 17 Apr 2026 17:07:07 +0200 Subject: [PATCH 17/57] Bump to 3.15.0a8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 76a3853cf..fc790a50a 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set version = "3.15.0" %} -{% set dev = "a7" %} +{% set dev = "a8" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} @@ -45,8 +45,8 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz - # md5 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - md5: 76b680750285a243d63dec8374b70818 + # sha256 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ + sha256: 28f1b6358609042ebcc81488ec24569519f50804bb07dc23cc707b281b031c69 patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch From bc7a609f6249d06b2f002ec82d617d8cb9318cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 17 Apr 2026 17:07:35 +0200 Subject: [PATCH 18/57] MNT: Re-rendered with conda-smithy 3.60.0 and conda-forge-pinning 2026.04.17.03.21.26 Other tools: - conda-build 26.3.0 - rattler-build 0.62.0 - rattler-build-conda-compat 1.4.12 --- .azure-pipelines/azure-pipelines-linux.yml | 88 ------------ .github/workflows/conda-build.yml | 160 ++++++++++++++++++++- .scripts/run_docker_build.sh | 33 ++++- README.md | 16 +-- azure-pipelines.yml | 1 - 5 files changed, 190 insertions(+), 108 deletions(-) delete mode 100755 .azure-pipelines/azure-pipelines-linux.yml diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml deleted file mode 100755 index 2ba753abe..000000000 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ /dev/null @@ -1,88 +0,0 @@ -# This file was generated automatically from conda-smithy. To update this configuration, -# update the conda-forge.yml and/or the recipe/meta.yaml. -# -*- mode: yaml -*- - -jobs: -- job: linux - pool: - vmImage: ubuntu-latest - strategy: - matrix: - linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - timeoutInMinutes: 360 - variables: {} - - steps: - # configure qemu binfmt-misc running. This allows us to run docker containers - # embedded qemu-static - - script: | - docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes - ls /proc/sys/fs/binfmt_misc/ - condition: not(startsWith(variables['CONFIG'], 'linux_64')) - displayName: Configure binfmt_misc - - - script: | - export CI=azure - export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) - export remote_url=$(Build.Repository.Uri) - export sha=$(Build.SourceVersion) - export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME - export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) - if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then - export IS_PR_BUILD="True" - else - export IS_PR_BUILD="False" - fi - .scripts/run_docker_build.sh - displayName: Run docker build - env: - BINSTAR_TOKEN: $(BINSTAR_TOKEN) - FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) - STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index b4e6e61b9..cf09c9150 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -4,12 +4,162 @@ name: Build conda package on: - workflow_dispatch: + push: + + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true jobs: build: - name: Disabled build - runs-on: ubuntu-slim - if: false + name: ${{ matrix.CONFIG }} + runs-on: ${{ matrix.runs_on }} + timeout-minutes: 360 + strategy: + fail-fast: false + max-parallel: 50 + matrix: + include: + - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['ubuntu-latest'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 steps: - - run: exit 0 + + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Build on Linux + id: build-linux + if: matrix.os == 'ubuntu' + env: + CONFIG: ${{ matrix.CONFIG }} + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }} + CI: github_actions + CONDA_FORGE_DOCKER_RUN_ARGS: "${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}" + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} + shell: bash + run: | + if [[ "$(uname -m)" == "x86_64" ]]; then + echo "::group::Configure binfmt_misc" + docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes + fi + export flow_run_id="github_$GITHUB_RUN_ID" + export remote_url="https://github.com/$GITHUB_REPOSITORY" + export sha="$GITHUB_SHA" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then + export IS_PR_BUILD="True" + else + export IS_PR_BUILD="False" + fi + echo "::endgroup::" + ./.scripts/run_docker_build.sh + + - name: Build on macOS + id: build-macos + if: matrix.os == 'macos' + env: + CONFIG: ${{ matrix.CONFIG }} + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + CI: github_actions + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} + shell: bash + run: | + export flow_run_id="github_$GITHUB_RUN_ID" + export remote_url="https://github.com/$GITHUB_REPOSITORY" + export sha="$GITHUB_SHA" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then + export IS_PR_BUILD="True" + else + export IS_PR_BUILD="False" + fi + ./.scripts/run_osx_build.sh + + - name: Build on windows + id: build-windows + if: matrix.os == 'windows' + shell: cmd + run: | + set "flow_run_id=github_%GITHUB_RUN_ID%" + set "remote_url=https://github.com/%GITHUB_REPOSITORY%" + set "sha=%GITHUB_SHA%" + call ".scripts\run_win_build.bat" + env: + # default value; make it explicit, as it needs to match with artefact + # generation below. Not configurable for now, can be revisited later + CONDA_BLD_DIR: C:\bld + MINIFORGE_HOME: ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge + PYTHONUNBUFFERED: 1 + CONFIG: ${{ matrix.CONFIG }} + CI: github_actions + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} \ No newline at end of file diff --git a/.scripts/run_docker_build.sh b/.scripts/run_docker_build.sh index b63b5a05a..10d6a2af9 100755 --- a/.scripts/run_docker_build.sh +++ b/.scripts/run_docker_build.sh @@ -11,6 +11,8 @@ source .scripts/logging_utils.sh set -xeo pipefail +DOCKER_EXECUTABLE="${DOCKER_EXECUTABLE:-docker}" + THISDIR="$( cd "$( dirname "$0" )" >/dev/null && pwd )" PROVIDER_DIR="$(basename "$THISDIR")" @@ -27,7 +29,7 @@ if [[ "${sha:-}" == "" ]]; then popd fi -docker info +${DOCKER_EXECUTABLE} info # In order for the conda-build process in the container to write to the mounted # volumes, we need to run with the same id as the host machine, which is @@ -35,6 +37,7 @@ docker info export HOST_USER_ID=$(id -u) # Check if docker-machine is being used (normally on OSX) and get the uid from # the VM + if hash docker-machine 2> /dev/null && docker-machine active > /dev/null; then export HOST_USER_ID=$(docker-machine ssh $(docker-machine active) id -u) fi @@ -76,16 +79,34 @@ if [ -z "${CI}" ]; then DOCKER_RUN_ARGS="-it ${DOCKER_RUN_ARGS}" fi -( endgroup "Configure Docker" ) 2> /dev/null +# Default volume suffix for Docker (preserve original behavior) +VOLUME_SUFFIX=",z" +# Podman-specific handling +if [ "${DOCKER_EXECUTABLE}" = "podman" ]; then + # Fix file permissions for rootless podman builds + podman unshare chown -R ${HOST_USER_ID}:${HOST_USER_ID} "${ARTIFACTS}" + podman unshare chown -R ${HOST_USER_ID}:${HOST_USER_ID} "${RECIPE_ROOT}" + + # Add SELinux label only if enforcing + if command -v getenforce &>/dev/null && [ "$(getenforce)" = "Enforcing" ]; then + VOLUME_SUFFIX=",z" + else + VOLUME_SUFFIX="" + fi +fi + +( endgroup "Configure Docker" ) 2> /dev/null ( startgroup "Start Docker" ) 2> /dev/null export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}" export IS_PR_BUILD="${IS_PR_BUILD:-False}" -docker pull "${DOCKER_IMAGE}" -docker run ${DOCKER_RUN_ARGS} \ - -v "${RECIPE_ROOT}":/home/conda/recipe_root:rw,z,delegated \ - -v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root:rw,z,delegated \ + +${DOCKER_EXECUTABLE} pull "${DOCKER_IMAGE}" + +${DOCKER_EXECUTABLE} run ${DOCKER_RUN_ARGS} \ + -v "${RECIPE_ROOT}":/home/conda/recipe_root:rw${VOLUME_SUFFIX},delegated \ + -v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root:rw${VOLUME_SUFFIX},delegated \ -e CONFIG \ -e HOST_USER_ID \ -e UPLOAD_PACKAGES \ diff --git a/README.md b/README.md index c024120af..c190c2a10 100644 --- a/README.md +++ b/README.md @@ -236,14 +236,14 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge/label/python_dev` channel can be achieved by adding `conda-forge/label/python_dev` to your channels with: +Installing `python` from the `conda-forge/label/python_dev_debug` channel can be achieved by adding `conda-forge/label/python_dev_debug` to your channels with: ``` -conda config --add channels conda-forge/label/python_dev +conda config --add channels conda-forge/label/python_dev_debug conda config --set channel_priority strict ``` -Once the `conda-forge/label/python_dev` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: +Once the `conda-forge/label/python_dev_debug` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: ``` conda install cpython libpython libpython-static python python-freethreading python-gil python-jit @@ -258,26 +258,26 @@ mamba install cpython libpython libpython-static python python-freethreading pyt It is possible to list all of the versions of `cpython` available on your platform with `conda`: ``` -conda search cpython --channel conda-forge/label/python_dev +conda search cpython --channel conda-forge/label/python_dev_debug ``` or with `mamba`: ``` -mamba search cpython --channel conda-forge/label/python_dev +mamba search cpython --channel conda-forge/label/python_dev_debug ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search cpython --channel conda-forge/label/python_dev +mamba repoquery search cpython --channel conda-forge/label/python_dev_debug # List packages depending on `cpython`: -mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev +mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev_debug # List dependencies of `cpython`: -mamba repoquery depends cpython --channel conda-forge/label/python_dev +mamba repoquery depends cpython --channel conda-forge/label/python_dev_debug ``` diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 438c19be3..03594e446 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,6 +28,5 @@ stages: condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true')) dependsOn: Check jobs: - - template: ./.azure-pipelines/azure-pipelines-linux.yml - template: ./.azure-pipelines/azure-pipelines-osx.yml - template: ./.azure-pipelines/azure-pipelines-win.yml \ No newline at end of file From 00ccfcba23166bbb48d26800221379ae376059f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 17 Apr 2026 17:16:38 +0200 Subject: [PATCH 19/57] Reset the build number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index fc790a50a..a3a4579bf 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -4,7 +4,7 @@ {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 1 %} +{% set build_number = 0 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} From 0d661862e2087adc55c4c0142b0fac971183e4dc Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 14:23:44 -0700 Subject: [PATCH 20/57] More unixy layout for windows --- recipe/build_base.bat | 67 +++++++++--------- recipe/meta.yaml | 11 +-- ...2-Change-FD_SETSIZE-from-512-to-2048.patch | 8 +-- ...0002-Win32-Do-not-download-externals.patch | 4 +- ...-so-that-it-looks-in-sys.prefix-lib-.patch | 6 +- ...-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch | 4 +- recipe/patches/0005-Unvendor-openssl.patch | 4 +- recipe/patches/0006-Unvendor-sqlite3.patch | 4 +- ...dd-CondaEcosystemModifyDllSearchPath.patch | 12 ++-- recipe/patches/0008-Doing-d1trimfile.patch | 4 +- .../patches/0009-cross-compile-darwin.patch | 28 ++++---- .../patches/0010-Fix-TZPATH-on-windows.patch | 6 +- ...ch-work-with-SYSTEM_VERSION_COMPAT-1.patch | 4 +- recipe/patches/0012-Unvendor-bzip2.patch | 4 +- recipe/patches/0013-Unvendor-libffi.patch | 4 +- recipe/patches/0014-Unvendor-tcltk.patch | 4 +- recipe/patches/0015-unvendor-xz.patch | 4 +- recipe/patches/0016-unvendor-zlib.patch | 4 +- ...-not-pass-g-to-GCC-when-not-Py_DEBUG.patch | 14 ++-- recipe/patches/0018-Unvendor-expat.patch | 4 +- .../patches/0019-Remove-unused-readelf.patch | 6 +- ...t-checksharedmods-if-cross-compiling.patch | 6 +- .../0021-Override-configure-LIBFFI.patch | 8 +-- recipe/patches/0022-Unvendor-libmpdec.patch | 4 +- recipe/patches/0023-Brand-conda-forge.patch | 4 +- ...d_t-as-it-might-conflict-with-the-ac.patch | 12 ++-- recipe/patches/0025-Unvendor-zstd.patch | 4 +- ...IL_DISABLED-in-windows-to-match-unix.patch | 4 +- .../0027-More-unixy-layout-for-windows.patch | 70 +++++++++++++++++++ 29 files changed, 194 insertions(+), 124 deletions(-) create mode 100644 recipe/patches/0027-More-unixy-layout-for-windows.patch diff --git a/recipe/build_base.bat b/recipe/build_base.bat index 59471bcac..6c083a44c 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -85,40 +85,39 @@ for %%x in (python%THREAD%%_D%.pdb python%VERNODOTS%%THREAD%%_D%.pdb pythonw%THR @echo on -copy %SRC_DIR%\LICENSE %PREFIX%\LICENSE_PYTHON.txt +mkdir %PREFIX%\lib\python +copy %SRC_DIR%\LICENSE %PREFIX%\lib\python\LICENSE_PYTHON.txt if errorlevel 1 exit 1 :: Populate the DLLs directory -mkdir %PREFIX%\DLLs -xcopy /s /y %SRC_DIR%\PCBuild\%BUILD_PATH%\*.pyd %PREFIX%\DLLs\ +mkdir %PREFIX%\lib\python\lib-dynload +xcopy /s /y %SRC_DIR%\PCBuild\%BUILD_PATH%\*.pyd %PREFIX%\lib\python\lib-dynload if errorlevel 1 exit 1 -copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\DLLs\ +copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\lib\python\lib-dynload if errorlevel 1 exit 1 -copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\DLLs\ +copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\lib\python\lib-dynload if errorlevel 1 exit 1 -:: Populate the Tools directory -mkdir %PREFIX%\Tools -xcopy /s /y /i %SRC_DIR%\Tools\i18n %PREFIX%\Tools\i18n -if errorlevel 1 exit 1 -xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\Tools\scripts +mkdir %PREFIX%\lib\python\Tools +xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\lib\python\Tools\scripts if errorlevel 1 exit 1 -del %PREFIX%\Tools\scripts\README +del %PREFIX%\lib\python\Tools\scripts\README if errorlevel 1 exit 1 -del %PREFIX%\Tools\scripts\idle3 +del %PREFIX%\lib\python\Tools\scripts\idle3 if errorlevel 1 exit 1 -move /y %PREFIX%\Tools\scripts\pydoc3 %PREFIX%\Tools\scripts\pydoc3.py +move /y %PREFIX%\lib\python\Tools\scripts\pydoc3 %PREFIX%\lib\python\Tools\scripts\pydoc3.py if errorlevel 1 exit 1 :: Populate the include directory -xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\ +mkdir %PREFIX%\include\python +xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\python\ if errorlevel 1 exit 1 :: Copy generated pyconfig.h -copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\ +copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\python\ if errorlevel 1 exit 1 :: Populate the Scripts directory @@ -126,55 +125,55 @@ if not exist %SCRIPTS% (mkdir %SCRIPTS%) if errorlevel 1 exit 1 for %%x in (idle pydoc) do ( - copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x + copy /Y %SRC_DIR%\lib\python\Tools\scripts\%%x3 %SCRIPTS%\%%x if errorlevel 1 exit 1 ) :: Populate the libs directory -if not exist %PREFIX%\libs mkdir %PREFIX%\libs +if not exist %PREFIX%\lib mkdir %PREFIX%\lib dir %SRC_DIR%\PCbuild\%BUILD_PATH%\ -if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\libs\ +if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\lib\ if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%THREAD%%_D%.lib %PREFIX%\libs\ +if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%THREAD%%_D%.lib %PREFIX%\lib\ if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%THREAD%%_D%.lib %PREFIX%\libs\ +if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\_tkinter%THREAD%%_D%.lib %PREFIX%\lib\ if errorlevel 1 exit 1 -:: Populate the Lib directory -del %PREFIX%\libs\libpython*.a -xcopy /s /y %SRC_DIR%\Lib %PREFIX%\Lib\ +:: Populate the lib directory +del %PREFIX%\lib\libpython*.a +xcopy /s /y %SRC_DIR%\lib %PREFIX%\lib\python\ if errorlevel 1 exit 1 :: Copy venv[w]launcher scripts to venv\srcipts\nt -:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/Lib/venv/__init__.py#L334-L376 +:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/lib/python/venv/__init__.py#L334-L376 if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe ( @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\python.exe - copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe + copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\python.exe + copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe ) else ( echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe does not exist" ) if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe ( @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\pythonw.exe - copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe + copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\pythonw.exe + copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe ) else ( echo "WARNING :: %SRC_DIR%\PCbuild\%BUILD_PATH%\venvwlauncher%THREAD%%_D%.exe does not exist" ) :: Remove test data to save space. :: Though keep `support` as some things use that. -mkdir %PREFIX%\Lib\test_keep +mkdir %PREFIX%\lib\python\test_keep if errorlevel 1 exit 1 -move %PREFIX%\Lib\test\__init__.py %PREFIX%\Lib\test_keep\ +move %PREFIX%\lib\python\test\__init__.py %PREFIX%\lib\python\test_keep\ if errorlevel 1 exit 1 -move %PREFIX%\Lib\test\support %PREFIX%\Lib\test_keep\ +move %PREFIX%\lib\python\test\support %PREFIX%\lib\python\test_keep\ if errorlevel 1 exit 1 -rd /s /q %PREFIX%\Lib\test +rd /s /q %PREFIX%\lib\python\test if errorlevel 1 exit 1 -move %PREFIX%\Lib\test_keep %PREFIX%\Lib\test +move %PREFIX%\lib\python\test_keep %PREFIX%\lib\python\test if errorlevel 1 exit 1 :: We need our Python to be found! @@ -182,7 +181,7 @@ if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe if "%EXE_T%" neq "" copy %PREFIX%\python%EXE_T%.exe %PREFIX%\python.exe :: bytecode compile the standard library -%PREFIX%\python.exe -Wi %PREFIX%\Lib\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib +%PREFIX%\python.exe -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\lib\python if errorlevel 1 exit 1 :: Ensure that scripts are generated diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a3a4579bf..33c1af383 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -80,6 +80,7 @@ source: {% if freethreading == "yes" %} - patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch {% endif %} + - patches/0027-More-unixy-layout-for-windows.patch build: number: {{ build_number }} @@ -252,11 +253,11 @@ outputs: - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.dylib # [osx] - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix] {% if freethreading == "yes" %} - - if not exist %PREFIX%\\libs\\python3t.lib exit 1 # [win] - - if not exist %PREFIX%\\libs\\python{{ ver2nd }}t.lib exit 1 # [win] + - if not exist %PREFIX%\\lib\\python3t.lib exit 1 # [win] + - if not exist %PREFIX%\\lib\\python{{ ver2nd }}t.lib exit 1 # [win] {% else %} - - if not exist %PREFIX%\\libs\\python3.lib exit 1 # [win] - - if not exist %PREFIX%\\libs\\python{{ ver2nd }}.lib exit 1 # [win] + - if not exist %PREFIX%\\lib\\python3.lib exit 1 # [win] + - if not exist %PREFIX%\\lib\\python{{ ver2nd }}.lib exit 1 # [win] {% endif %} # https://github.com/conda-forge/python-feedstock/issues/384 - if exist %PREFIX%\\Scripts\\pydoc exit 1 # [win] @@ -265,7 +266,7 @@ outputs: - if not exist %PREFIX%\\Scripts\\idle-script.py exit 1 # [win] - if not exist %PREFIX%\\Scripts\\idle.exe exit 1 # [win] - if not exist %PREFIX%\\Scripts\\pydoc.exe exit 1 # [win] - - if not exist %PREFIX%\\include\\pyconfig.h exit 1 # [win] + - if not exist %PREFIX%\\include\\python\\pyconfig.h exit 1 # [win] - pushd tests - pushd cmake - cmake -GNinja -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Module" --debug-find --trace --debug-output --debug-trycompile . diff --git a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch index 18c2ccaf8..607e1b971 100644 --- a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +++ b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch @@ -1,7 +1,7 @@ -From ffb1951d87e6554c3e0ae00b6ab8a042e085779a Mon Sep 17 00:00:00 2001 +From b52e23434aaa7b36fdf4ea835fc4d84dff2a61fc Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:53:55 +0100 -Subject: [PATCH 01/26] Win32: Change FD_SETSIZE from 512 to 2048 +Subject: [PATCH 01/27] Win32: Change FD_SETSIZE from 512 to 2048 https://github.com/ContinuumIO/anaconda-issues/issues/1241 --- @@ -9,10 +9,10 @@ https://github.com/ContinuumIO/anaconda-issues/issues/1241 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c -index 137bf2ca55b..70e2d178c54 100644 +index eb3148ef246..1d88b182364 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c -@@ -44,7 +44,7 @@ +@@ -45,7 +45,7 @@ FD_SETSIZE higher before this; e.g., via compiler /D switch. */ #if defined(MS_WINDOWS) && !defined(FD_SETSIZE) diff --git a/recipe/patches/0002-Win32-Do-not-download-externals.patch b/recipe/patches/0002-Win32-Do-not-download-externals.patch index ef7b2585f..7f2d168b5 100644 --- a/recipe/patches/0002-Win32-Do-not-download-externals.patch +++ b/recipe/patches/0002-Win32-Do-not-download-externals.patch @@ -1,7 +1,7 @@ -From 25b73c426a756ffea6425130b7e22b5ee544c8ff Mon Sep 17 00:00:00 2001 +From 6d2d2075042e9ac0307271fc700ae7d7bb1d21e6 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Thu, 7 Sep 2017 11:35:47 +0100 -Subject: [PATCH 02/26] Win32: Do not download externals +Subject: [PATCH 02/27] Win32: Do not download externals --- PCbuild/build.bat | 2 +- diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index a3f9e58dc..ec84d55e2 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -1,7 +1,7 @@ -From bd6431cd6b69c8111e1b3c72a89d5ace434c6265 Mon Sep 17 00:00:00 2001 +From a4e219363bfe395745df9c2cf5e01b6c0004021a Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 5 Dec 2017 22:47:59 +0000 -Subject: [PATCH 03/26] Fix find_library so that it looks in sys.prefix/lib +Subject: [PATCH 03/27] Fix find_library so that it looks in sys.prefix/lib first --- @@ -25,7 +25,7 @@ index 583c47daff3..ab9b01c87e2 100644 yield os.path.join(executable_path, name[len('@executable_path/'):]) diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py -index 3b21658433b..ecd2c6cbd9c 100644 +index 3b21658433b..2c900c1e2cf 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -135,7 +135,8 @@ def dllist(): diff --git a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch index 7d3b5f681..78f03800e 100644 --- a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +++ b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch @@ -1,7 +1,7 @@ -From e380a8cfc9757d26d85cfe1d0c965b7415fb73ac Mon Sep 17 00:00:00 2001 +From d24fd301838f726090fb66e1d4a548cf828062a0 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Sat, 27 Oct 2018 18:48:30 +0100 -Subject: [PATCH 04/26] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS +Subject: [PATCH 04/27] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS is not 0 Co-authored-by: Isuru Fernando diff --git a/recipe/patches/0005-Unvendor-openssl.patch b/recipe/patches/0005-Unvendor-openssl.patch index 9660771c2..0d97e7632 100644 --- a/recipe/patches/0005-Unvendor-openssl.patch +++ b/recipe/patches/0005-Unvendor-openssl.patch @@ -1,7 +1,7 @@ -From d441985a62cf37f233a6093a187e06497740069d Mon Sep 17 00:00:00 2001 +From fa96beea750f3bb06218146fa543c75b5e33120c Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Sat, 24 Nov 2018 20:38:02 -0600 -Subject: [PATCH 05/26] Unvendor openssl +Subject: [PATCH 05/27] Unvendor openssl Co-authored-by: Isuru Fernando --- diff --git a/recipe/patches/0006-Unvendor-sqlite3.patch b/recipe/patches/0006-Unvendor-sqlite3.patch index 089cba660..895c21bba 100644 --- a/recipe/patches/0006-Unvendor-sqlite3.patch +++ b/recipe/patches/0006-Unvendor-sqlite3.patch @@ -1,7 +1,7 @@ -From b9106812add3d50b2f441cf7d463725f60b9978c Mon Sep 17 00:00:00 2001 +From 24c242dbf9cf16f624d2049188fd87b7476ff424 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Tue, 5 Oct 2021 12:42:06 -0700 -Subject: [PATCH 06/26] Unvendor sqlite3 +Subject: [PATCH 06/27] Unvendor sqlite3 --- PCbuild/_sqlite3.vcxproj | 11 +++++------ diff --git a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch index 2adf2356a..88467b779 100644 --- a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch +++ b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch @@ -1,7 +1,7 @@ -From 32d83eacf1dc0cb8db86f22cd310e376d5493350 Mon Sep 17 00:00:00 2001 +From 4465a70a1aa51ee58fb92a3bc317784cc37f5d57 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 24 Dec 2019 18:37:17 +0100 -Subject: [PATCH 07/26] Add CondaEcosystemModifyDllSearchPath() +Subject: [PATCH 07/27] Add CondaEcosystemModifyDllSearchPath() The python interpreter is modifed so that it works as if the python interpreter was called with the following conda directories. @@ -33,10 +33,10 @@ Co-authored-by: Isuru Fernando 1 file changed, 95 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c -index 711e7bc89b7..89ad70f2105 100644 +index 5da0f3e5be3..d62ba38f3fb 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c -@@ -85,6 +85,10 @@ +@@ -90,6 +90,10 @@ #ifdef MS_WINDOWS # undef BYTE @@ -47,7 +47,7 @@ index 711e7bc89b7..89ad70f2105 100644 #endif #define PUTS(fd, str) (void)_Py_write_noraise(fd, str, (int)strlen(str)) -@@ -119,6 +123,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) +@@ -124,6 +128,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) = _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie); _Py_COMP_DIAG_POP @@ -141,7 +141,7 @@ index 711e7bc89b7..89ad70f2105 100644 static int runtime_initialized = 0; -@@ -136,6 +227,10 @@ _PyRuntime_Initialize(void) +@@ -141,6 +232,10 @@ _PyRuntime_Initialize(void) } runtime_initialized = 1; diff --git a/recipe/patches/0008-Doing-d1trimfile.patch b/recipe/patches/0008-Doing-d1trimfile.patch index 23878624c..ae344b78e 100644 --- a/recipe/patches/0008-Doing-d1trimfile.patch +++ b/recipe/patches/0008-Doing-d1trimfile.patch @@ -1,7 +1,7 @@ -From 9a38ec4f30d8ec426af73ff082b696dd31d3dcbb Mon Sep 17 00:00:00 2001 +From b985873fd8df7c9160e604760fb3f56a727858e1 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 31 Dec 2019 21:47:47 +0100 -Subject: [PATCH 08/26] Doing d1trimfile +Subject: [PATCH 08/27] Doing d1trimfile --- PCbuild/_asyncio.vcxproj | 20 ++++++++++++++++++++ diff --git a/recipe/patches/0009-cross-compile-darwin.patch b/recipe/patches/0009-cross-compile-darwin.patch index 998ecdecd..c388e2f3d 100644 --- a/recipe/patches/0009-cross-compile-darwin.patch +++ b/recipe/patches/0009-cross-compile-darwin.patch @@ -1,7 +1,7 @@ -From 323229d393ca44056d519d8b926ac57d900f6fa9 Mon Sep 17 00:00:00 2001 +From e8271f4d9ee63e19ddc13f0eeda6e8f85d04e281 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Oct 2020 00:03:12 +0200 -Subject: [PATCH 09/26] cross compile darwin +Subject: [PATCH 09/27] cross compile darwin By Isuru Fernando. --- @@ -29,10 +29,10 @@ index 9d7aa5c66a9..2401eff96df 100644 try: import plistlib diff --git a/configure b/configure -index eca5f03cdcf..0595b8dc8c2 100755 +index 4726b4fe310..3dd96b59b86 100755 --- a/configure +++ b/configure -@@ -4140,6 +4140,9 @@ then +@@ -4142,6 +4142,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -42,18 +42,18 @@ index eca5f03cdcf..0595b8dc8c2 100755 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -4619,6 +4622,9 @@ if test "$cross_compiling" = yes; then - _host_ident=$host_cpu +@@ -4625,6 +4628,9 @@ if test "$cross_compiling" = yes; then esac ;; -+ *-*-darwin*) + *-gnu) + _host_ident=$host_cpu -+ ;; - *-*-cygwin*) - _host_ident= ++ ;; ++ *-*-darwin*) + _host_ident=$host_cpu ;; + *-*-cygwin*) diff --git a/configure.ac b/configure.ac -index c21024a1e77..9a63e9bbaef 100644 +index dd860292cc2..3d9f990e3d9 100644 --- a/configure.ac +++ b/configure.ac @@ -333,6 +333,9 @@ then @@ -66,9 +66,9 @@ index c21024a1e77..9a63e9bbaef 100644 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -780,6 +783,9 @@ if test "$cross_compiling" = yes; then - _host_ident=$host_cpu - esac +@@ -786,6 +789,9 @@ if test "$cross_compiling" = yes; then + *-gnu) + _host_ident=$host_cpu ;; + *-*-darwin*) + _host_ident=$host_cpu diff --git a/recipe/patches/0010-Fix-TZPATH-on-windows.patch b/recipe/patches/0010-Fix-TZPATH-on-windows.patch index aeb319c9e..e16ca574a 100644 --- a/recipe/patches/0010-Fix-TZPATH-on-windows.patch +++ b/recipe/patches/0010-Fix-TZPATH-on-windows.patch @@ -1,14 +1,14 @@ -From 1848c4134c71cda587ff04bea02e59cb2347669d Mon Sep 17 00:00:00 2001 +From c78be3cb671eaa661890d197931c868e227e6bbd Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Oct 2020 10:08:30 -0500 -Subject: [PATCH 10/26] Fix TZPATH on windows +Subject: [PATCH 10/27] Fix TZPATH on windows --- Lib/sysconfig/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py -index 8ff9c99435b..2caf1862ba0 100644 +index 47415adce04..654a1ef225f 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -175,6 +175,7 @@ def joinuser(*args): diff --git a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch index 0aaf0cf25..d8d8f3a8e 100644 --- a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +++ b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch @@ -1,7 +1,7 @@ -From 387b71e1e8de72e8b88166e0a7cbdb79416acd53 Mon Sep 17 00:00:00 2001 +From 09071420bcbf7f82e8415cdb9b5ed8d964f715ef Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 25 Jan 2021 03:28:08 -0600 -Subject: [PATCH 11/26] Make dyld search work with SYSTEM_VERSION_COMPAT=1 +Subject: [PATCH 11/27] Make dyld search work with SYSTEM_VERSION_COMPAT=1 In macOS Big Sur, if the executable was compiled with `MACOSX_DEPLOYMENT_TARGET=10.15` or below, then SYSTEM_VERSION_COMPAT=1 is the default which means that Big Sur diff --git a/recipe/patches/0012-Unvendor-bzip2.patch b/recipe/patches/0012-Unvendor-bzip2.patch index bc19267ae..acff19425 100644 --- a/recipe/patches/0012-Unvendor-bzip2.patch +++ b/recipe/patches/0012-Unvendor-bzip2.patch @@ -1,7 +1,7 @@ -From 108f13f1274c37edc200c431e74f6d5de1f0472e Mon Sep 17 00:00:00 2001 +From c7f8d6035f1e08cced22c78064ea2f70d6daaf2c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 02:56:27 -0700 -Subject: [PATCH 12/26] Unvendor bzip2 +Subject: [PATCH 12/27] Unvendor bzip2 --- PCbuild/_bz2.vcxproj | 15 +++++---------- diff --git a/recipe/patches/0013-Unvendor-libffi.patch b/recipe/patches/0013-Unvendor-libffi.patch index 1e9516e69..5469ba64d 100644 --- a/recipe/patches/0013-Unvendor-libffi.patch +++ b/recipe/patches/0013-Unvendor-libffi.patch @@ -1,7 +1,7 @@ -From e12404f2f87ab519d56519e894798a020a31a50b Mon Sep 17 00:00:00 2001 +From f080d8e1665b6f3d36e8f650616d80284da0ded7 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 03:07:40 -0700 -Subject: [PATCH 13/26] Unvendor libffi +Subject: [PATCH 13/27] Unvendor libffi --- PCbuild/libffi.props | 17 ++++------------- diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index 8f882b629..c65d660aa 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -1,7 +1,7 @@ -From 224891042e975b4c534582fcb201f7b1510bb7ad Mon Sep 17 00:00:00 2001 +From b14aa0590145f63510ff33c81712d462685fe23c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 20 Aug 2021 10:23:51 -0700 -Subject: [PATCH 14/26] Unvendor tcltk +Subject: [PATCH 14/27] Unvendor tcltk --- PCbuild/_tkinter.vcxproj | 6 ------ diff --git a/recipe/patches/0015-unvendor-xz.patch b/recipe/patches/0015-unvendor-xz.patch index 6bfa48584..9387cdd70 100644 --- a/recipe/patches/0015-unvendor-xz.patch +++ b/recipe/patches/0015-unvendor-xz.patch @@ -1,7 +1,7 @@ -From a49377ccaae2185b5ed4658d361725c32a3b5b67 Mon Sep 17 00:00:00 2001 +From f7a78fc4cd5330f7b0f144bf63fdc47163006288 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Sep 2021 10:07:05 -0700 -Subject: [PATCH 15/26] unvendor xz +Subject: [PATCH 15/27] unvendor xz --- PCbuild/_lzma.vcxproj | 10 +++------- diff --git a/recipe/patches/0016-unvendor-zlib.patch b/recipe/patches/0016-unvendor-zlib.patch index 46015dc89..964d3301f 100644 --- a/recipe/patches/0016-unvendor-zlib.patch +++ b/recipe/patches/0016-unvendor-zlib.patch @@ -1,7 +1,7 @@ -From a20ff3cb121cccad86df60f0e6594b01cb16c97a Mon Sep 17 00:00:00 2001 +From 3c798a27a13178e21ebef9af0958994e8982b69c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Sep 2021 15:21:55 -0700 -Subject: [PATCH 16/26] unvendor zlib +Subject: [PATCH 16/27] unvendor zlib --- PCbuild/pythoncore.vcxproj | 14 ++----- diff --git a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch index 32edaddb5..968102138 100644 --- a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +++ b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch @@ -1,7 +1,7 @@ -From f424f1bd6619a7134bb4543b52d36ed8af4b7aa6 Mon Sep 17 00:00:00 2001 +From 8412a62f4b136ebf3d2f9a49d2f6a273ea354dd5 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:45:28 +0100 -Subject: [PATCH 17/26] Do not pass -g to GCC when not Py_DEBUG +Subject: [PATCH 17/27] Do not pass -g to GCC when not Py_DEBUG This bloats our exe and our modules a lot. --- @@ -10,10 +10,10 @@ This bloats our exe and our modules a lot. 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure -index 0595b8dc8c2..4f2966857ba 100755 +index 3dd96b59b86..369b032c7a5 100755 --- a/configure +++ b/configure -@@ -5824,9 +5824,9 @@ if test $ac_test_CFLAGS; then +@@ -5832,9 +5832,9 @@ if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -25,7 +25,7 @@ index 0595b8dc8c2..4f2966857ba 100755 fi else if test "$GCC" = yes; then -@@ -9619,7 +9619,7 @@ then +@@ -9667,7 +9667,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else @@ -35,10 +35,10 @@ index 0595b8dc8c2..4f2966857ba 100755 ;; *) diff --git a/configure.ac b/configure.ac -index 9a63e9bbaef..854e66bedcb 100644 +index 3d9f990e3d9..d6bb9724a7d 100644 --- a/configure.ac +++ b/configure.ac -@@ -2327,7 +2327,7 @@ then +@@ -2336,7 +2336,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else diff --git a/recipe/patches/0018-Unvendor-expat.patch b/recipe/patches/0018-Unvendor-expat.patch index 1eaac615a..4364c1e9e 100644 --- a/recipe/patches/0018-Unvendor-expat.patch +++ b/recipe/patches/0018-Unvendor-expat.patch @@ -1,7 +1,7 @@ -From a1019278bfabcbacd69bbbf62cba9b5e8edd5763 Mon Sep 17 00:00:00 2001 +From bd65aba356c307b50aa0585d865279168e0ed9e2 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Mar 2023 23:07:10 -0500 -Subject: [PATCH 18/26] Unvendor expat +Subject: [PATCH 18/27] Unvendor expat --- PCbuild/_elementtree.vcxproj | 24 ++---------- diff --git a/recipe/patches/0019-Remove-unused-readelf.patch b/recipe/patches/0019-Remove-unused-readelf.patch index ca162a4d6..d35744ab5 100644 --- a/recipe/patches/0019-Remove-unused-readelf.patch +++ b/recipe/patches/0019-Remove-unused-readelf.patch @@ -1,7 +1,7 @@ -From dac34619b5be2dea6cff95887e8350716e1e4ca5 Mon Sep 17 00:00:00 2001 +From 163ac65b3ebb8350b14428ce2a867ab9157de04a Mon Sep 17 00:00:00 2001 From: Charles Bousseau Date: Thu, 25 May 2023 17:56:53 -0400 -Subject: [PATCH 19/26] Remove unused readelf +Subject: [PATCH 19/27] Remove unused readelf readelf has been dropped. .. date: 2022-11-02-10-56-40 @@ -15,7 +15,7 @@ Drop unused build dependency on ``readelf``. 1 file changed, 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 120a6add385..e39dfef95ae 100644 +index 354580aa482..1461a30cd79 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -38,7 +38,6 @@ CC= @CC@ diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index dd578b035..8857b83e0 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -1,7 +1,7 @@ -From b5e14a23a5c91e6f7e14f923efed0ac803ef79f6 Mon Sep 17 00:00:00 2001 +From c3948b896e5d07f7ae548c9a3dc1ac8b7cb1ab80 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 1 Sep 2023 23:32:14 +0200 -Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling +Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling --- Makefile.pre.in | 2 +- @@ -10,7 +10,7 @@ Subject: [PATCH 20/26] Don't checksharedmods if cross-compiling create mode 100755 if_runnable.sh diff --git a/Makefile.pre.in b/Makefile.pre.in -index e39dfef95ae..109939cbc36 100644 +index 1461a30cd79..5acf12b7fd3 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1615,7 +1615,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) diff --git a/recipe/patches/0021-Override-configure-LIBFFI.patch b/recipe/patches/0021-Override-configure-LIBFFI.patch index 502cd71e0..cd747f069 100644 --- a/recipe/patches/0021-Override-configure-LIBFFI.patch +++ b/recipe/patches/0021-Override-configure-LIBFFI.patch @@ -1,17 +1,17 @@ -From ff05e640d84cddc9fb18ae57b476fdbcc0a99c05 Mon Sep 17 00:00:00 2001 +From c1c7a327ddf5c562d42ae540c189737117cdb2c4 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 5 Sep 2023 21:51:31 +0200 -Subject: [PATCH 21/26] Override configure LIBFFI +Subject: [PATCH 21/27] Override configure LIBFFI --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure -index 4f2966857ba..9f700232d40 100755 +index 369b032c7a5..1248a8ccf34 100755 --- a/configure +++ b/configure -@@ -15317,7 +15317,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes +@@ -15458,7 +15458,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes then : have_libffi=yes diff --git a/recipe/patches/0022-Unvendor-libmpdec.patch b/recipe/patches/0022-Unvendor-libmpdec.patch index 0a24c8977..c4f7f5374 100644 --- a/recipe/patches/0022-Unvendor-libmpdec.patch +++ b/recipe/patches/0022-Unvendor-libmpdec.patch @@ -1,7 +1,7 @@ -From b713152ab14c7df7ed3ea0e2b963c263e2a46eef Mon Sep 17 00:00:00 2001 +From 984b3d2f2c8f23324ea4d70ca5554e2320eabc2e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 16 Aug 2024 21:34:43 -0500 -Subject: [PATCH 22/26] Unvendor libmpdec +Subject: [PATCH 22/27] Unvendor libmpdec --- PCbuild/_decimal.vcxproj | 51 ++++++---------------------------------- diff --git a/recipe/patches/0023-Brand-conda-forge.patch b/recipe/patches/0023-Brand-conda-forge.patch index bf3e53476..e36eb1684 100644 --- a/recipe/patches/0023-Brand-conda-forge.patch +++ b/recipe/patches/0023-Brand-conda-forge.patch @@ -1,7 +1,7 @@ -From a5f26fdd98167ffbcfd64502e85c6cbac3a4638c Mon Sep 17 00:00:00 2001 +From 0cd204331a095425b848df1b71a8eba3dc55604b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 28 Aug 2024 11:12:22 -0500 -Subject: [PATCH 23/26] Brand conda-forge +Subject: [PATCH 23/27] Brand conda-forge --- Lib/platform.py | 1 + diff --git a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch index 39d08ce32..85dd6eac1 100644 --- a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch +++ b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch @@ -1,7 +1,7 @@ -From 3076bdfe11bc89567638c0ff669a8ad817dd759b Mon Sep 17 00:00:00 2001 +From efeee2e5065c4ad3a5a4957448baa84eb3ef3b45 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 12 Jan 2025 10:37:29 +0530 -Subject: [PATCH 24/26] Do not define pid_t as it might conflict with the +Subject: [PATCH 24/27] Do not define pid_t as it might conflict with the actual definition --- @@ -15,7 +15,7 @@ Subject: [PATCH 24/26] Do not define pid_t as it might conflict with the 7 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Modules/_testcapi/long.c b/Modules/_testcapi/long.c -index 6313abf5485..bc8169e2f68 100644 +index 008a7d37726..7829e9cc714 100644 --- a/Modules/_testcapi/long.c +++ b/Modules/_testcapi/long.c @@ -6,6 +6,10 @@ @@ -30,7 +30,7 @@ index 6313abf5485..bc8169e2f68 100644 module _testcapi [clinic start generated code]*/ diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c -index c0ab35cda19..af073445222 100644 +index aa12db20908..15489be2e95 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -23,6 +23,10 @@ @@ -75,10 +75,10 @@ index ad4c5dd1c9b..0053e527fe7 100644 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index aa3d682a19b..102ba435d86 100644 +index e5ce487723b..e90463fa21e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c -@@ -220,6 +220,7 @@ +@@ -221,6 +221,7 @@ # if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) # define HAVE_SYMLINK # endif /* MS_WINDOWS_DESKTOP | MS_WINDOWS_SYSTEM */ diff --git a/recipe/patches/0025-Unvendor-zstd.patch b/recipe/patches/0025-Unvendor-zstd.patch index d258ba066..44b03d1bb 100644 --- a/recipe/patches/0025-Unvendor-zstd.patch +++ b/recipe/patches/0025-Unvendor-zstd.patch @@ -1,7 +1,7 @@ -From afc1b0812b94fbb4ada518031f0c518c526f932e Mon Sep 17 00:00:00 2001 +From f03fda6332e6d34a9826ed494aab78b1315ea414 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 22 Jul 2025 18:07:54 +0200 -Subject: [PATCH 25/26] Unvendor zstd +Subject: [PATCH 25/27] Unvendor zstd --- PCbuild/_zstd.vcxproj | 58 +------------ diff --git a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch index 523b2d3c1..31a9c6a76 100644 --- a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch +++ b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch @@ -1,7 +1,7 @@ -From 6a769cac72e65980185dbc12c76655656fea19ad Mon Sep 17 00:00:00 2001 +From e332b0f997ce1bd79d68b920151507776207fb62 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 2 Dec 2025 09:46:56 -0800 -Subject: [PATCH 26/26] Set Py_GIL_DISABLED in windows to match unix +Subject: [PATCH 26/27] Set Py_GIL_DISABLED in windows to match unix This is not set upstream because the windows distribution supports free-threaded and default builds at the same time. We have the diff --git a/recipe/patches/0027-More-unixy-layout-for-windows.patch b/recipe/patches/0027-More-unixy-layout-for-windows.patch new file mode 100644 index 000000000..0f9a62a8c --- /dev/null +++ b/recipe/patches/0027-More-unixy-layout-for-windows.patch @@ -0,0 +1,70 @@ +From 11a7d458b4d276f5d06353bc141166c1c6a90df1 Mon Sep 17 00:00:00 2001 +From: Isuru Fernando +Date: Fri, 22 May 2026 14:21:19 -0700 +Subject: [PATCH 27/27] More unixy layout for windows + +--- + Lib/sysconfig/__init__.py | 12 +++++++++++- + Modules/getpath.py | 4 ++-- + PCbuild/pythoncore.vcxproj | 2 +- + 3 files changed, 14 insertions(+), 4 deletions(-) + +diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py +index 654a1ef225f..a7b6563004c 100644 +--- a/Lib/sysconfig/__init__.py ++++ b/Lib/sysconfig/__init__.py +@@ -58,6 +58,16 @@ + 'scripts': '{base}/Scripts', + 'data': '{base}', + }, ++ 'nt_conda': { ++ 'stdlib': '{installed_base}/{platlibdir}/{implementation_lower}', ++ 'platstdlib': '{base}/{platlibdir}/{implementation_lower}', ++ 'purelib': '{base}/lib/{implementation_lower}}/site-packages', ++ 'platlib': '{base}/{platlibdir}/{implementation_lower}/site-packages', ++ 'include': '{installed_base}/include/{implementation_lower}', ++ 'platinclude': '{installed_platbase}/include/{implementation_lower}', ++ 'scripts': '{base}/Scripts', ++ 'data': '{base}', ++ }, + + # Downstream distributors can overwrite the default install scheme. + # This is done to support downstream modifications where distributors change +@@ -279,7 +289,7 @@ def _expand_vars(scheme, vars): + def _get_preferred_schemes(): + if os.name == 'nt': + return { +- 'prefix': 'nt', ++ 'prefix': 'nt_conda', + 'home': 'posix_home', + 'user': 'nt_user', + } +diff --git a/Modules/getpath.py b/Modules/getpath.py +index 43a47ca77af..0197811f7eb 100644 +--- a/Modules/getpath.py ++++ b/Modules/getpath.py +@@ -193,9 +193,9 @@ + BUILDDIR_TXT = 'pybuilddir.txt' + BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local' + DEFAULT_PROGRAM_NAME = f'python' +- STDLIB_SUBDIR = 'Lib' ++ STDLIB_SUBDIR = f'{platlibdir}\\python' + STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}\\os.py', f'{STDLIB_SUBDIR}\\os.pyc'] +- PLATSTDLIB_LANDMARK = f'{platlibdir}' ++ PLATSTDLIB_LANDMARK = f'{platlibdir}\\python\\lib-dynload' + BUILDSTDLIB_LANDMARKS = ['Lib\\os.py'] + VENV_LANDMARK = 'pyvenv.cfg' + ZIP_LANDMARK = f'python{VERSION_MAJOR}{VERSION_MINOR}{PYDEBUGEXT or ""}.zip' +diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj +index 62b762f8bdc..e5d52458346 100644 +--- a/PCbuild/pythoncore.vcxproj ++++ b/PCbuild/pythoncore.vcxproj +@@ -126,7 +126,7 @@ + VERSION=NULL; + VPATH="$(PyVPath)"; + PYDEBUGEXT="$(PyDebugExt)"; +- PLATLIBDIR="DLLs"; ++ PLATLIBDIR="lib"; + %(PreprocessorDefinitions) + + From 411792fe833269605981935d003136064dae4b35 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 14:41:06 -0700 Subject: [PATCH 21/57] fix crlf patch --- .../0027-More-unixy-layout-for-windows.patch | 70 +++++++++---------- recipe/patches/make-mixed-crlf-patch.py | 12 +++- 2 files changed, 44 insertions(+), 38 deletions(-) diff --git a/recipe/patches/0027-More-unixy-layout-for-windows.patch b/recipe/patches/0027-More-unixy-layout-for-windows.patch index 0f9a62a8c..fc54d113f 100644 --- a/recipe/patches/0027-More-unixy-layout-for-windows.patch +++ b/recipe/patches/0027-More-unixy-layout-for-windows.patch @@ -14,47 +14,47 @@ index 654a1ef225f..a7b6563004c 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -58,6 +58,16 @@ - 'scripts': '{base}/Scripts', - 'data': '{base}', - }, -+ 'nt_conda': { -+ 'stdlib': '{installed_base}/{platlibdir}/{implementation_lower}', -+ 'platstdlib': '{base}/{platlibdir}/{implementation_lower}', -+ 'purelib': '{base}/lib/{implementation_lower}}/site-packages', -+ 'platlib': '{base}/{platlibdir}/{implementation_lower}/site-packages', -+ 'include': '{installed_base}/include/{implementation_lower}', -+ 'platinclude': '{installed_platbase}/include/{implementation_lower}', -+ 'scripts': '{base}/Scripts', -+ 'data': '{base}', -+ }, - - # Downstream distributors can overwrite the default install scheme. - # This is done to support downstream modifications where distributors change + 'scripts': '{base}/Scripts', + 'data': '{base}', + }, ++ 'nt_conda': { ++ 'stdlib': '{installed_base}/{platlibdir}/{implementation_lower}', ++ 'platstdlib': '{base}/{platlibdir}/{implementation_lower}', ++ 'purelib': '{base}/lib/{implementation_lower}}/site-packages', ++ 'platlib': '{base}/{platlibdir}/{implementation_lower}/site-packages', ++ 'include': '{installed_base}/include/{implementation_lower}', ++ 'platinclude': '{installed_platbase}/include/{implementation_lower}', ++ 'scripts': '{base}/Scripts', ++ 'data': '{base}', ++ }, + + # Downstream distributors can overwrite the default install scheme. + # This is done to support downstream modifications where distributors change @@ -279,7 +289,7 @@ def _expand_vars(scheme, vars): - def _get_preferred_schemes(): - if os.name == 'nt': - return { -- 'prefix': 'nt', -+ 'prefix': 'nt_conda', - 'home': 'posix_home', - 'user': 'nt_user', - } + def _get_preferred_schemes(): + if os.name == 'nt': + return { +- 'prefix': 'nt', ++ 'prefix': 'nt_conda', + 'home': 'posix_home', + 'user': 'nt_user', + } diff --git a/Modules/getpath.py b/Modules/getpath.py index 43a47ca77af..0197811f7eb 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -193,9 +193,9 @@ - BUILDDIR_TXT = 'pybuilddir.txt' - BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local' - DEFAULT_PROGRAM_NAME = f'python' -- STDLIB_SUBDIR = 'Lib' -+ STDLIB_SUBDIR = f'{platlibdir}\\python' - STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}\\os.py', f'{STDLIB_SUBDIR}\\os.pyc'] -- PLATSTDLIB_LANDMARK = f'{platlibdir}' -+ PLATSTDLIB_LANDMARK = f'{platlibdir}\\python\\lib-dynload' - BUILDSTDLIB_LANDMARKS = ['Lib\\os.py'] - VENV_LANDMARK = 'pyvenv.cfg' - ZIP_LANDMARK = f'python{VERSION_MAJOR}{VERSION_MINOR}{PYDEBUGEXT or ""}.zip' + BUILDDIR_TXT = 'pybuilddir.txt' + BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local' + DEFAULT_PROGRAM_NAME = f'python' +- STDLIB_SUBDIR = 'Lib' ++ STDLIB_SUBDIR = f'{platlibdir}\\python' + STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}\\os.py', f'{STDLIB_SUBDIR}\\os.pyc'] +- PLATSTDLIB_LANDMARK = f'{platlibdir}' ++ PLATSTDLIB_LANDMARK = f'{platlibdir}\\python\\lib-dynload' + BUILDSTDLIB_LANDMARKS = ['Lib\\os.py'] + VENV_LANDMARK = 'pyvenv.cfg' + ZIP_LANDMARK = f'python{VERSION_MAJOR}{VERSION_MINOR}{PYDEBUGEXT or ""}.zip' diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 62b762f8bdc..e5d52458346 100644 --- a/PCbuild/pythoncore.vcxproj diff --git a/recipe/patches/make-mixed-crlf-patch.py b/recipe/patches/make-mixed-crlf-patch.py index ccf46fa2f..445e01db2 100644 --- a/recipe/patches/make-mixed-crlf-patch.py +++ b/recipe/patches/make-mixed-crlf-patch.py @@ -8,6 +8,8 @@ # header lines are given LF line endings and the rest CRLF line endings. # Does not currently deal with the prelude (up to the -- in git patches). +extensions = [".bat", ".vcxproj", ".props", ".sln"] + def main(argv): filename = argv[1] lines = [] @@ -26,17 +28,21 @@ def main(argv): text = "\n".join(lines) - if ".bat" not in text and ".vcxproj" not in text and ".props" not in text: + if all(ext not in text for ext in extensions): + return return with open(filename, 'wb') as fo: for i, line in enumerate(lines): if not in_real_patch: fo.write((line + '\n').encode('utf-8')) - if line.startswith('diff --git'): + if line.startswith('diff --git') and any(ext in line for ext in extensions): in_real_patch = True else: - if line.startswith('diff ') or \ + if line.startswith('diff --git') and not any(ext in line for ext in extensions): + in_real_patch = False + fo.write((line + '\r\n').encode('utf-8')) + elif line.startswith('diff ') or \ line.startswith('diff --git') or \ line.startswith('--- ') or \ line.startswith('+++ ') or \ From 0ee32fca0a2a9bb3f769053642f1927da64e5f00 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 15:12:45 -0700 Subject: [PATCH 22/57] fix idle --- recipe/build_base.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index 6c083a44c..d524ef999 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -125,7 +125,7 @@ if not exist %SCRIPTS% (mkdir %SCRIPTS%) if errorlevel 1 exit 1 for %%x in (idle pydoc) do ( - copy /Y %SRC_DIR%\lib\python\Tools\scripts\%%x3 %SCRIPTS%\%%x + copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x if errorlevel 1 exit 1 ) From ffc607bf3f9c6b4910ba67b02b5bbe32c6d6e6ff Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 15:29:15 -0700 Subject: [PATCH 23/57] remove stray } --- recipe/patches/0027-More-unixy-layout-for-windows.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/patches/0027-More-unixy-layout-for-windows.patch b/recipe/patches/0027-More-unixy-layout-for-windows.patch index fc54d113f..69285bd5e 100644 --- a/recipe/patches/0027-More-unixy-layout-for-windows.patch +++ b/recipe/patches/0027-More-unixy-layout-for-windows.patch @@ -20,7 +20,7 @@ index 654a1ef225f..a7b6563004c 100644 + 'nt_conda': { + 'stdlib': '{installed_base}/{platlibdir}/{implementation_lower}', + 'platstdlib': '{base}/{platlibdir}/{implementation_lower}', -+ 'purelib': '{base}/lib/{implementation_lower}}/site-packages', ++ 'purelib': '{base}/lib/{implementation_lower}/site-packages', + 'platlib': '{base}/{platlibdir}/{implementation_lower}/site-packages', + 'include': '{installed_base}/include/{implementation_lower}', + 'platinclude': '{installed_platbase}/include/{implementation_lower}', From 3085e6e60b63262ad72abfdf09346d74c64adbc5 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 15:53:37 -0700 Subject: [PATCH 24/57] fix site-packages --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 33c1af383..eb8d61c83 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -32,7 +32,7 @@ {% endif %} {% if win %} - {% set site_packages_path = "Lib/site-packages" %} + {% set site_packages_path = "lib/python/site-packages" %} {% elif freethreading == "yes" %} {% set site_packages_path = "lib/python" + ver2 + "t/site-packages" %} {% else %} From 015d364170e683acacdd360b40a9eee1499e44ac Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 24 May 2026 11:28:19 -0700 Subject: [PATCH 25/57] store build artifacts --- conda-forge.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conda-forge.yml b/conda-forge.yml index a16962d89..864992396 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -9,6 +9,8 @@ build_platform: linux_aarch64: linux_64 linux_ppc64le: linux_64 osx_arm64: osx_64 +workflow_settings: + store_build_artifacts: true conda_build: pkg_format: '2' conda_forge_output_validation: true From 1ca25f72492c03be4d9490bd3b385e706196d406 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 24 May 2026 11:29:10 -0700 Subject: [PATCH 26/57] debug --- recipe/run_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipe/run_test.py b/recipe/run_test.py index 6b6473899..29b9c7179 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -2,6 +2,9 @@ import platform import sys import subprocess +import site +print(site.getsitepackages()) +print(site.getusersitepackages()) armv6l = bool(platform.machine() == 'armv6l') armv7l = bool(platform.machine() == 'armv7l') From e312218e631f650a558883a448a5e1b57e0fb2af Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 24 May 2026 12:11:18 -0700 Subject: [PATCH 27/57] updat epatch --- .../0027-More-unixy-layout-for-windows.patch | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/recipe/patches/0027-More-unixy-layout-for-windows.patch b/recipe/patches/0027-More-unixy-layout-for-windows.patch index 69285bd5e..7d8444e1d 100644 --- a/recipe/patches/0027-More-unixy-layout-for-windows.patch +++ b/recipe/patches/0027-More-unixy-layout-for-windows.patch @@ -1,16 +1,30 @@ -From 11a7d458b4d276f5d06353bc141166c1c6a90df1 Mon Sep 17 00:00:00 2001 +From af7dee26a2be6d38d8f3466fbeac16dca739614f Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 14:21:19 -0700 Subject: [PATCH 27/27] More unixy layout for windows +See https://github.com/conda-forge/cfep/pull/65 --- + Lib/site.py | 1 + Lib/sysconfig/__init__.py | 12 +++++++++++- Modules/getpath.py | 4 ++-- PCbuild/pythoncore.vcxproj | 2 +- - 3 files changed, 14 insertions(+), 4 deletions(-) + 4 files changed, 15 insertions(+), 4 deletions(-) +diff --git a/Lib/site.py b/Lib/site.py +index 30015b3f26b..f0c62fb4e59 100644 +--- a/Lib/site.py ++++ b/Lib/site.py +@@ -414,6 +414,7 @@ def getsitepackages(prefixes=None): + "site-packages") + sitepackages.append(path) + else: ++ sitepackages.append(os.path.join(prefix, "lib", "python", "site-packages")) + sitepackages.append(prefix) + sitepackages.append(os.path.join(prefix, "Lib", "site-packages")) + return sitepackages diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py -index 654a1ef225f..a7b6563004c 100644 +index 654a1ef225f..9021d40e809 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -58,6 +58,16 @@ From 7865f301d80018691c6ac106a18a0135d4fc45d0 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 28 May 2026 12:24:05 -0700 Subject: [PATCH 28/57] Refactor print statements to use f-strings Updated print statements to f-strings for better readability. --- recipe/run_test.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/recipe/run_test.py b/recipe/run_test.py index 29b9c7179..edb457587 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -3,8 +3,6 @@ import sys import subprocess import site -print(site.getsitepackages()) -print(site.getusersitepackages()) armv6l = bool(platform.machine() == 'armv6l') armv7l = bool(platform.machine() == 'armv7l') @@ -14,16 +12,18 @@ else: osx105 = False -print('sys.version:', sys.version) -print('sys.platform:', sys.platform) -print('tuple.__itemsize__:', tuple.__itemsize__) +print(f"{sys.version=}") +print(f"{sys.platform=}") +print(f"{tuple.__itemsize__=}") if sys.platform == 'win32': assert 'MSC v.19' in sys.version if hasattr(sys, "abiflags"): - print('sys.abiflags', sys.abiflags) -print('sys.maxunicode:', sys.maxunicode) -print('platform.architecture:', platform.architecture()) -print('platform.python_version:', platform.python_version()) + print(f"{sys.abiflags=}") +print(f"{sys.maxunicode=}") +print(f"{platform.architecture=}") +print(f"{platform.python_version=}") +print(f"{site.getsitepackages()=}") +print(f"{site.getusersitepackages()=}") import _bisect import _codecs_cn From e03e95e6628c787b0ff6881cd018eaa3ac32215e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 29 May 2026 11:06:22 -0700 Subject: [PATCH 29/57] Apply suggestions from code review Co-authored-by: jaimergp Co-authored-by: Isuru Fernando --- recipe/build_base.bat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index d524ef999..ae13ade80 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -130,7 +130,6 @@ for %%x in (idle pydoc) do ( ) :: Populate the libs directory -if not exist %PREFIX%\lib mkdir %PREFIX%\lib dir %SRC_DIR%\PCbuild\%BUILD_PATH%\ if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\lib\ if errorlevel 1 exit 1 @@ -145,7 +144,7 @@ del %PREFIX%\lib\libpython*.a xcopy /s /y %SRC_DIR%\lib %PREFIX%\lib\python\ if errorlevel 1 exit 1 -:: Copy venv[w]launcher scripts to venv\srcipts\nt +:: Copy venv[w]launcher scripts to venv\scripts\nt :: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/lib/python/venv/__init__.py#L334-L376 if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\venvlauncher%THREAD%%_D%.exe ( @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? From 5ef78ccf858d18825b2938d66a872f57eefe84d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 12:14:39 +0200 Subject: [PATCH 30/57] Bump to 3.15.0b4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index eb8d61c83..8e2202e6b 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set version = "3.15.0" %} -{% set dev = "a8" %} +{% set dev = "b4" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} @@ -46,7 +46,7 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # sha256 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - sha256: 28f1b6358609042ebcc81488ec24569519f50804bb07dc23cc707b281b031c69 + sha256: 93efb9c88d7b6633368e7f7b8f8db6e98988f7f761c09b77849447262841ce3a patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch From 910a5c0e5204dd8bc39916b8ef8bb22e78356005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 18:58:06 +0200 Subject: [PATCH 31/57] Rebase and update patches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebase the patches, remove CRLF-at-EOL introduced previously and extend /d1trimfile to more files. Signed-off-by: Michał Górny --- ...2-Change-FD_SETSIZE-from-512-to-2048.patch | 4 +- ...0002-Win32-Do-not-download-externals.patch | 4 +- ...-so-that-it-looks-in-sys.prefix-lib-.patch | 8 +- ...-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch | 6 +- recipe/patches/0005-Unvendor-openssl.patch | 18 +- recipe/patches/0006-Unvendor-sqlite3.patch | 18 +- ...dd-CondaEcosystemModifyDllSearchPath.patch | 10 +- recipe/patches/0008-Doing-d1trimfile.patch | 355 ++++++++++-------- .../patches/0009-cross-compile-darwin.patch | 12 +- .../patches/0010-Fix-TZPATH-on-windows.patch | 2 +- ...ch-work-with-SYSTEM_VERSION_COMPAT-1.patch | 8 +- recipe/patches/0012-Unvendor-bzip2.patch | 17 +- recipe/patches/0013-Unvendor-libffi.patch | 11 +- recipe/patches/0014-Unvendor-tcltk.patch | 21 +- recipe/patches/0015-unvendor-xz.patch | 2 +- recipe/patches/0016-unvendor-zlib.patch | 17 +- ...-not-pass-g-to-GCC-when-not-Py_DEBUG.patch | 12 +- recipe/patches/0018-Unvendor-expat.patch | 56 +-- .../patches/0019-Remove-unused-readelf.patch | 4 +- ...t-checksharedmods-if-cross-compiling.patch | 6 +- .../0021-Override-configure-LIBFFI.patch | 6 +- recipe/patches/0022-Unvendor-libmpdec.patch | 2 +- recipe/patches/0023-Brand-conda-forge.patch | 4 +- ...d_t-as-it-might-conflict-with-the-ac.patch | 20 +- recipe/patches/0025-Unvendor-zstd.patch | 10 +- ...IL_DISABLED-in-windows-to-match-unix.patch | 4 +- .../0027-More-unixy-layout-for-windows.patch | 16 +- 27 files changed, 357 insertions(+), 296 deletions(-) diff --git a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch index 607e1b971..7738cab65 100644 --- a/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch +++ b/recipe/patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch @@ -1,4 +1,4 @@ -From b52e23434aaa7b36fdf4ea835fc4d84dff2a61fc Mon Sep 17 00:00:00 2001 +From eb229fe06a9aa324841dd8df909b35e95f105baa Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:53:55 +0100 Subject: [PATCH 01/27] Win32: Change FD_SETSIZE from 512 to 2048 @@ -9,7 +9,7 @@ https://github.com/ContinuumIO/anaconda-issues/issues/1241 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c -index eb3148ef246..1d88b182364 100644 +index 2c56dbc6a54..845ff4732ca 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -45,7 +45,7 @@ diff --git a/recipe/patches/0002-Win32-Do-not-download-externals.patch b/recipe/patches/0002-Win32-Do-not-download-externals.patch index 7f2d168b5..36688ede2 100644 --- a/recipe/patches/0002-Win32-Do-not-download-externals.patch +++ b/recipe/patches/0002-Win32-Do-not-download-externals.patch @@ -1,4 +1,4 @@ -From 6d2d2075042e9ac0307271fc700ae7d7bb1d21e6 Mon Sep 17 00:00:00 2001 +From f7a4cb3806d5f0934c8dd57084dc4201b2593df8 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Thu, 7 Sep 2017 11:35:47 +0100 Subject: [PATCH 02/27] Win32: Do not download externals @@ -8,7 +8,7 @@ Subject: [PATCH 02/27] Win32: Do not download externals 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCbuild/build.bat b/PCbuild/build.bat -index 8fb2f096c93..e69b3aef564 100644 +index 9d2f032f5a9..faad274fc9d 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat @@ -112,7 +112,7 @@ if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts diff --git a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch index ec84d55e2..36e53a443 100644 --- a/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch +++ b/recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch @@ -1,4 +1,4 @@ -From a4e219363bfe395745df9c2cf5e01b6c0004021a Mon Sep 17 00:00:00 2001 +From e226645fc9dc1028758afdae88dd0703dc803f17 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 5 Dec 2017 22:47:59 +0000 Subject: [PATCH 03/27] Fix find_library so that it looks in sys.prefix/lib @@ -25,10 +25,10 @@ index 583c47daff3..ab9b01c87e2 100644 yield os.path.join(executable_path, name[len('@executable_path/'):]) diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py -index 3b21658433b..2c900c1e2cf 100644 +index 35ac5b6bfd6..614482a10fb 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py -@@ -135,7 +135,8 @@ def dllist(): +@@ -136,7 +136,8 @@ def dllist(): elif os.name == "posix" and sys.platform in {"darwin", "ios", "tvos", "watchos"}: from ctypes.macholib.dyld import dyld_find as _dyld_find def find_library(name): @@ -38,7 +38,7 @@ index 3b21658433b..2c900c1e2cf 100644 '%s.dylib' % name, '%s.framework/%s' % (name, name)] for name in possible: -@@ -436,10 +437,30 @@ def _findLib_ld(name): +@@ -437,10 +438,30 @@ def _findLib_ld(name): pass # result will be None return result diff --git a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch index 78f03800e..ac8937618 100644 --- a/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch +++ b/recipe/patches/0004-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch @@ -1,4 +1,4 @@ -From d24fd301838f726090fb66e1d4a548cf828062a0 Mon Sep 17 00:00:00 2001 +From ee51d7baf498bc5e30b34c357137af6ea57cb4a7 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Sat, 27 Oct 2018 18:48:30 +0100 Subject: [PATCH 04/27] Disable registry lookup unless CONDA_PY_ALLOW_REG_PATHS @@ -23,7 +23,7 @@ index 1e75993480a..ff96c8e1990 100644 !progname_to_dict(dict, "real_executable") || !library_to_dict(dict, "library") || diff --git a/Modules/getpath.py b/Modules/getpath.py -index 4dceb5cdc8d..43a47ca77af 100644 +index 6199567bd77..ea370c2f686 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -52,6 +52,7 @@ @@ -34,7 +34,7 @@ index 4dceb5cdc8d..43a47ca77af 100644 # ** Values calculated at runtime ** # config -- [in/out] dict of the PyConfig structure -@@ -706,7 +707,7 @@ def search_up(prefix, *landmarks, test=isfile): +@@ -699,7 +700,7 @@ def search_up(prefix, *landmarks, test=isfile): stdlib_zip = joinpath(base_prefix, ZIP_LANDMARK) pythonpath.append(stdlib_zip) diff --git a/recipe/patches/0005-Unvendor-openssl.patch b/recipe/patches/0005-Unvendor-openssl.patch index 0d97e7632..ff1c65c7b 100644 --- a/recipe/patches/0005-Unvendor-openssl.patch +++ b/recipe/patches/0005-Unvendor-openssl.patch @@ -1,4 +1,4 @@ -From fa96beea750f3bb06218146fa543c75b5e33120c Mon Sep 17 00:00:00 2001 +From a6dcb685cb77f162310ef77576af382188d8413e Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Sat, 24 Nov 2018 20:38:02 -0600 Subject: [PATCH 05/27] Unvendor openssl @@ -90,10 +90,10 @@ index 7ca750dda8f..17eee400ebb 100644 diff --git a/PCbuild/python.props b/PCbuild/python.props -index 3ad8d81dfc9..05c8c7cd83f 100644 +index 8d931bba28a..744ce0c540a 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props -@@ -68,6 +68,7 @@ +@@ -91,6 +91,7 @@ $(EXTERNALS_DIR) @@ -101,19 +101,19 @@ index 3ad8d81dfc9..05c8c7cd83f 100644 $([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`)) $(ExternalsDir)\ -@@ -75,20 +76,8 @@ +@@ -98,20 +99,8 @@ -- $(ExternalsDir)sqlite-3.50.4.0\ +- $(ExternalsDir)sqlite-3.53.2.0\ - $(ExternalsDir)bzip2-1.0.8\ - $(ExternalsDir)xz-5.8.1.1\ - $(ExternalsDir)libffi-3.4.4\ - $(libffiDir)$(ArchName)\ - $(libffiOutDir)include $(ExternalsDir)\mpdecimal-4.0.0\ -- $(ExternalsDir)openssl-3.5.5\ -- $(ExternalsDir)openssl-bin-3.5.5\$(ArchName)\ +- $(ExternalsDir)openssl-3.5.7\ +- $(ExternalsDir)openssl-bin-3.5.7\$(ArchName)\ - $(opensslOutDir)include $(ExternalsDir)\nasm-2.11.06\ - $(ExternalsDir)\zlib-1.3.1\ @@ -123,7 +123,7 @@ index 3ad8d81dfc9..05c8c7cd83f 100644 diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj -index 70dabaa3c8b..ac5f96ebafc 100644 +index 417ede34c54..75f2bd9984a 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -110,6 +110,9 @@ @@ -137,7 +137,7 @@ index 70dabaa3c8b..ac5f96ebafc 100644 diff --git a/PCbuild/pythonw.vcxproj b/PCbuild/pythonw.vcxproj -index c6a5b8ce90a..74bd19144f9 100644 +index 244cdf622ad..03ba2a20dd2 100644 --- a/PCbuild/pythonw.vcxproj +++ b/PCbuild/pythonw.vcxproj @@ -105,6 +105,9 @@ diff --git a/recipe/patches/0006-Unvendor-sqlite3.patch b/recipe/patches/0006-Unvendor-sqlite3.patch index 895c21bba..19b96b025 100644 --- a/recipe/patches/0006-Unvendor-sqlite3.patch +++ b/recipe/patches/0006-Unvendor-sqlite3.patch @@ -1,16 +1,16 @@ -From 24c242dbf9cf16f624d2049188fd87b7476ff424 Mon Sep 17 00:00:00 2001 +From c82644b76c5b87ad02ffeb3f2fb5c3fab2a0ec80 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Tue, 5 Oct 2021 12:42:06 -0700 Subject: [PATCH 06/27] Unvendor sqlite3 --- - PCbuild/_sqlite3.vcxproj | 11 +++++------ + PCbuild/_sqlite3.vcxproj | 9 ++++----- PCbuild/pcbuild.sln | 2 -- PCbuild/sqlite3.vcxproj | 12 ++++++------ - 3 files changed, 11 insertions(+), 14 deletions(-) + 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/PCbuild/_sqlite3.vcxproj b/PCbuild/_sqlite3.vcxproj -index 9ae0a0fc3a0..f482734ba1d 100644 +index 9ae0a0fc3a0..9baaafed518 100644 --- a/PCbuild/_sqlite3.vcxproj +++ b/PCbuild/_sqlite3.vcxproj @@ -93,9 +93,12 @@ @@ -27,7 +27,7 @@ index 9ae0a0fc3a0..f482734ba1d 100644 -@@ -127,12 +130,8 @@ +@@ -127,10 +130,6 @@ {cf7ac3d1-e2df-41d2-bea6-1e2556cdea26} false @@ -38,15 +38,11 @@ index 9ae0a0fc3a0..f482734ba1d 100644 - -- -\ No newline at end of file -+ diff --git a/PCbuild/pcbuild.sln b/PCbuild/pcbuild.sln -index 7296ea75301..9dd5e07ad8a 100644 +index 09a989d3864..74b961e877f 100644 --- a/PCbuild/pcbuild.sln +++ b/PCbuild/pcbuild.sln -@@ -72,8 +72,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_elementtree", "_elementtre +@@ -73,8 +73,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_elementtree", "_elementtre EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_socket", "_socket.vcxproj", "{86937F53-C189-40EF-8CE8-8759D8E7D480}" EndProject diff --git a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch index 88467b779..054aa22c2 100644 --- a/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch +++ b/recipe/patches/0007-Add-CondaEcosystemModifyDllSearchPath.patch @@ -1,4 +1,4 @@ -From 4465a70a1aa51ee58fb92a3bc317784cc37f5d57 Mon Sep 17 00:00:00 2001 +From 9614157a8e1240021175a1bdba71dfa48b221e09 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 24 Dec 2019 18:37:17 +0100 Subject: [PATCH 07/27] Add CondaEcosystemModifyDllSearchPath() @@ -33,10 +33,10 @@ Co-authored-by: Isuru Fernando 1 file changed, 95 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c -index 5da0f3e5be3..d62ba38f3fb 100644 +index 3933c321ed2..9a4a8c5a024 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c -@@ -90,6 +90,10 @@ +@@ -88,6 +88,10 @@ #ifdef MS_WINDOWS # undef BYTE @@ -47,7 +47,7 @@ index 5da0f3e5be3..d62ba38f3fb 100644 #endif #define PUTS(fd, str) (void)_Py_write_noraise(fd, str, (int)strlen(str)) -@@ -124,6 +128,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) +@@ -122,6 +126,93 @@ GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime) = _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie); _Py_COMP_DIAG_POP @@ -141,7 +141,7 @@ index 5da0f3e5be3..d62ba38f3fb 100644 static int runtime_initialized = 0; -@@ -141,6 +232,10 @@ _PyRuntime_Initialize(void) +@@ -139,6 +230,10 @@ _PyRuntime_Initialize(void) } runtime_initialized = 1; diff --git a/recipe/patches/0008-Doing-d1trimfile.patch b/recipe/patches/0008-Doing-d1trimfile.patch index ae344b78e..2e6a02868 100644 --- a/recipe/patches/0008-Doing-d1trimfile.patch +++ b/recipe/patches/0008-Doing-d1trimfile.patch @@ -1,11 +1,11 @@ -From b985873fd8df7c9160e604760fb3f56a727858e1 Mon Sep 17 00:00:00 2001 +From 58cc3e9ea869f279ad53387ca1d4f5d963cfbed4 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 31 Dec 2019 21:47:47 +0100 Subject: [PATCH 08/27] Doing d1trimfile --- PCbuild/_asyncio.vcxproj | 20 ++++++++++++++++++++ - PCbuild/_bz2.vcxproj | 6 +++++- + PCbuild/_bz2.vcxproj | 4 ++++ PCbuild/_ctypes.vcxproj | 4 ++++ PCbuild/_ctypes_test.vcxproj | 20 ++++++++++++++++++++ PCbuild/_decimal.vcxproj | 4 ++++ @@ -13,39 +13,48 @@ Subject: [PATCH 08/27] Doing d1trimfile PCbuild/_freeze_module.vcxproj | 4 ++++ PCbuild/_hashlib.vcxproj | 12 ++++++++++++ PCbuild/_lzma.vcxproj | 4 ++++ - PCbuild/_multiprocessing.vcxproj | 14 +++++++++++++- - PCbuild/_overlapped.vcxproj | 14 +++++++++++++- + PCbuild/_multiprocessing.vcxproj | 12 ++++++++++++ + PCbuild/_overlapped.vcxproj | 12 ++++++++++++ PCbuild/_queue.vcxproj | 20 ++++++++++++++++++++ - PCbuild/_socket.vcxproj | 14 +++++++++++++- + PCbuild/_remote_debugging.vcxproj | 6 ++++++ + PCbuild/_socket.vcxproj | 12 ++++++++++++ PCbuild/_sqlite3.vcxproj | 4 ++++ PCbuild/_ssl.vcxproj | 12 ++++++++++++ - PCbuild/_testbuffer.vcxproj | 22 +++++++++++++++++++++- + PCbuild/_testbuffer.vcxproj | 20 ++++++++++++++++++++ PCbuild/_testcapi.vcxproj | 20 ++++++++++++++++++++ - PCbuild/_testconsole.vcxproj | 6 +++++- - PCbuild/_testembed.vcxproj | 6 +++++- + PCbuild/_testconsole.vcxproj | 4 ++++ + PCbuild/_testembed.vcxproj | 4 ++++ PCbuild/_testimportmultiple.vcxproj | 20 ++++++++++++++++++++ PCbuild/_testinternalcapi.vcxproj | 20 ++++++++++++++++++++ - PCbuild/_testmultiphase.vcxproj | 6 +++++- + PCbuild/_testmultiphase.vcxproj | 4 ++++ + PCbuild/_testsinglephase.vcxproj | 4 ++++ PCbuild/_tkinter.vcxproj | 4 ++++ + PCbuild/_uuid.vcxproj | 6 ++++++ + PCbuild/_wmi.vcxproj | 4 ++++ + PCbuild/_zstd.vcxproj | 4 ++++ PCbuild/liblzma.vcxproj | 4 ++++ PCbuild/pyexpat.vcxproj | 4 ++++ PCbuild/pylauncher.vcxproj | 4 ++++ - PCbuild/pyshellext.vcxproj | 6 +++++- + PCbuild/pyshellext.vcxproj | 4 ++++ PCbuild/python.vcxproj | 4 ++++ - PCbuild/python3dll.vcxproj | 6 +++++- + PCbuild/python3dll.vcxproj | 4 ++++ + PCbuild/python3tdll.vcxproj | 4 ++++ PCbuild/python_uwp.vcxproj | 2 +- PCbuild/pythoncore.vcxproj | 2 +- - PCbuild/pythonw.vcxproj | 14 +++++++++++++- + PCbuild/pythonw.vcxproj | 20 ++++++++++++-------- PCbuild/pythonw_uwp.vcxproj | 2 +- - PCbuild/pywlauncher.vcxproj | 6 +++++- - PCbuild/select.vcxproj | 14 +++++++++++++- - PCbuild/unicodedata.vcxproj | 22 +++++++++++++++++++++- + PCbuild/pywlauncher.vcxproj | 4 ++++ + PCbuild/select.vcxproj | 12 ++++++++++++ + PCbuild/sqlite3.vcxproj | 4 ++++ + PCbuild/unicodedata.vcxproj | 20 ++++++++++++++++++++ PCbuild/venvlauncher.vcxproj | 4 ++++ PCbuild/venvwlauncher.vcxproj | 4 ++++ - PCbuild/winsound.vcxproj | 14 +++++++++++++- + PCbuild/winsound.vcxproj | 12 ++++++++++++ PCbuild/xxlimited.vcxproj | 6 ++++++ PCbuild/xxlimited_35.vcxproj | 6 ++++++ - 41 files changed, 367 insertions(+), 19 deletions(-) + PCbuild/xxlimited_3_13.vcxproj | 6 ++++++ + PCbuild/zlib-ng.vcxproj | 4 ++++ + 50 files changed, 394 insertions(+), 12 deletions(-) diff --git a/PCbuild/_asyncio.vcxproj b/PCbuild/_asyncio.vcxproj index 76b0ffd660d..1402860e19b 100644 @@ -79,7 +88,7 @@ index 76b0ffd660d..1402860e19b 100644 diff --git a/PCbuild/_bz2.vcxproj b/PCbuild/_bz2.vcxproj -index e0dc6ec187a..30ad0dc4864 100644 +index e0dc6ec187a..9e75e57cb6e 100644 --- a/PCbuild/_bz2.vcxproj +++ b/PCbuild/_bz2.vcxproj @@ -97,6 +97,10 @@ @@ -93,13 +102,6 @@ index e0dc6ec187a..30ad0dc4864 100644 -@@ -125,4 +129,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_ctypes.vcxproj b/PCbuild/_ctypes.vcxproj index 63d5fa49cd4..6329f3d960f 100644 --- a/PCbuild/_ctypes.vcxproj @@ -162,7 +164,7 @@ index 3ba49370d58..921d22e47b3 100644 diff --git a/PCbuild/_elementtree.vcxproj b/PCbuild/_elementtree.vcxproj -index 3eb9c89bcb6..920656f2ee2 100644 +index 46e34a5ea82..fb1589557da 100644 --- a/PCbuild/_elementtree.vcxproj +++ b/PCbuild/_elementtree.vcxproj @@ -94,7 +94,11 @@ @@ -179,7 +181,7 @@ index 3eb9c89bcb6..920656f2ee2 100644 diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj -index cb806459596..a85ba7ca53f 100644 +index 17b98c9d9ec..b3998a47f22 100644 --- a/PCbuild/_freeze_module.vcxproj +++ b/PCbuild/_freeze_module.vcxproj @@ -93,6 +93,10 @@ @@ -232,7 +234,7 @@ index 40107d4b76c..321f41d8d27 100644 $(OutDir)liblzma$(PyDebugExt).lib;%(AdditionalDependencies) diff --git a/PCbuild/_multiprocessing.vcxproj b/PCbuild/_multiprocessing.vcxproj -index a65397f532a..451ca375990 100644 +index a65397f532a..58f1d506dc8 100644 --- a/PCbuild/_multiprocessing.vcxproj +++ b/PCbuild/_multiprocessing.vcxproj @@ -95,6 +95,18 @@ @@ -254,15 +256,8 @@ index a65397f532a..451ca375990 100644 -@@ -115,4 +127,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_overlapped.vcxproj b/PCbuild/_overlapped.vcxproj -index 224bf05d530..f7efa63f562 100644 +index 224bf05d530..d3221fcce32 100644 --- a/PCbuild/_overlapped.vcxproj +++ b/PCbuild/_overlapped.vcxproj @@ -95,6 +95,18 @@ @@ -284,13 +279,6 @@ index 224bf05d530..f7efa63f562 100644 -@@ -111,4 +123,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_queue.vcxproj b/PCbuild/_queue.vcxproj index 80a1c3c6a4a..8d4555299ae 100644 --- a/PCbuild/_queue.vcxproj @@ -322,8 +310,25 @@ index 80a1c3c6a4a..8d4555299ae 100644 +diff --git a/PCbuild/_remote_debugging.vcxproj b/PCbuild/_remote_debugging.vcxproj +index 41aadbd13d0..7fbaafdbe64 100644 +--- a/PCbuild/_remote_debugging.vcxproj ++++ b/PCbuild/_remote_debugging.vcxproj +@@ -93,6 +93,12 @@ + <_ProjectFileVersion>10.0.30319.1 + + ++ ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ + + ntdll.lib;%(AdditionalDependencies) + diff --git a/PCbuild/_socket.vcxproj b/PCbuild/_socket.vcxproj -index 41af0895921..45ecbcc4641 100644 +index 41af0895921..993426d4cf8 100644 --- a/PCbuild/_socket.vcxproj +++ b/PCbuild/_socket.vcxproj @@ -95,6 +95,18 @@ @@ -345,15 +350,8 @@ index 41af0895921..45ecbcc4641 100644 -@@ -114,4 +126,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_sqlite3.vcxproj b/PCbuild/_sqlite3.vcxproj -index f482734ba1d..70943daa021 100644 +index 9baaafed518..a850c5a8955 100644 --- a/PCbuild/_sqlite3.vcxproj +++ b/PCbuild/_sqlite3.vcxproj @@ -95,6 +95,10 @@ @@ -391,7 +389,7 @@ index ce21f992ff8..34561515c12 100644 diff --git a/PCbuild/_testbuffer.vcxproj b/PCbuild/_testbuffer.vcxproj -index 4e721e8ce09..3fec7516ed5 100644 +index 4e721e8ce09..048adde0951 100644 --- a/PCbuild/_testbuffer.vcxproj +++ b/PCbuild/_testbuffer.vcxproj @@ -92,6 +92,26 @@ @@ -421,15 +419,8 @@ index 4e721e8ce09..3fec7516ed5 100644 -@@ -106,4 +126,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_testcapi.vcxproj b/PCbuild/_testcapi.vcxproj -index 68707a54ff6..4e88650812f 100644 +index 64e50b67be4..83233bfe869 100644 --- a/PCbuild/_testcapi.vcxproj +++ b/PCbuild/_testcapi.vcxproj @@ -92,6 +92,26 @@ @@ -460,7 +451,7 @@ index 68707a54ff6..4e88650812f 100644 diff --git a/PCbuild/_testconsole.vcxproj b/PCbuild/_testconsole.vcxproj -index 69d312b17a5..bee3326ef8d 100644 +index 69d312b17a5..ea230fa8126 100644 --- a/PCbuild/_testconsole.vcxproj +++ b/PCbuild/_testconsole.vcxproj @@ -92,6 +92,10 @@ @@ -474,15 +465,8 @@ index 69d312b17a5..bee3326ef8d 100644 Console -@@ -112,4 +116,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_testembed.vcxproj b/PCbuild/_testembed.vcxproj -index a7ea8787e0c..e8edb3dd752 100644 +index a7ea8787e0c..eab72171e3b 100644 --- a/PCbuild/_testembed.vcxproj +++ b/PCbuild/_testembed.vcxproj @@ -89,6 +89,10 @@ @@ -496,13 +480,6 @@ index a7ea8787e0c..e8edb3dd752 100644 Console -@@ -109,4 +113,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/_testimportmultiple.vcxproj b/PCbuild/_testimportmultiple.vcxproj index c35ac83c1c7..c9d7f5d22b7 100644 --- a/PCbuild/_testimportmultiple.vcxproj @@ -566,7 +543,7 @@ index f3e423fa046..ac285717998 100644 diff --git a/PCbuild/_testmultiphase.vcxproj b/PCbuild/_testmultiphase.vcxproj -index e730fe308ab..a6f13ef31dc 100644 +index e730fe308ab..625e50af7f6 100644 --- a/PCbuild/_testmultiphase.vcxproj +++ b/PCbuild/_testmultiphase.vcxproj @@ -92,6 +92,10 @@ @@ -580,13 +557,21 @@ index e730fe308ab..a6f13ef31dc 100644 Console -@@ -112,4 +116,4 @@ - - - -- -\ No newline at end of file -+ +diff --git a/PCbuild/_testsinglephase.vcxproj b/PCbuild/_testsinglephase.vcxproj +index bf4dabf66c1..6068fb3c204 100644 +--- a/PCbuild/_testsinglephase.vcxproj ++++ b/PCbuild/_testsinglephase.vcxproj +@@ -92,6 +92,10 @@ + + + _CONSOLE;%(PreprocessorDefinitions) ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + Console diff --git a/PCbuild/_tkinter.vcxproj b/PCbuild/_tkinter.vcxproj index 87f6005fffc..de9358312ac 100644 --- a/PCbuild/_tkinter.vcxproj @@ -602,6 +587,53 @@ index 87f6005fffc..de9358312ac 100644 $(tcltkLib);%(AdditionalDependencies) +diff --git a/PCbuild/_uuid.vcxproj b/PCbuild/_uuid.vcxproj +index 50d81cc7916..64fcf61fa3a 100644 +--- a/PCbuild/_uuid.vcxproj ++++ b/PCbuild/_uuid.vcxproj +@@ -93,6 +93,12 @@ + <_ProjectFileVersion>10.0.30319.1 + + ++ ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ + + rpcrt4.lib;%(AdditionalDependencies) + +diff --git a/PCbuild/_wmi.vcxproj b/PCbuild/_wmi.vcxproj +index 22fa8960982..516db060fb3 100644 +--- a/PCbuild/_wmi.vcxproj ++++ b/PCbuild/_wmi.vcxproj +@@ -95,6 +95,10 @@ + + + /std:c++20 %(AdditionalOptions) ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + wbemuuid.lib;propsys.lib;%(AdditionalDependencies) +diff --git a/PCbuild/_zstd.vcxproj b/PCbuild/_zstd.vcxproj +index 6f91b8d05cc..683a44535ca 100644 +--- a/PCbuild/_zstd.vcxproj ++++ b/PCbuild/_zstd.vcxproj +@@ -96,6 +96,10 @@ + + WIN32;ZSTD_MULTITHREAD=1;%(PreprocessorDefinitions) + $(zstdDir)lib\;$(zstdDir)lib\common;$(zstdDir)lib\compress;$(zstdDir)lib\decompress;$(zstdDir)lib\dictBuilder;%(AdditionalIncludeDirectories) ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + diff --git a/PCbuild/liblzma.vcxproj b/PCbuild/liblzma.vcxproj index 75d4e162346..d50534affa1 100644 --- a/PCbuild/liblzma.vcxproj @@ -618,7 +650,7 @@ index 75d4e162346..d50534affa1 100644 diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj -index 8e0f5f63112..7a1d5942a6c 100644 +index 8a60ee15eb4..6518e0e1b1c 100644 --- a/PCbuild/pyexpat.vcxproj +++ b/PCbuild/pyexpat.vcxproj @@ -92,6 +92,10 @@ @@ -648,7 +680,7 @@ index ca422ef4d02..0c692649ed6 100644 shell32.lib;pathcch.lib;%(AdditionalDependencies) diff --git a/PCbuild/pyshellext.vcxproj b/PCbuild/pyshellext.vcxproj -index ea432d6bc9a..50397324a20 100644 +index ea432d6bc9a..13bc6921030 100644 --- a/PCbuild/pyshellext.vcxproj +++ b/PCbuild/pyshellext.vcxproj @@ -92,6 +92,10 @@ @@ -662,15 +694,8 @@ index ea432d6bc9a..50397324a20 100644 version.lib;shlwapi.lib;%(AdditionalDependencies) -@@ -114,4 +118,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj -index ac5f96ebafc..3d0caa906cf 100644 +index 75f2bd9984a..27ca69880a9 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -92,6 +92,10 @@ @@ -685,7 +710,7 @@ index ac5f96ebafc..3d0caa906cf 100644 Console diff --git a/PCbuild/python3dll.vcxproj b/PCbuild/python3dll.vcxproj -index 235ea1cf9d3..d861f6c6a43 100644 +index 3d8ac1b2353..8f8da3d0bb0 100644 --- a/PCbuild/python3dll.vcxproj +++ b/PCbuild/python3dll.vcxproj @@ -93,6 +93,10 @@ @@ -699,13 +724,21 @@ index 235ea1cf9d3..d861f6c6a43 100644 true -@@ -107,4 +111,4 @@ - - - -- -\ No newline at end of file -+ +diff --git a/PCbuild/python3tdll.vcxproj b/PCbuild/python3tdll.vcxproj +index 796712cca31..b2929246b44 100644 +--- a/PCbuild/python3tdll.vcxproj ++++ b/PCbuild/python3tdll.vcxproj +@@ -93,6 +93,10 @@ + + PYTHON_DLL_NAME="$(PyDllName)";%(PreprocessorDefinitions) + false ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + true diff --git a/PCbuild/python_uwp.vcxproj b/PCbuild/python_uwp.vcxproj index 3f8772d30b4..d80968e351a 100644 --- a/PCbuild/python_uwp.vcxproj @@ -720,7 +753,7 @@ index 3f8772d30b4..d80968e351a 100644 windowsapp.lib;%(AdditionalDependencies) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index 61bee29c0af..d1efe476439 100644 +index e255ed5af19..e2f8f42449a 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -99,7 +99,7 @@ @@ -733,7 +766,7 @@ index 61bee29c0af..d1efe476439 100644 $(zlibNgDir);$(GeneratedZlibNgDir);%(AdditionalIncludeDirectories) $(GeneratedJitStencilsDir);%(AdditionalIncludeDirectories) diff --git a/PCbuild/pythonw.vcxproj b/PCbuild/pythonw.vcxproj -index 74bd19144f9..6fea2e1f70c 100644 +index 03ba2a20dd2..193eb2ecb88 100644 --- a/PCbuild/pythonw.vcxproj +++ b/PCbuild/pythonw.vcxproj @@ -96,6 +96,18 @@ @@ -755,13 +788,20 @@ index 74bd19144f9..6fea2e1f70c 100644 -@@ -118,4 +130,4 @@ +@@ -118,12 +130,4 @@ -- +- +- +- +- + \ No newline at end of file -+ diff --git a/PCbuild/pythonw_uwp.vcxproj b/PCbuild/pythonw_uwp.vcxproj index f548d022642..fa4e75f9712 100644 --- a/PCbuild/pythonw_uwp.vcxproj @@ -776,7 +816,7 @@ index f548d022642..fa4e75f9712 100644 windowsapp.lib;%(AdditionalDependencies) diff --git a/PCbuild/pywlauncher.vcxproj b/PCbuild/pywlauncher.vcxproj -index 1694548935a..9be580e2663 100644 +index 1694548935a..551dbc21bb1 100644 --- a/PCbuild/pywlauncher.vcxproj +++ b/PCbuild/pywlauncher.vcxproj @@ -93,6 +93,10 @@ @@ -790,15 +830,8 @@ index 1694548935a..9be580e2663 100644 shell32.lib;pathcch.lib;%(AdditionalDependencies) -@@ -111,4 +115,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/select.vcxproj b/PCbuild/select.vcxproj -index d7448fd4d72..9fab5e8a638 100644 +index d7448fd4d72..a51c71d2b72 100644 --- a/PCbuild/select.vcxproj +++ b/PCbuild/select.vcxproj @@ -94,6 +94,18 @@ @@ -820,15 +853,23 @@ index d7448fd4d72..9fab5e8a638 100644 -@@ -110,4 +122,4 @@ - - - -- -\ No newline at end of file -+ +diff --git a/PCbuild/sqlite3.vcxproj b/PCbuild/sqlite3.vcxproj +index f9e5e449a49..16ed999655a 100644 +--- a/PCbuild/sqlite3.vcxproj ++++ b/PCbuild/sqlite3.vcxproj +@@ -101,6 +101,10 @@ + SQLITE_ENABLE_MATH_FUNCTIONS;SQLITE_ENABLE_FTS4;SQLITE_ENABLE_FTS5;SQLITE_ENABLE_RTREE;SQLITE_OMIT_AUTOINIT;SQLITE_API=__declspec(dllexport);%(PreprocessorDefinitions) + Level1 + %(AdditionalOptions) -Wno-unused ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + SQLITE_VERSION=$(SqliteVersion);SQLITE_MAJOR_VERSION=$(SqliteMajorVersion);SQLITE_MINOR_VERSION=$(SqliteMinorVersion);SQLITE_MICRO_VERSION=$(SqliteMicroVersion);SQLITE_PATCH_VERSION=$(SqlitePatchVersion);%(PreprocessorDefinitions) diff --git a/PCbuild/unicodedata.vcxproj b/PCbuild/unicodedata.vcxproj -index 781f938e2ab..3870c85adf7 100644 +index 781f938e2ab..714a2382c1e 100644 --- a/PCbuild/unicodedata.vcxproj +++ b/PCbuild/unicodedata.vcxproj @@ -91,6 +91,26 @@ @@ -858,20 +899,13 @@ index 781f938e2ab..3870c85adf7 100644 -@@ -110,4 +130,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/venvlauncher.vcxproj b/PCbuild/venvlauncher.vcxproj -index abaf3a979af..324aadcd782 100644 +index a2e8ffa82b1..705e507050f 100644 --- a/PCbuild/venvlauncher.vcxproj +++ b/PCbuild/venvlauncher.vcxproj -@@ -94,6 +94,10 @@ +@@ -97,6 +97,10 @@ - EXENAME=L"$(PyExeName)$(PyDebugExt).exe";_CONSOLE;%(PreprocessorDefinitions) + EXENAME=L"$(ExeName)";_CONSOLE;%(PreprocessorDefinitions) MultiThreaded + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% @@ -881,12 +915,12 @@ index abaf3a979af..324aadcd782 100644 PY_ICON;%(PreprocessorDefinitions) diff --git a/PCbuild/venvwlauncher.vcxproj b/PCbuild/venvwlauncher.vcxproj -index c58280deb8a..4dacf7f2724 100644 +index f2aaf83fe2b..d9c47683f25 100644 --- a/PCbuild/venvwlauncher.vcxproj +++ b/PCbuild/venvwlauncher.vcxproj -@@ -94,6 +94,10 @@ +@@ -97,6 +97,10 @@ - EXENAME=L"$(PyWExeName)$(PyDebugExt).exe";_WINDOWS;%(PreprocessorDefinitions) + EXENAME=L"$(ExeName)";_WINDOWS;%(PreprocessorDefinitions) MultiThreaded + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% @@ -896,7 +930,7 @@ index c58280deb8a..4dacf7f2724 100644 PYW_ICON;%(PreprocessorDefinitions) diff --git a/PCbuild/winsound.vcxproj b/PCbuild/winsound.vcxproj -index c26029b15a3..1e543b31c41 100644 +index c26029b15a3..d76a3fb8537 100644 --- a/PCbuild/winsound.vcxproj +++ b/PCbuild/winsound.vcxproj @@ -96,6 +96,18 @@ @@ -918,15 +952,8 @@ index c26029b15a3..1e543b31c41 100644 -@@ -112,4 +124,4 @@ - - - -- -\ No newline at end of file -+ diff --git a/PCbuild/xxlimited.vcxproj b/PCbuild/xxlimited.vcxproj -index 093e6920c0b..19dd43c19c2 100644 +index f0c36166001..cc906a14cf4 100644 --- a/PCbuild/xxlimited.vcxproj +++ b/PCbuild/xxlimited.vcxproj @@ -93,6 +93,12 @@ @@ -943,7 +970,7 @@ index 093e6920c0b..19dd43c19c2 100644 wsock32.lib;%(AdditionalDependencies) diff --git a/PCbuild/xxlimited_35.vcxproj b/PCbuild/xxlimited_35.vcxproj -index 3f4d4463f24..2572449ba0c 100644 +index bfaf4e25366..4f8a3b37e35 100644 --- a/PCbuild/xxlimited_35.vcxproj +++ b/PCbuild/xxlimited_35.vcxproj @@ -93,6 +93,12 @@ @@ -959,3 +986,35 @@ index 3f4d4463f24..2572449ba0c 100644 wsock32.lib;%(AdditionalDependencies) +diff --git a/PCbuild/xxlimited_3_13.vcxproj b/PCbuild/xxlimited_3_13.vcxproj +index 7a9760fd431..cff5e4b6850 100644 +--- a/PCbuild/xxlimited_3_13.vcxproj ++++ b/PCbuild/xxlimited_3_13.vcxproj +@@ -93,6 +93,12 @@ + <_ProjectFileVersion>10.0.30319.1 + + ++ ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ + + wsock32.lib;%(AdditionalDependencies) + +diff --git a/PCbuild/zlib-ng.vcxproj b/PCbuild/zlib-ng.vcxproj +index ffe8e70f2db..e92cdbca987 100644 +--- a/PCbuild/zlib-ng.vcxproj ++++ b/PCbuild/zlib-ng.vcxproj +@@ -99,6 +99,10 @@ + %(PreprocessorDefinitions);X86_FEATURES;X86_HAVE_XSAVE_INTRIN;X86_SSE2;X86_SSSE3;X86_SSE42;X86_PCLMULQDQ_CRC;X86_AVX2;X86_AVX512;X86_AVX512VNNI;X86_VPCLMULQDQ_CRC + %(PreprocessorDefinitions);ZLIB_DEBUG + %(PreprocessorDefinitions);HAVE_BUILTIN_CTZ ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% ++ /d1trimfile:%SRC_DIR% + + + diff --git a/recipe/patches/0009-cross-compile-darwin.patch b/recipe/patches/0009-cross-compile-darwin.patch index c388e2f3d..584aa475e 100644 --- a/recipe/patches/0009-cross-compile-darwin.patch +++ b/recipe/patches/0009-cross-compile-darwin.patch @@ -1,4 +1,4 @@ -From e8271f4d9ee63e19ddc13f0eeda6e8f85d04e281 Mon Sep 17 00:00:00 2001 +From 27a1c43342bdd71ab21655d58b98c21851028df2 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Oct 2020 00:03:12 +0200 Subject: [PATCH 09/27] cross compile darwin @@ -11,7 +11,7 @@ By Isuru Fernando. 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 9d7aa5c66a9..2401eff96df 100644 +index 36489d4fdd9..37278847c0a 100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -474,7 +474,12 @@ def win32_ver(release='', version='', csd='', ptype=''): @@ -29,10 +29,10 @@ index 9d7aa5c66a9..2401eff96df 100644 try: import plistlib diff --git a/configure b/configure -index 4726b4fe310..3dd96b59b86 100755 +index 08a7c663ce0..b3a36e07e38 100755 --- a/configure +++ b/configure -@@ -4142,6 +4142,9 @@ then +@@ -4155,6 +4155,9 @@ then *-*-linux*) ac_sys_system=Linux ;; @@ -42,7 +42,7 @@ index 4726b4fe310..3dd96b59b86 100755 *-*-cygwin*) ac_sys_system=Cygwin ;; -@@ -4625,6 +4628,9 @@ if test "$cross_compiling" = yes; then +@@ -4638,6 +4641,9 @@ if test "$cross_compiling" = yes; then esac ;; *-gnu) @@ -53,7 +53,7 @@ index 4726b4fe310..3dd96b59b86 100755 ;; *-*-cygwin*) diff --git a/configure.ac b/configure.ac -index dd860292cc2..3d9f990e3d9 100644 +index ead82d6da0b..603549bd039 100644 --- a/configure.ac +++ b/configure.ac @@ -333,6 +333,9 @@ then diff --git a/recipe/patches/0010-Fix-TZPATH-on-windows.patch b/recipe/patches/0010-Fix-TZPATH-on-windows.patch index e16ca574a..c788eefb4 100644 --- a/recipe/patches/0010-Fix-TZPATH-on-windows.patch +++ b/recipe/patches/0010-Fix-TZPATH-on-windows.patch @@ -1,4 +1,4 @@ -From c78be3cb671eaa661890d197931c868e227e6bbd Mon Sep 17 00:00:00 2001 +From fce019e7c00ed65a1c1b14ae3ee9b7531e6c354c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Oct 2020 10:08:30 -0500 Subject: [PATCH 10/27] Fix TZPATH on windows diff --git a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch index d8d8f3a8e..8be99f6b7 100644 --- a/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch +++ b/recipe/patches/0011-Make-dyld-search-work-with-SYSTEM_VERSION_COMPAT-1.patch @@ -1,4 +1,4 @@ -From 09071420bcbf7f82e8415cdb9b5ed8d964f715ef Mon Sep 17 00:00:00 2001 +From a3d547708bdce0eb9f17e6409293bf06fb2d5174 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 25 Jan 2021 03:28:08 -0600 Subject: [PATCH 11/27] Make dyld search work with SYSTEM_VERSION_COMPAT=1 @@ -18,10 +18,10 @@ and this code using 10.16 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c -index 9a1c1ff8bb9..730e1fd1394 100644 +index ccc57e347b0..443e36ac559 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c -@@ -1501,7 +1501,7 @@ copy_com_pointer(PyObject *self, PyObject *args) +@@ -1503,7 +1503,7 @@ copy_com_pointer(PyObject *self, PyObject *args) #ifdef HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH # ifdef HAVE_BUILTIN_AVAILABLE # define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \ @@ -30,7 +30,7 @@ index 9a1c1ff8bb9..730e1fd1394 100644 # else # define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME \ (_dyld_shared_cache_contains_path != NULL) -@@ -1544,8 +1544,10 @@ static PyObject *py_dyld_shared_cache_contains_path(PyObject *self, PyObject *ar +@@ -1546,8 +1546,10 @@ static PyObject *py_dyld_shared_cache_contains_path(PyObject *self, PyObject *ar if (PyUnicode_FSConverter(name, &name2) == 0) return NULL; name_str = PyBytes_AS_STRING(name2); diff --git a/recipe/patches/0012-Unvendor-bzip2.patch b/recipe/patches/0012-Unvendor-bzip2.patch index acff19425..e8924c798 100644 --- a/recipe/patches/0012-Unvendor-bzip2.patch +++ b/recipe/patches/0012-Unvendor-bzip2.patch @@ -1,15 +1,15 @@ -From c7f8d6035f1e08cced22c78064ea2f70d6daaf2c Mon Sep 17 00:00:00 2001 +From 7efa40ac8ac7d2a3f34203188392e2680c7a9ea9 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 02:56:27 -0700 Subject: [PATCH 12/27] Unvendor bzip2 --- PCbuild/_bz2.vcxproj | 15 +++++---------- - PCbuild/_bz2.vcxproj.filters | 28 ++-------------------------- - 2 files changed, 7 insertions(+), 36 deletions(-) + PCbuild/_bz2.vcxproj.filters | 26 +------------------------- + 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/PCbuild/_bz2.vcxproj b/PCbuild/_bz2.vcxproj -index 30ad0dc4864..1d46cc8198f 100644 +index 9e75e57cb6e..01d637caa40 100644 --- a/PCbuild/_bz2.vcxproj +++ b/PCbuild/_bz2.vcxproj @@ -94,7 +94,7 @@ @@ -47,7 +47,7 @@ index 30ad0dc4864..1d46cc8198f 100644 diff --git a/PCbuild/_bz2.vcxproj.filters b/PCbuild/_bz2.vcxproj.filters -index 7c0b5162537..ed9510978f1 100644 +index 7c0b5162537..c1f960608c3 100644 --- a/PCbuild/_bz2.vcxproj.filters +++ b/PCbuild/_bz2.vcxproj.filters @@ -21,33 +21,9 @@ @@ -85,10 +85,3 @@ index 7c0b5162537..ed9510978f1 100644 Header Files\bzip2 -@@ -56,4 +32,4 @@ - Resource Files - - -- -\ No newline at end of file -+ diff --git a/recipe/patches/0013-Unvendor-libffi.patch b/recipe/patches/0013-Unvendor-libffi.patch index 5469ba64d..fcb79a636 100644 --- a/recipe/patches/0013-Unvendor-libffi.patch +++ b/recipe/patches/0013-Unvendor-libffi.patch @@ -1,14 +1,14 @@ -From f080d8e1665b6f3d36e8f650616d80284da0ded7 Mon Sep 17 00:00:00 2001 +From 1de3976ee79619c64747cb1791849a4468629906 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 16 Aug 2021 03:07:40 -0700 Subject: [PATCH 13/27] Unvendor libffi --- - PCbuild/libffi.props | 17 ++++------------- - 1 file changed, 4 insertions(+), 13 deletions(-) + PCbuild/libffi.props | 15 +++------------ + 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/PCbuild/libffi.props b/PCbuild/libffi.props -index 22c9550e2c0..40ddb08d2b0 100644 +index 22c9550e2c0..97fb5966bfb 100644 --- a/PCbuild/libffi.props +++ b/PCbuild/libffi.props @@ -2,20 +2,11 @@ @@ -34,6 +34,5 @@ index 22c9550e2c0..40ddb08d2b0 100644 - - - -- + \ No newline at end of file -+ diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index c65d660aa..8100d12e7 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -1,12 +1,12 @@ -From b14aa0590145f63510ff33c81712d462685fe23c Mon Sep 17 00:00:00 2001 +From 69b3709de40a425c513ba888e40e9c826adcb74b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 20 Aug 2021 10:23:51 -0700 Subject: [PATCH 14/27] Unvendor tcltk --- PCbuild/_tkinter.vcxproj | 6 ------ - PCbuild/tcltk.props | 11 +++++------ - 2 files changed, 5 insertions(+), 12 deletions(-) + PCbuild/tcltk.props | 14 +++++--------- + 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/PCbuild/_tkinter.vcxproj b/PCbuild/_tkinter.vcxproj index de9358312ac..3fe2c29c823 100644 @@ -26,18 +26,21 @@ index de9358312ac..3fe2c29c823 100644 diff --git a/PCbuild/tcltk.props b/PCbuild/tcltk.props -index d26b36ba98e..40327f181d8 100644 +index 28e8c0db4d1..f975a79829a 100644 --- a/PCbuild/tcltk.props +++ b/PCbuild/tcltk.props -@@ -12,12 +12,11 @@ +@@ -12,15 +12,11 @@ $([System.Version]::Parse($(TkVersion)).Minor) $([System.Version]::Parse($(TkVersion)).Build) $([System.Version]::Parse($(TkVersion)).Revision) -- $(ExternalsDir)tcl-core-$(TclVersion)\ +- +- $(ExternalsDir)tcl-core-$(TclVersion)\ +- $(ExternalsDir)tcl-$(TclVersion)\ - $(ExternalsDir)tk-$(TkVersion)\ - $(ExternalsDir)tcltk-$(TclVersion)\$(ArchName)\ -- $(tcltkDir)\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)t.exe -- $(tcltkDir)\..\win32\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)t.exe +- t +- tcl9 +- TCLSH_NATIVE="$(tcltkDir)\..\win32\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)$(tcltkSuffix).exe" - TCL_WITH_EXTERNAL_TOMMATH; + $(condaDir) + $(condaDir) @@ -46,4 +49,4 @@ index d26b36ba98e..40327f181d8 100644 + $(condaDir)\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)t.exe - t + tcl$(TclMajorVersion)$(TclMinorVersion)$(tcltkSuffix)$(TclDebugExt).dll diff --git a/recipe/patches/0015-unvendor-xz.patch b/recipe/patches/0015-unvendor-xz.patch index 9387cdd70..9197faf44 100644 --- a/recipe/patches/0015-unvendor-xz.patch +++ b/recipe/patches/0015-unvendor-xz.patch @@ -1,4 +1,4 @@ -From f7a78fc4cd5330f7b0f144bf63fdc47163006288 Mon Sep 17 00:00:00 2001 +From 0affa1ab854a78115557b2515077085e7b0bfed6 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Sep 2021 10:07:05 -0700 Subject: [PATCH 15/27] unvendor xz diff --git a/recipe/patches/0016-unvendor-zlib.patch b/recipe/patches/0016-unvendor-zlib.patch index 964d3301f..15cbce181 100644 --- a/recipe/patches/0016-unvendor-zlib.patch +++ b/recipe/patches/0016-unvendor-zlib.patch @@ -1,4 +1,4 @@ -From 3c798a27a13178e21ebef9af0958994e8982b69c Mon Sep 17 00:00:00 2001 +From 20ffbea56b8882626cdc4efa661946d300ccc542 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Sep 2021 15:21:55 -0700 Subject: [PATCH 16/27] unvendor zlib @@ -9,7 +9,7 @@ Subject: [PATCH 16/27] unvendor zlib 2 files changed, 4 insertions(+), 76 deletions(-) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index d1efe476439..62b762f8bdc 100644 +index e2f8f42449a..7d5432d5428 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -82,7 +82,7 @@ @@ -30,18 +30,21 @@ index d1efe476439..62b762f8bdc 100644 $(GeneratedJitStencilsDir);%(AdditionalIncludeDirectories) _USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";ZLIB_COMPAT;%(PreprocessorDefinitions) _Py_HAVE_ZLIB;%(PreprocessorDefinitions) -@@ -113,8 +113,8 @@ +@@ -113,11 +113,11 @@ Py_STACKREF_DEBUG;%(PreprocessorDefinitions) - version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies) - zlib-ng$(PyDebugExt).lib;%(AdditionalDependencies) + version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;zlib.lib;%(AdditionalDependencies) + $(GeneratedJitStencilsDir)jit_shim-aarch64-pc-windows-msvc.o;%(AdditionalDependencies) + $(GeneratedJitStencilsDir)jit_shim-i686-pc-windows-msvc.o;%(AdditionalDependencies) + $(GeneratedJitStencilsDir)jit_shim-x86_64-pc-windows-msvc.o;%(AdditionalDependencies) + $(condaDir)\lib;%(AdditionalLibraryDirectories) -@@ -695,12 +695,6 @@ +@@ -711,12 +711,6 @@ @@ -55,10 +58,10 @@ index d1efe476439..62b762f8bdc 100644 diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters -index 664788e69af..53665c076ac 100644 +index 649ee1859ff..6fb1a6b5d0f 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters -@@ -921,39 +921,6 @@ +@@ -939,39 +939,6 @@ Include\internal\mimalloc @@ -98,7 +101,7 @@ index 664788e69af..53665c076ac 100644 Include\internal -@@ -1613,39 +1580,6 @@ +@@ -1643,39 +1610,6 @@ Objects diff --git a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch index 968102138..9a54f6fee 100644 --- a/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch +++ b/recipe/patches/0017-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch @@ -1,4 +1,4 @@ -From 8412a62f4b136ebf3d2f9a49d2f6a273ea354dd5 Mon Sep 17 00:00:00 2001 +From 54038153d469b5a64ed5f7ba6c524ccf400a1b72 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Wed, 16 Aug 2017 11:45:28 +0100 Subject: [PATCH 17/27] Do not pass -g to GCC when not Py_DEBUG @@ -10,10 +10,10 @@ This bloats our exe and our modules a lot. 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure -index 3dd96b59b86..369b032c7a5 100755 +index b3a36e07e38..a88a92ffe0a 100755 --- a/configure +++ b/configure -@@ -5832,9 +5832,9 @@ if test $ac_test_CFLAGS; then +@@ -5845,9 +5845,9 @@ if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -25,7 +25,7 @@ index 3dd96b59b86..369b032c7a5 100755 fi else if test "$GCC" = yes; then -@@ -9667,7 +9667,7 @@ then +@@ -9758,7 +9758,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else @@ -35,10 +35,10 @@ index 3dd96b59b86..369b032c7a5 100755 ;; *) diff --git a/configure.ac b/configure.ac -index 3d9f990e3d9..d6bb9724a7d 100644 +index 603549bd039..b7224bff208 100644 --- a/configure.ac +++ b/configure.ac -@@ -2336,7 +2336,7 @@ then +@@ -2376,7 +2376,7 @@ then if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else diff --git a/recipe/patches/0018-Unvendor-expat.patch b/recipe/patches/0018-Unvendor-expat.patch index 4364c1e9e..0c287d900 100644 --- a/recipe/patches/0018-Unvendor-expat.patch +++ b/recipe/patches/0018-Unvendor-expat.patch @@ -1,20 +1,20 @@ -From bd65aba356c307b50aa0585d865279168e0ed9e2 Mon Sep 17 00:00:00 2001 +From ec1edcdf2b4ab8849899256cfa51ce77406d5ec4 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Mar 2023 23:07:10 -0500 Subject: [PATCH 18/27] Unvendor expat --- - PCbuild/_elementtree.vcxproj | 24 ++---------- - PCbuild/_elementtree.vcxproj.filters | 55 +--------------------------- - PCbuild/pyexpat.vcxproj | 12 ++---- - PCbuild/pyexpat.vcxproj.filters | 19 +--------- - 4 files changed, 10 insertions(+), 100 deletions(-) + PCbuild/_elementtree.vcxproj | 26 ++---------- + PCbuild/_elementtree.vcxproj.filters | 59 ---------------------------- + PCbuild/pyexpat.vcxproj | 14 ++----- + PCbuild/pyexpat.vcxproj.filters | 23 ----------- + 4 files changed, 8 insertions(+), 114 deletions(-) diff --git a/PCbuild/_elementtree.vcxproj b/PCbuild/_elementtree.vcxproj -index 920656f2ee2..f47bcd8e4e6 100644 +index fb1589557da..f47bcd8e4e6 100644 --- a/PCbuild/_elementtree.vcxproj +++ b/PCbuild/_elementtree.vcxproj -@@ -93,35 +93,19 @@ +@@ -93,37 +93,19 @@ @@ -36,9 +36,11 @@ index 920656f2ee2..f47bcd8e4e6 100644 - - - +- - - - +- - - - @@ -55,10 +57,10 @@ index 920656f2ee2..f47bcd8e4e6 100644 diff --git a/PCbuild/_elementtree.vcxproj.filters b/PCbuild/_elementtree.vcxproj.filters -index a5368024cce..7cc8e9a3b9b 100644 +index f6b55d8ff82..88a13faa683 100644 --- a/PCbuild/_elementtree.vcxproj.filters +++ b/PCbuild/_elementtree.vcxproj.filters -@@ -17,67 +17,14 @@ +@@ -17,69 +17,10 @@ {f99990ba-cd06-40cc-8f28-d2d424ec13be} @@ -78,6 +80,9 @@ index a5368024cce..7cc8e9a3b9b 100644 - - Header Files\expat - +- +- Header Files\expat +- - - Header Files\expat - @@ -87,6 +92,9 @@ index a5368024cce..7cc8e9a3b9b 100644 - - Header Files\expat - +- +- Header Files\expat +- - - Header Files\expat - @@ -122,17 +130,11 @@ index a5368024cce..7cc8e9a3b9b 100644 - Resource Files - - -- -\ No newline at end of file -+ diff --git a/PCbuild/pyexpat.vcxproj b/PCbuild/pyexpat.vcxproj -index 7a1d5942a6c..8bc1bcec7e8 100644 +index 6518e0e1b1c..8bc1bcec7e8 100644 --- a/PCbuild/pyexpat.vcxproj +++ b/PCbuild/pyexpat.vcxproj -@@ -90,23 +90,19 @@ +@@ -90,25 +90,19 @@ @@ -149,6 +151,8 @@ index 7a1d5942a6c..8bc1bcec7e8 100644 + - +- +- - - - @@ -161,14 +165,20 @@ index 7a1d5942a6c..8bc1bcec7e8 100644 diff --git a/PCbuild/pyexpat.vcxproj.filters b/PCbuild/pyexpat.vcxproj.filters -index fd22fc8c477..41c73b434b9 100644 +index 230531033fc..b8280b4049c 100644 --- a/PCbuild/pyexpat.vcxproj.filters +++ b/PCbuild/pyexpat.vcxproj.filters -@@ -11,31 +11,14 @@ +@@ -11,33 +11,10 @@ {f1dbbdb5-41e5-4a88-bf8e-13da010c0ce4} - +- +- Header Files +- +- +- Header Files +- - - Header Files - @@ -192,9 +202,3 @@ index fd22fc8c477..41c73b434b9 100644 - Resource Files - - -- -\ No newline at end of file -+ diff --git a/recipe/patches/0019-Remove-unused-readelf.patch b/recipe/patches/0019-Remove-unused-readelf.patch index d35744ab5..552ca92c4 100644 --- a/recipe/patches/0019-Remove-unused-readelf.patch +++ b/recipe/patches/0019-Remove-unused-readelf.patch @@ -1,4 +1,4 @@ -From 163ac65b3ebb8350b14428ce2a867ab9157de04a Mon Sep 17 00:00:00 2001 +From 794a3c5afb0549e2a4f19463c8368736df454bf7 Mon Sep 17 00:00:00 2001 From: Charles Bousseau Date: Thu, 25 May 2023 17:56:53 -0400 Subject: [PATCH 19/27] Remove unused readelf @@ -15,7 +15,7 @@ Drop unused build dependency on ``readelf``. 1 file changed, 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 354580aa482..1461a30cd79 100644 +index c2820741404..b1711d1d385 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -38,7 +38,6 @@ CC= @CC@ diff --git a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch index 8857b83e0..d726fb0dc 100644 --- a/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch +++ b/recipe/patches/0020-Don-t-checksharedmods-if-cross-compiling.patch @@ -1,4 +1,4 @@ -From c3948b896e5d07f7ae548c9a3dc1ac8b7cb1ab80 Mon Sep 17 00:00:00 2001 +From de8ce0d2b0a413ba8b5ebe5e20caac359f633033 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 1 Sep 2023 23:32:14 +0200 Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling @@ -10,10 +10,10 @@ Subject: [PATCH 20/27] Don't checksharedmods if cross-compiling create mode 100755 if_runnable.sh diff --git a/Makefile.pre.in b/Makefile.pre.in -index 1461a30cd79..5acf12b7fd3 100644 +index b1711d1d385..3aae0d606c1 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1615,7 +1615,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) +@@ -1632,7 +1632,7 @@ checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON) else \ $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/check_extension_modules.py --generate-missing-stdlib-info; \ fi diff --git a/recipe/patches/0021-Override-configure-LIBFFI.patch b/recipe/patches/0021-Override-configure-LIBFFI.patch index cd747f069..464579614 100644 --- a/recipe/patches/0021-Override-configure-LIBFFI.patch +++ b/recipe/patches/0021-Override-configure-LIBFFI.patch @@ -1,4 +1,4 @@ -From c1c7a327ddf5c562d42ae540c189737117cdb2c4 Mon Sep 17 00:00:00 2001 +From 70897fdc6b76649ba3237fe0be1a488c79592823 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 5 Sep 2023 21:51:31 +0200 Subject: [PATCH 21/27] Override configure LIBFFI @@ -8,10 +8,10 @@ Subject: [PATCH 21/27] Override configure LIBFFI 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure -index 369b032c7a5..1248a8ccf34 100755 +index a88a92ffe0a..37493df13e5 100755 --- a/configure +++ b/configure -@@ -15458,7 +15458,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes +@@ -15917,7 +15917,7 @@ if test "x$ac_cv_lib_ffi_ffi_call" = xyes then : have_libffi=yes diff --git a/recipe/patches/0022-Unvendor-libmpdec.patch b/recipe/patches/0022-Unvendor-libmpdec.patch index c4f7f5374..bc6c775ba 100644 --- a/recipe/patches/0022-Unvendor-libmpdec.patch +++ b/recipe/patches/0022-Unvendor-libmpdec.patch @@ -1,4 +1,4 @@ -From 984b3d2f2c8f23324ea4d70ca5554e2320eabc2e Mon Sep 17 00:00:00 2001 +From fceffd4d643ec1400a50dbe9cb04627c74cfa266 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 16 Aug 2024 21:34:43 -0500 Subject: [PATCH 22/27] Unvendor libmpdec diff --git a/recipe/patches/0023-Brand-conda-forge.patch b/recipe/patches/0023-Brand-conda-forge.patch index e36eb1684..bc8a37371 100644 --- a/recipe/patches/0023-Brand-conda-forge.patch +++ b/recipe/patches/0023-Brand-conda-forge.patch @@ -1,4 +1,4 @@ -From 0cd204331a095425b848df1b71a8eba3dc55604b Mon Sep 17 00:00:00 2001 +From bdb99ff3e6a76fdfca612429330ce20b91087372 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 28 Aug 2024 11:12:22 -0500 Subject: [PATCH 23/27] Brand conda-forge @@ -9,7 +9,7 @@ Subject: [PATCH 23/27] Brand conda-forge 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/platform.py b/Lib/platform.py -index 2401eff96df..69808d58586 100644 +index 37278847c0a..d419716825b 100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -1146,6 +1146,7 @@ def _sys_version(sys_version=None): diff --git a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch index 85dd6eac1..4e8d6d672 100644 --- a/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch +++ b/recipe/patches/0024-Do-not-define-pid_t-as-it-might-conflict-with-the-ac.patch @@ -1,4 +1,4 @@ -From efeee2e5065c4ad3a5a4957448baa84eb3ef3b45 Mon Sep 17 00:00:00 2001 +From 52267d279c5af48b68ce4d785b10139873b6cc2d Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 12 Jan 2025 10:37:29 +0530 Subject: [PATCH 24/27] Do not define pid_t as it might conflict with the @@ -30,11 +30,11 @@ index 008a7d37726..7829e9cc714 100644 module _testcapi [clinic start generated code]*/ diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c -index aa12db20908..15489be2e95 100644 +index 799390c2705..c8454f866bf 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c -@@ -23,6 +23,10 @@ - # include // W_STOPCODE +@@ -26,6 +26,10 @@ + # include // sysctlbyname() #endif +#ifdef _MSC_VER @@ -45,7 +45,7 @@ index aa12db20908..15489be2e95 100644 # error "The public headers should not include , see gh-48924" #endif diff --git a/Modules/_testlimitedcapi/long.c b/Modules/_testlimitedcapi/long.c -index 34bc7331da9..abae4b19bf0 100644 +index 99b9e96760d..932fef0497f 100644 --- a/Modules/_testlimitedcapi/long.c +++ b/Modules/_testlimitedcapi/long.c @@ -8,6 +8,10 @@ @@ -60,7 +60,7 @@ index 34bc7331da9..abae4b19bf0 100644 module _testlimitedcapi [clinic start generated code]*/ diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h -index ad4c5dd1c9b..0053e527fe7 100644 +index 45e509d0030..65b87843b20 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -10,6 +10,10 @@ preserve @@ -75,10 +75,10 @@ index ad4c5dd1c9b..0053e527fe7 100644 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c -index e5ce487723b..e90463fa21e 100644 +index 2a25be16e61..5fe43d52835 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c -@@ -221,6 +221,7 @@ +@@ -222,6 +222,7 @@ # if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) # define HAVE_SYMLINK # endif /* MS_WINDOWS_DESKTOP | MS_WINDOWS_SYSTEM */ @@ -87,7 +87,7 @@ index e5ce487723b..e90463fa21e 100644 diff --git a/PC/pyconfig.h b/PC/pyconfig.h -index a126fca6f5a..8332de4afb4 100644 +index 72a475777b7..5149fbcf301 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -240,8 +240,6 @@ typedef _W64 int Py_ssize_t; @@ -100,7 +100,7 @@ index a126fca6f5a..8332de4afb4 100644 #if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */ diff --git a/Python/remote_debug.h b/Python/remote_debug.h -index 7628fb04ba5..398c91c0470 100644 +index 7b7380d25bf..0d89e46d054 100644 --- a/Python/remote_debug.h +++ b/Python/remote_debug.h @@ -28,6 +28,9 @@ extern "C" { diff --git a/recipe/patches/0025-Unvendor-zstd.patch b/recipe/patches/0025-Unvendor-zstd.patch index 44b03d1bb..6f3c04329 100644 --- a/recipe/patches/0025-Unvendor-zstd.patch +++ b/recipe/patches/0025-Unvendor-zstd.patch @@ -1,4 +1,4 @@ -From f03fda6332e6d34a9826ed494aab78b1315ea414 Mon Sep 17 00:00:00 2001 +From edda9d185e32eef8592264398e83e95f117b15d1 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 22 Jul 2025 18:07:54 +0200 Subject: [PATCH 25/27] Unvendor zstd @@ -9,15 +9,19 @@ Subject: [PATCH 25/27] Unvendor zstd 2 files changed, 6 insertions(+), 209 deletions(-) diff --git a/PCbuild/_zstd.vcxproj b/PCbuild/_zstd.vcxproj -index 6f91b8d05cc..cc6f99cb002 100644 +index 683a44535ca..fa113b0cd87 100644 --- a/PCbuild/_zstd.vcxproj +++ b/PCbuild/_zstd.vcxproj -@@ -95,72 +95,22 @@ +@@ -95,76 +95,26 @@ WIN32;ZSTD_MULTITHREAD=1;%(PreprocessorDefinitions) - $(zstdDir)lib\;$(zstdDir)lib\common;$(zstdDir)lib\compress;$(zstdDir)lib\decompress;$(zstdDir)lib\dictBuilder;%(AdditionalIncludeDirectories) + $(condaDir)\include;%(AdditionalIncludeDirectories) + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% + /d1trimfile:%SRC_DIR% + + $(condaDir)\lib\zstd.lib;%(AdditionalDependencies) diff --git a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch index 31a9c6a76..dc2d37bbf 100644 --- a/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch +++ b/recipe/patches/0026-Set-Py_GIL_DISABLED-in-windows-to-match-unix.patch @@ -1,4 +1,4 @@ -From e332b0f997ce1bd79d68b920151507776207fb62 Mon Sep 17 00:00:00 2001 +From 11f11d345af9c01aa41399952a9ecd7f6ab13b8e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 2 Dec 2025 09:46:56 -0800 Subject: [PATCH 26/27] Set Py_GIL_DISABLED in windows to match unix @@ -11,7 +11,7 @@ luxury of not having to do that. 1 file changed, 2 insertions(+) diff --git a/PC/pyconfig.h b/PC/pyconfig.h -index 8332de4afb4..45744078c1b 100644 +index 5149fbcf301..52892d685cc 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -110,6 +110,8 @@ WIN32 is still required for the locale module. diff --git a/recipe/patches/0027-More-unixy-layout-for-windows.patch b/recipe/patches/0027-More-unixy-layout-for-windows.patch index 7d8444e1d..005c7ddd3 100644 --- a/recipe/patches/0027-More-unixy-layout-for-windows.patch +++ b/recipe/patches/0027-More-unixy-layout-for-windows.patch @@ -1,4 +1,4 @@ -From af7dee26a2be6d38d8f3466fbeac16dca739614f Mon Sep 17 00:00:00 2001 +From 853e54ebe2cd914b719dc274be11211d72883a32 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 May 2026 14:21:19 -0700 Subject: [PATCH 27/27] More unixy layout for windows @@ -12,10 +12,10 @@ See https://github.com/conda-forge/cfep/pull/65 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Lib/site.py b/Lib/site.py -index 30015b3f26b..f0c62fb4e59 100644 +index d06549b8df8..4ec8fab1450 100644 --- a/Lib/site.py +++ b/Lib/site.py -@@ -414,6 +414,7 @@ def getsitepackages(prefixes=None): +@@ -764,6 +764,7 @@ def getsitepackages(prefixes=None): "site-packages") sitepackages.append(path) else: @@ -54,12 +54,12 @@ index 654a1ef225f..9021d40e809 100644 'user': 'nt_user', } diff --git a/Modules/getpath.py b/Modules/getpath.py -index 43a47ca77af..0197811f7eb 100644 +index ea370c2f686..c7f85c5c5c1 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py -@@ -193,9 +193,9 @@ +@@ -190,9 +190,9 @@ + elif os_name == 'nt': BUILDDIR_TXT = 'pybuilddir.txt' - BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local' DEFAULT_PROGRAM_NAME = f'python' - STDLIB_SUBDIR = 'Lib' + STDLIB_SUBDIR = f'{platlibdir}\\python' @@ -70,10 +70,10 @@ index 43a47ca77af..0197811f7eb 100644 VENV_LANDMARK = 'pyvenv.cfg' ZIP_LANDMARK = f'python{VERSION_MAJOR}{VERSION_MINOR}{PYDEBUGEXT or ""}.zip' diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj -index 62b762f8bdc..e5d52458346 100644 +index 7d5432d5428..aaf80b13a89 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj -@@ -126,7 +126,7 @@ +@@ -129,7 +129,7 @@ VERSION=NULL; VPATH="$(PyVPath)"; PYDEBUGEXT="$(PyDebugExt)"; From 2d61e6bf6f4cc6ffe46737e9f2f80427fd9846c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 20:13:45 +0200 Subject: [PATCH 32/57] sync Windows fixes from Anaconda MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Taken from https://github.com/AnacondaRecipes/python-feedstock/pull/232 Signed-off-by: Michał Górny --- recipe/build_base.bat | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index ae13ade80..e1c4baebd 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -1,6 +1,9 @@ setlocal EnableDelayedExpansion echo on +:: Avoids fetching nuget.exe from the internet. +set PYTHON=%CONDA_PYTHON_EXE% + :: Compile python, extensions and external libraries if "%ARCH%"=="64" ( set PLATFORM=x64 @@ -48,6 +51,16 @@ if "%PY_FREETHREADING%" == "yes" ( set "FREETHREADING=--disable-gil" set "THREAD=t" set "EXE_T=%VER%t" + :: Free-threaded MSBuild output goes to PCbuild\amd64t\ (or win32t\), not amd64\. + :: Upstream python.props sets BuildPath=BuildPath64t when DisableGil=true; all + :: exes, .pyd, and .lib artifacts land there. BUILD_PATH below is used to + :: stage those files into %PREFIX% — leaving it at amd64 makes xcopy *.pyd fail + :: with "File not found" even though the compile itself succeeded. + if "%ARCH%"=="64" ( + set BUILD_PATH=amd64t + ) else ( + set BUILD_PATH=win32t + ) ) else ( set "FREETHREADING=--experimental-jit-off" set "THREAD=" @@ -57,12 +70,16 @@ if "%PY_FREETHREADING%" == "yes" ( :: AP doesn't support PGO atm? set PGO= +:: TODO: remove once tk 9 is available on main +:: Pin Tcl/Tk from the `tk` variant in conda_build_config.yaml (single source of +:: truth, shared with build_base.sh). Upstream 3.15 tcltk.props defaults +:: TclVersion to 9.0.3.0, but pkgs/main only ships tk 8.6; MSBuild derives the +:: lib names (tcl86t.lib/tk86t.lib) from the major.minor of these props. +set TCLTK_MSBUILD_PROPS="/p:TclVersion=%tk%" "/p:TkVersion=%tk%" + cd PCbuild -:: Twice because: -:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %PLATFORM% -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %PLATFORM% +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %PLATFORM% %TCLTK_MSBUILD_PROPS% if errorlevel 1 exit 1 cd .. From 51e737fc4259fbc9ac73d674d38911b90210061a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 20:16:01 +0200 Subject: [PATCH 33/57] Use TCLTK_VER in `build_base.sh` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Taken from https://github.com/AnacondaRecipes/python-feedstock/pull/232 Signed-off-by: Michał Górny --- recipe/build_base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index bf36540ab..6bb202740 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -256,7 +256,7 @@ _common_configure_args+=(--with-computed-gotos) _common_configure_args+=(--with-system-expat) _common_configure_args+=(--enable-loadable-sqlite-extensions) _common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include") -_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6") +_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl${TCLTK_VER} -ltk${TCLTK_VER}") _common_configure_args+=(--with-platlibdir=lib) if [[ "${PY_INTERP_DEBUG}" == "yes" || "${target_platform}" != *"-64" || ${PY_FREETHREADING} == yes ]]; then From fbbb52102a17717be0afa669a591173ff186490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 20:16:45 +0200 Subject: [PATCH 34/57] Pass `--with-system-mpdec` on unix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Taken from https://github.com/AnacondaRecipes/python-feedstock/pull/232 Signed-off-by: Michał Górny --- recipe/build_base.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 6bb202740..d7b98f46e 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -258,6 +258,7 @@ _common_configure_args+=(--enable-loadable-sqlite-extensions) _common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include") _common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl${TCLTK_VER} -ltk${TCLTK_VER}") _common_configure_args+=(--with-platlibdir=lib) +_common_configure_args+=(--with-system-libmpdec=yes) if [[ "${PY_INTERP_DEBUG}" == "yes" || "${target_platform}" != *"-64" || ${PY_FREETHREADING} == yes ]]; then _common_configure_args+=(--enable-experimental-jit=no) From 422af292e2f6ada62224f2925453474a4fe0e593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 20 Jul 2026 21:02:18 +0200 Subject: [PATCH 35/57] Restore prefix/suffix logic in the tcltk patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/patches/0014-Unvendor-tcltk.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/patches/0014-Unvendor-tcltk.patch b/recipe/patches/0014-Unvendor-tcltk.patch index 8100d12e7..8971139f4 100644 --- a/recipe/patches/0014-Unvendor-tcltk.patch +++ b/recipe/patches/0014-Unvendor-tcltk.patch @@ -29,7 +29,7 @@ diff --git a/PCbuild/tcltk.props b/PCbuild/tcltk.props index 28e8c0db4d1..f975a79829a 100644 --- a/PCbuild/tcltk.props +++ b/PCbuild/tcltk.props -@@ -12,15 +12,11 @@ +@@ -12,15 +12,13 @@ $([System.Version]::Parse($(TkVersion)).Minor) $([System.Version]::Parse($(TkVersion)).Build) $([System.Version]::Parse($(TkVersion)).Revision) @@ -38,8 +38,8 @@ index 28e8c0db4d1..f975a79829a 100644 - $(ExternalsDir)tcl-$(TclVersion)\ - $(ExternalsDir)tk-$(TkVersion)\ - $(ExternalsDir)tcltk-$(TclVersion)\$(ArchName)\ -- t -- tcl9 + t + tcl9 - TCLSH_NATIVE="$(tcltkDir)\..\win32\bin\tclsh$(TclMajorVersion)$(TclMinorVersion)$(tcltkSuffix).exe" - TCL_WITH_EXTERNAL_TOMMATH; + $(condaDir) From da4087663ce0f855c0b27c503d4356ce16672ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 21 Jul 2026 16:38:40 +0200 Subject: [PATCH 36/57] Fix CMake test to allow freethreading builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/tests/cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipe/tests/cmake/CMakeLists.txt b/recipe/tests/cmake/CMakeLists.txt index f3e41560c..42ce64fd1 100644 --- a/recipe/tests/cmake/CMakeLists.txt +++ b/recipe/tests/cmake/CMakeLists.txt @@ -7,4 +7,8 @@ project(mymath) option(PY_VER "Python version to use") option(EXTRA_COMPONENTS "Additional Python components to check for") +# Since 3.16, CMake does not accept freethreaded interpreter by default +# anymore. Allow it explicitly. +# https://cmake.org/cmake/help/latest/module/FindPython.html#hints +set(Python_FIND_ABI ANY ANY ANY ANY) find_package(Python ${PY_VER} COMPONENTS Interpreter ${EXTRA_COMPONENTS} REQUIRED) From 3e7eab8a426bdb170aa9b81b0fac5daece0129e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 21 Jul 2026 16:39:36 +0200 Subject: [PATCH 37/57] MNT: Re-rendered with conda-smithy 2026.6.14 and conda-forge-pinning 2026.07.21.12.11.00 Other tools: - conda-build 26.5.0 - rattler-build 0.69.1 - rattler-build-conda-compat 1.4.15 --- .azure-pipelines/azure-pipelines-osx.yml | 95 ++++++- .azure-pipelines/azure-pipelines-win.yml | 58 +++- ...forge_python_dev_debugfreethreadingno.yaml | 2 +- ...orge_python_dev_debugfreethreadingyes.yaml | 2 +- ...conda-forge_python_devfreethreadingno.yaml | 2 +- ...onda-forge_python_devfreethreadingyes.yaml | 2 +- ...forge_python_dev_debugfreethreadingno.yaml | 2 +- ...orge_python_dev_debugfreethreadingyes.yaml | 2 +- ...conda-forge_python_devfreethreadingno.yaml | 2 +- ...onda-forge_python_devfreethreadingyes.yaml | 2 +- ...forge_python_dev_debugfreethreadingno.yaml | 2 +- ...orge_python_dev_debugfreethreadingyes.yaml | 2 +- ...conda-forge_python_devfreethreadingno.yaml | 2 +- ...onda-forge_python_devfreethreadingyes.yaml | 2 +- .github/workflows/conda-build.yml | 250 +++++++++++++++--- .gitignore | 1 + .scripts/build_steps.sh | 29 +- .scripts/create_conda_build_artifacts.bat | 78 ++++++ .scripts/create_conda_build_artifacts.sh | 114 ++++++++ .scripts/run_docker_build.sh | 25 +- .scripts/run_osx_build.sh | 4 +- .scripts/run_win_build.bat | 2 +- README.md | 121 +-------- build-locally.py | 5 +- 24 files changed, 619 insertions(+), 187 deletions(-) create mode 100755 .scripts/create_conda_build_artifacts.bat create mode 100755 .scripts/create_conda_build_artifacts.sh diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index f7f2a778f..4a607d55e 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -12,34 +12,90 @@ jobs: CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_64_build_typedebugchannel_targetscon_h7e0a902e osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: CONFIG: osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_64_build_typedebugchannel_targetscon_h5fbe8e96 osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_64_build_typereleasechannel_targetsc_h3fa66222 osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: CONFIG: osx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_64_build_typereleasechannel_targetsc_h50b7d481 osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_arm64_build_typedebugchannel_targets_h2cf12795 osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_arm64_build_typedebugchannel_targets_he51402fe osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_arm64_build_typereleasechannel_targe_h536dbde2 osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' VMIMAGE: macOS-15 + build_workspace_dir: ~/miniforge3/conda-bld + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: ~/miniforge3 + CONFIG_SHORT: osx_arm64_build_typereleasechannel_targe_h56c0dbd0 timeoutInMinutes: 360 variables: {} @@ -47,12 +103,14 @@ jobs: # TODO: Fast finish on azure pipelines? - script: | export CI=azure + export CONDA_BLD_PATH=$(build_workspace_dir) + export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) + export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME + export MINIFORGE_HOME=$(tools_install_dir) + export OSX_FORCE_SDK_DOWNLOAD="1" export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) export remote_url=$(Build.Repository.Uri) export sha=$(Build.SourceVersion) - export OSX_FORCE_SDK_DOWNLOAD="1" - export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME - export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then export IS_PR_BUILD="True" else @@ -64,3 +122,34 @@ jobs: BINSTAR_TOKEN: $(BINSTAR_TOKEN) FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) + + - script: | + export ARTIFACT_STAGING_DIR="$(Build.ArtifactStagingDirectory)" + # Archive everything in CONDA_BLD_PATH except environments + export BLD_ARTIFACT_PREFIX=conda_artifacts + export CI=azure + export CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt) + export CONDA_BLD_PATH=$(build_workspace_dir) + export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) + export MINIFORGE_HOME=$(tools_install_dir) + if [[ "$AGENT_JOBSTATUS" == "Failed" ]]; then + # Archive the CONDA_BLD_PATH environments only when the job fails + export ENV_ARTIFACT_PREFIX=conda_envs + fi + ./.scripts/create_conda_build_artifacts.sh + displayName: Prepare conda build artifacts + condition: and(succeededOrFailed(), eq(variables.store_build_artifacts, true)) + + - task: PublishPipelineArtifact@1 + displayName: Store conda build artifacts + condition: not(eq(variables.BLD_ARTIFACT_PATH, '')) + inputs: + targetPath: $(BLD_ARTIFACT_PATH) + artifactName: $(BLD_ARTIFACT_NAME) + + - task: PublishPipelineArtifact@1 + displayName: Store conda build environment artifacts + condition: not(eq(variables.ENV_ARTIFACT_PATH, '')) + inputs: + targetPath: $(ENV_ARTIFACT_PATH) + artifactName: $(ENV_ARTIFACT_NAME) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index d5d5b9980..75d3a7b2c 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -11,31 +11,71 @@ jobs: win_64_freethreadingno: CONFIG: win_64_freethreadingno UPLOAD_PACKAGES: 'True' + build_workspace_dir: D:\\bld\\ + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: D:\Miniforge + CONFIG_SHORT: win_64_freethreadingno win_64_freethreadingyes: CONFIG: win_64_freethreadingyes UPLOAD_PACKAGES: 'True' + build_workspace_dir: D:\\bld\\ + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: D:\Miniforge + CONFIG_SHORT: win_64_freethreadingyes timeoutInMinutes: 360 variables: - CONDA_BLD_PATH: D:\\bld\\ - MINIFORGE_HOME: D:\Miniforge UPLOAD_TEMP: D:\\tmp steps: - - script: | call ".scripts\run_win_build.bat" displayName: Run Windows build env: - MINIFORGE_HOME: $(MINIFORGE_HOME) - CONDA_BLD_PATH: $(CONDA_BLD_PATH) - PYTHONUNBUFFERED: 1 - CONFIG: $(CONFIG) CI: azure + CONFIG: $(CONFIG) + CONDA_BLD_PATH: $(build_workspace_dir) + MINIFORGE_HOME: $(tools_install_dir) + PYTHONUNBUFFERED: 1 + UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) + UPLOAD_TEMP: $(UPLOAD_TEMP) flow_run_id: azure_$(Build.BuildNumber).$(System.JobAttempt) remote_url: $(Build.Repository.Uri) sha: $(Build.SourceVersion) - UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) - UPLOAD_TEMP: $(UPLOAD_TEMP) BINSTAR_TOKEN: $(BINSTAR_TOKEN) FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) + + - script: | + set ARTIFACT_STAGING_DIR=$(Build.ArtifactStagingDirectory + set BLD_ARTIFACT_PREFIX=conda_artifacts + set CI=azure + set CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt) + set CONDA_BLD_PATH=$(build_workspace_dir) + set FEEDSTOCK_NAME=$(build.Repository.Name) + set MINIFORGE_HOME=$(tools_install_dir) + if "%AGENT_JOBSTATUS%" == "Failed" ( + set ENV_ARTIFACT_PREFIX=conda_envs + ) + call ".scripts\create_conda_build_artifacts.bat" + displayName: Prepare conda build artifacts + condition: and(succeededOrFailed(), eq(variables.store_build_artifacts, true)) + + - task: PublishPipelineArtifact@1 + displayName: Store conda build artifacts + condition: not(eq(variables.BLD_ARTIFACT_PATH, '')) + inputs: + targetPath: $(BLD_ARTIFACT_PATH) + artifactName: $(BLD_ARTIFACT_NAME) + + - task: PublishPipelineArtifact@1 + displayName: Store conda build environment artifacts + condition: not(eq(variables.ENV_ARTIFACT_PATH, '')) + inputs: + targetPath: $(ENV_ARTIFACT_PATH) + artifactName: $(ENV_ARTIFACT_NAME) diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index e450ab9d3..52322e5f7 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 31079909e..23281b90c 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index c2a3977ac..02782d80a 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index fd74202b0..fab317978 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 4e85b9160..d9f01bf15 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 27265adf8..a0b0dcc2e 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index e394c7044..af6b6e463 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index d66846eb1..5195f087f 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 96546b899..5ce67fb9d 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index b5cd6b391..8f1e10f53 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index bc3202a8d..190ad8665 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 7413de85b..3009c402e 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 +- quay.io/condaforge/linux-anvil-x86_64:alma10 expat: - '2' freethreading: diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index cf09c9150..e0f01c37d 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -23,118 +23,228 @@ jobs: matrix: include: - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + CONFIG_SHORT: linux_64_build_typedebugchannel_targetsc_h47682395 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + CONFIG_SHORT: linux_64_build_typedebugchannel_targetsc_h1afd2c7e + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + CONFIG_SHORT: linux_64_build_typereleasechannel_target_hbd1a8b64 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + CONFIG_SHORT: linux_64_build_typereleasechannel_target_h9fe9284a + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_h158ec98d + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_h618840af + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_hbbb47f33 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_ha31997ea + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + CONFIG_SHORT: linux_ppc64le_build_typedebugchannel_tar_he3888cbf + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + CONFIG_SHORT: linux_ppc64le_build_typedebugchannel_tar_h7ee3c5df + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + CONFIG_SHORT: linux_ppc64le_build_typereleasechannel_t_h925684df + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 - CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + CONFIG_SHORT: linux_ppc64le_build_typereleasechannel_t_h1a7e6906 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True + build_workspace_dir: build_artifacts + docker_run_args: + free_disk_space: skip os: ubuntu + pagefile_size: 0 + resize_partitions: False runs_on: ['ubuntu-latest'] - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + tools_install_dir: ~/miniforge3 steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Configure binfmt_misc + if: matrix.os == 'ubuntu' + shell: bash + run: | + if [[ "$(uname -m)" == "x86_64" ]]; then + docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes + fi - name: Build on Linux id: build-linux if: matrix.os == 'ubuntu' env: + CI: github_actions + CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }} + CONDA_FORGE_DOCKER_RUN_ARGS: ${{ matrix.docker_run_args }} CONFIG: ${{ matrix.CONFIG }} - UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + MINIFORGE_HOME: ${{ matrix.tools_install_dir }} DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }} - CI: github_actions - CONDA_FORGE_DOCKER_RUN_ARGS: "${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}" + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + RATTLER_BUILD_COLOR: always + RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true' BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} shell: bash run: | - if [[ "$(uname -m)" == "x86_64" ]]; then - echo "::group::Configure binfmt_misc" - docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes - fi + export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}" export flow_run_id="github_$GITHUB_RUN_ID" export remote_url="https://github.com/$GITHUB_REPOSITORY" export sha="$GITHUB_SHA" - export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" - export GIT_BRANCH="$(basename $GITHUB_REF)" if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then export IS_PR_BUILD="True" else export IS_PR_BUILD="False" fi - echo "::endgroup::" ./.scripts/run_docker_build.sh - name: Build on macOS id: build-macos if: matrix.os == 'macos' env: + CI: github_actions + CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }} CONFIG: ${{ matrix.CONFIG }} + MINIFORGE_HOME: ${{ matrix.tools_install_dir }} UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} - CI: github_actions + RATTLER_BUILD_COLOR: always + RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true' BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} shell: bash run: | + export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}" export flow_run_id="github_$GITHUB_RUN_ID" export remote_url="https://github.com/$GITHUB_REPOSITORY" export sha="$GITHUB_SHA" - export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" - export GIT_BRANCH="$(basename $GITHUB_REF)" if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then export IS_PR_BUILD="True" else @@ -152,14 +262,90 @@ jobs: set "sha=%GITHUB_SHA%" call ".scripts\run_win_build.bat" env: - # default value; make it explicit, as it needs to match with artefact - # generation below. Not configurable for now, can be revisited later - CONDA_BLD_DIR: C:\bld - MINIFORGE_HOME: ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge - PYTHONUNBUFFERED: 1 - CONFIG: ${{ matrix.CONFIG }} CI: github_actions + CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }} + CONFIG: ${{ matrix.CONFIG }} + MINIFORGE_HOME: ${{ matrix.tools_install_dir }} + PYTHONUNBUFFERED: 1 UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + RATTLER_BUILD_COLOR: always + RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true' BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} - STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} \ No newline at end of file + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} + + - name: Determine build outcome + # this is to merge the status of the linux/osx/win builds into + # something we can easily reuse during artefact generation + id: determine-status + if: ${{ always() }} + shell: bash + env: + OS: ${{ matrix.os }} + run: | + if [[ "$OS" == "ubuntu" ]]; then + STATUS=${{ steps.build-linux.outcome }} + elif [[ "$OS" == "macos" ]]; then + STATUS=${{ steps.build-macos.outcome }} + elif [[ "$OS" == "windows" ]]; then + STATUS=${{ steps.build-windows.outcome }} + fi + if [ -z "$STATUS" ]; then + # steps that never ran will have empty status + STATUS="cancelled" + fi + echo "status=$STATUS" >> $GITHUB_OUTPUT + + - name: Prepare conda build artifacts + continue-on-error: true + id: prepare-artifacts + shell: bash + # we do not want to trigger artefact creation if the build was cancelled + if: ${{ always() && steps.determine-status.outputs.status != 'cancelled' && matrix.STORE_BUILD_ARTIFACTS }} + env: + CI: github_actions + CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }} + CONFIG: ${{ matrix.CONFIG }} + CONFIG_SHORT: ${{ matrix.CONFIG_SHORT }} + JOB_STATUS: ${{ steps.determine-status.outputs.status }} + OS: ${{ matrix.os }} + run: | + export ARTIFACT_STAGING_DIR="$GITHUB_WORKSPACE" + export CI_RUN_ID=$GITHUB_RUN_ID + export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}" + # Archive everything in CONDA_BLD_PATH except environments + # Archive the CONDA_BLD_PATH environments only when the job fails + # Use different prefix for successful and failed build artifacts + # so random failures don't prevent rebuilds from creating artifacts. + if [ $JOB_STATUS == "failure" ]; then + export BLD_ARTIFACT_PREFIX="conda_artifacts" + export ENV_ARTIFACT_PREFIX="conda_envs" + else + export BLD_ARTIFACT_PREFIX="conda_pkgs" + fi + if [ $OS == "windows" ]; then + pwsh -Command ". '.scripts/create_conda_build_artifacts.bat'" + else + ./.scripts/create_conda_build_artifacts.sh + fi + + - name: Store conda build artifacts + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: ${{ always() && steps.prepare-artifacts.outcome == 'success' }} + with: + name: ${{ steps.prepare-artifacts.outputs.BLD_ARTIFACT_NAME }} + path: ${{ steps.prepare-artifacts.outputs.BLD_ARTIFACT_PATH }} + retention-days: 14 + continue-on-error: true + + - name: Store conda build environment artifacts + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + # only relevant if build failed, see above + if: ${{ always() && steps.determine-status.outputs.status == 'failure' && steps.prepare-artifacts.outcome == 'success' }} + with: + name: ${{ steps.prepare-artifacts.outputs.ENV_ARTIFACT_NAME }} + path: ${{ steps.prepare-artifacts.outputs.ENV_ARTIFACT_PATH }} + retention-days: 14 + continue-on-error: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index 47b5408a8..86a9c55b4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ # Ignore all files and folders in root * !/conda-forge.yml +!.recipe_maintainers.json # Don't ignore any files/folders if the parent folder is 'un-ignored' # This also avoids warnings when adding an already-checked file with an ignored parent. diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index be060cb03..5c97f7442 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -36,7 +36,7 @@ mv /opt/conda/conda-meta/history /opt/conda/conda-meta/history.$(date +%Y-%m-%d- echo > /opt/conda/conda-meta/history micromamba install --root-prefix ~/.conda --prefix /opt/conda \ --yes --override-channels --channel conda-forge --strict-channel-priority \ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=26.3" export CONDA_LIBMAMBA_SOLVER_NO_CHANNELS_FROM_INSTALLED=1 # set up the condarc @@ -61,18 +61,33 @@ if [[ -f "${FEEDSTOCK_ROOT}/LICENSE.txt" ]]; then fi if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then - if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then - EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" - fi - conda debug "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ + # differences between conda-build vs. rattler-build + # - 1 step (conda debug + manually open shell) vs. 2 step (rb debug {setup, shell}) + # - recipe is positional vs. --recipe "${RECIPE_ROOT}" + # - --output-id vs. --output-name + # - --clobber-file vs. none + # - none vs. --target-platform + conda debug \ + "${RECIPE_ROOT}" \ + -m "${CI_SUPPORT}/${CONFIG}.yaml" \ ${EXTRA_CB_OPTIONS:-} \ + ${BUILD_OUTPUT_ID:+--output-id "${BUILD_OUTPUT_ID}"} \ --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" # Drop into an interactive shell /bin/bash else - conda-build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ - --suppress-variables ${EXTRA_CB_OPTIONS:-} \ + # differences between conda-build vs. rattler-build + # - recipe is positional vs. --recipe "${RECIPE_ROOT}" + # - --suppress-variables vs. none + # - --clobber-file vs. none + # - none vs. --target-platform + # - --extra-meta a=b c=d vs. --extra-meta a=b --extra-meta c=d + conda-build \ + "${RECIPE_ROOT}" \ + -m "${CI_SUPPORT}/${CONFIG}.yaml" \ + ${EXTRA_CB_OPTIONS:-} \ + --suppress-variables \ --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" \ --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" ( startgroup "Inspecting artifacts" ) 2> /dev/null diff --git a/.scripts/create_conda_build_artifacts.bat b/.scripts/create_conda_build_artifacts.bat new file mode 100755 index 000000000..705dc461b --- /dev/null +++ b/.scripts/create_conda_build_artifacts.bat @@ -0,0 +1,78 @@ +setlocal enableextensions enabledelayedexpansion + +rem INPUTS (environment variables that need to be set before calling this script): +rem +rem CI (azure/github_actions/UNSET) +rem CI_RUN_ID (unique identifier for the CI job run) +rem CONDA_BLD_PATH (path to the conda-bld directory) +rem CONFIG (build matrix configuration string) +rem CONFIG_SHORT (uniquely-shortened configuration string) +rem FEEDSTOCK_NAME +rem Optional: +rem ARTIFACT_STAGING_DIR (use working directory if unset) +rem BLD_ARTIFACT_PREFIX (prefix for the conda build artifact name, skip if unset) +rem ENV_ARTIFACT_PREFIX (prefix for the conda build environments artifact name, skip if unset) + +rem OUTPUTS +rem +rem BLD_ARTIFACT_NAME +rem BLD_ARTIFACT_PATH +rem ENV_ARTIFACT_NAME +rem ENV_ARTIFACT_PATH + +rem Check that the conda-build directory exists +if not exist %CONDA_BLD_PATH% ( + echo conda-build directory does not exist + exit 1 +) + +if not defined ARTIFACT_STAGING_DIR ( + rem Set staging dir to the working dir + set ARTIFACT_STAGING_DIR=%cd% +) + +rem Set a unique ID for the artifact(s), specialized for this particular job run +set ARTIFACT_UNIQUE_ID=%CI_RUN_ID%_%CONFIG% +if not "%ARTIFACT_UNIQUE_ID%" == "%ARTIFACT_UNIQUE_ID:~0,80%" ( + set ARTIFACT_UNIQUE_ID=%CI_RUN_ID%_%CONFIG_SHORT% +) + +rem Make the build artifact zip +if defined BLD_ARTIFACT_PREFIX ( + set BLD_ARTIFACT_NAME=%BLD_ARTIFACT_PREFIX%_%ARTIFACT_UNIQUE_ID% + echo BLD_ARTIFACT_NAME: !BLD_ARTIFACT_NAME! + + set "BLD_ARTIFACT_PATH=%ARTIFACT_STAGING_DIR%\%FEEDSTOCK_NAME%_%BLD_ARTIFACT_PREFIX%_%ARCHIVE_UNIQUE_ID%.zip" + 7z a "!BLD_ARTIFACT_PATH!" "%CONDA_BLD_PATH%" -xr^^!.git/ -xr^^!_*_env*/ -xr^^!*_cache/ -bb + if errorlevel 1 exit 1 + echo BLD_ARTIFACT_PATH: !BLD_ARTIFACT_PATH! + + if "%CI%" == "azure" ( + echo ##vso[task.setVariable variable=BLD_ARTIFACT_NAME]!BLD_ARTIFACT_NAME! + echo ##vso[task.setVariable variable=BLD_ARTIFACT_PATH]!BLD_ARTIFACT_PATH! + ) + if "%CI%" == "github_actions" ( + echo BLD_ARTIFACT_NAME=!BLD_ARTIFACT_NAME!>> !GITHUB_OUTPUT! + echo BLD_ARTIFACT_PATH=!BLD_ARTIFACT_PATH!>> !GITHUB_OUTPUT! + ) +) + +rem Make the environments artifact zip +if defined ENV_ARTIFACT_PREFIX ( + set ENV_ARTIFACT_NAME=!ENV_ARTIFACT_PREFIX!_%ARTIFACT_UNIQUE_ID% + echo ENV_ARTIFACT_NAME: !ENV_ARTIFACT_NAME! + + set "ENV_ARTIFACT_PATH=%ARTIFACT_STAGING_DIR%\%FEEDSTOCK_NAME%_%ENV_ARTIFACT_PREFIX%_%ARCHIVE_UNIQUE_ID%.zip" + 7z a "!ENV_ARTIFACT_PATH!" -r "%CONDA_BLD_PATH%"/_*_env*/ -bb + if errorlevel 1 exit 1 + echo ENV_ARTIFACT_PATH: !ENV_ARTIFACT_PATH! + + if "%CI%" == "azure" ( + echo ##vso[task.setVariable variable=ENV_ARTIFACT_NAME]!ENV_ARTIFACT_NAME! + echo ##vso[task.setVariable variable=ENV_ARTIFACT_PATH]!ENV_ARTIFACT_PATH! + ) + if "%CI%" == "github_actions" ( + echo ENV_ARTIFACT_NAME=!ENV_ARTIFACT_NAME!>> !GITHUB_OUTPUT! + echo ENV_ARTIFACT_PATH=!ENV_ARTIFACT_PATH!>> !GITHUB_OUTPUT! + ) +) diff --git a/.scripts/create_conda_build_artifacts.sh b/.scripts/create_conda_build_artifacts.sh new file mode 100755 index 000000000..91095c05d --- /dev/null +++ b/.scripts/create_conda_build_artifacts.sh @@ -0,0 +1,114 @@ +#!/usr/bin/env bash + +# INPUTS (environment variables that need to be set before calling this script): +# +# CI (azure/github_actions/UNSET) +# CI_RUN_ID (unique identifier for the CI job run) +# CONDA_BLD_PATH (path to the conda-bld directory) +# CONFIG (build matrix configuration string) +# CONFIG_SHORT (uniquely-shortened configuration string) +# FEEDSTOCK_NAME +# Optional: +# ARTIFACT_STAGING_DIR (use working directory if unset) +# BLD_ARTIFACT_PREFIX (prefix for the conda build artifact name, skip if unset) +# ENV_ARTIFACT_PREFIX (prefix for the conda build environments artifact name, skip if unset) + +# OUTPUTS +# +# BLD_ARTIFACT_NAME +# BLD_ARTIFACT_PATH +# ENV_ARTIFACT_NAME +# ENV_ARTIFACT_PATH + +source .scripts/logging_utils.sh + +# DON'T do set -x, because it results in double echo-ing pipeline commands +# and that might end up inserting extraneous quotation marks in output variables +set -e + +# Check that the conda-build directory exists +if [ ! -d "$CONDA_BLD_PATH" ]; then + echo "conda-build directory does not exist" + exit 1 +fi + +# Set staging dir to the working dir, in Windows style if applicable +if [[ -z "${ARTIFACT_STAGING_DIR}" ]]; then + if pwd -W; then + ARTIFACT_STAGING_DIR=$(pwd -W) + else + ARTIFACT_STAGING_DIR=$PWD + fi +fi +echo "ARTIFACT_STAGING_DIR: $ARTIFACT_STAGING_DIR" + +FEEDSTOCK_ROOT=$(cd "$(dirname "$0")/.."; pwd;) +if [ -z ${FEEDSTOCK_NAME} ]; then + export FEEDSTOCK_NAME=$(basename ${FEEDSTOCK_ROOT}) +fi + +# Set a unique ID for the artifact(s), specialized for this particular job run +ARTIFACT_UNIQUE_ID="${CI_RUN_ID}_${CONFIG}" +if [[ ${#ARTIFACT_UNIQUE_ID} -gt 80 ]]; then + ARTIFACT_UNIQUE_ID="${CI_RUN_ID}_${CONFIG_SHORT}" +fi +echo "ARTIFACT_UNIQUE_ID: $ARTIFACT_UNIQUE_ID" + +# Set a descriptive ID for the archive(s), specialized for this particular job run +ARCHIVE_UNIQUE_ID="${CI_RUN_ID}_${CONFIG}" + +# Make the build artifact zip +if [[ ! -z "$BLD_ARTIFACT_PREFIX" ]]; then + export BLD_ARTIFACT_NAME="${BLD_ARTIFACT_PREFIX}_${ARTIFACT_UNIQUE_ID}" + export BLD_ARTIFACT_PATH="${ARTIFACT_STAGING_DIR}/${FEEDSTOCK_NAME}_${BLD_ARTIFACT_PREFIX}_${ARCHIVE_UNIQUE_ID}.zip" + + ( startgroup "Archive conda build directory" ) 2> /dev/null + + # Try 7z and fall back to zip if it fails (for cross-platform use) + if ! 7z a "$BLD_ARTIFACT_PATH" "$CONDA_BLD_PATH" '-xr!.git/' '-xr!_*_env*/' '-xr!*_cache/' -bb; then + pushd "$CONDA_BLD_PATH" + zip -r -y -T "$BLD_ARTIFACT_PATH" . -x '*.git/*' '*_*_env*/*' '*_cache/*' + popd + fi + + ( endgroup "Archive conda build directory" ) 2> /dev/null + + echo "BLD_ARTIFACT_NAME: $BLD_ARTIFACT_NAME" + echo "BLD_ARTIFACT_PATH: $BLD_ARTIFACT_PATH" + + if [[ "$CI" == "azure" ]]; then + echo "##vso[task.setVariable variable=BLD_ARTIFACT_NAME]$BLD_ARTIFACT_NAME" + echo "##vso[task.setVariable variable=BLD_ARTIFACT_PATH]$BLD_ARTIFACT_PATH" + elif [[ "$CI" == "github_actions" ]]; then + echo "BLD_ARTIFACT_NAME=$BLD_ARTIFACT_NAME" >> $GITHUB_OUTPUT + echo "BLD_ARTIFACT_PATH=$BLD_ARTIFACT_PATH" >> $GITHUB_OUTPUT + fi +fi + +# Make the environments artifact zip +if [[ ! -z "$ENV_ARTIFACT_PREFIX" ]]; then + export ENV_ARTIFACT_NAME="${ENV_ARTIFACT_PREFIX}_${ARTIFACT_UNIQUE_ID}" + export ENV_ARTIFACT_PATH="${ARTIFACT_STAGING_DIR}/${FEEDSTOCK_NAME}_${ENV_ARTIFACT_PREFIX}_${ARCHIVE_UNIQUE_ID}.zip" + + ( startgroup "Archive conda build environments" ) 2> /dev/null + + # Try 7z and fall back to zip if it fails (for cross-platform use) + if ! 7z a "$ENV_ARTIFACT_PATH" -r "$CONDA_BLD_PATH"/'_*_env*/' -bb; then + pushd "$CONDA_BLD_PATH" + zip -r -y -T "$ENV_ARTIFACT_PATH" . -i '*_*_env*/*' + popd + fi + + ( endgroup "Archive conda build environments" ) 2> /dev/null + + echo "ENV_ARTIFACT_NAME: $ENV_ARTIFACT_NAME" + echo "ENV_ARTIFACT_PATH: $ENV_ARTIFACT_PATH" + + if [[ "$CI" == "azure" ]]; then + echo "##vso[task.setVariable variable=ENV_ARTIFACT_NAME]$ENV_ARTIFACT_NAME" + echo "##vso[task.setVariable variable=ENV_ARTIFACT_PATH]$ENV_ARTIFACT_PATH" + elif [[ "$CI" == "github_actions" ]]; then + echo "ENV_ARTIFACT_NAME=$ENV_ARTIFACT_NAME" >> $GITHUB_OUTPUT + echo "ENV_ARTIFACT_PATH=$ENV_ARTIFACT_PATH" >> $GITHUB_OUTPUT + fi +fi diff --git a/.scripts/run_docker_build.sh b/.scripts/run_docker_build.sh index 10d6a2af9..17d983f11 100755 --- a/.scripts/run_docker_build.sh +++ b/.scripts/run_docker_build.sh @@ -96,6 +96,14 @@ if [ "${DOCKER_EXECUTABLE}" = "podman" ]; then fi fi +# When running on GitHub Actions, mount the step summary file into the container +# and point GITHUB_STEP_SUMMARY at it so that rattler-build's GitHub integration +# can write its summary. GitHub writes the file out to the job summary after the +# step finishes. +if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then + DOCKER_RUN_ARGS="${DOCKER_RUN_ARGS} -v ${GITHUB_STEP_SUMMARY}:/home/conda/github_step_summary:rw${VOLUME_SUFFIX},delegated -e GITHUB_STEP_SUMMARY=/home/conda/github_step_summary" +fi + ( endgroup "Configure Docker" ) 2> /dev/null ( startgroup "Start Docker" ) 2> /dev/null @@ -107,17 +115,20 @@ ${DOCKER_EXECUTABLE} pull "${DOCKER_IMAGE}" ${DOCKER_EXECUTABLE} run ${DOCKER_RUN_ARGS} \ -v "${RECIPE_ROOT}":/home/conda/recipe_root:rw${VOLUME_SUFFIX},delegated \ -v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root:rw${VOLUME_SUFFIX},delegated \ + -e BUILD_OUTPUT_ID \ + -e BUILD_WITH_CONDA_DEBUG \ + -e CI \ -e CONFIG \ + -e CPU_COUNT \ + -e FEEDSTOCK_NAME \ + -e GIT_BRANCH \ + -e GITHUB_ACTIONS \ -e HOST_USER_ID \ - -e UPLOAD_PACKAGES \ -e IS_PR_BUILD \ - -e GIT_BRANCH \ + -e RATTLER_BUILD_COLOR \ + -e RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION \ -e UPLOAD_ON_BRANCH \ - -e CI \ - -e FEEDSTOCK_NAME \ - -e CPU_COUNT \ - -e BUILD_WITH_CONDA_DEBUG \ - -e BUILD_OUTPUT_ID \ + -e UPLOAD_PACKAGES \ -e flow_run_id \ -e remote_url \ -e sha \ diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index bac7141a9..b0eda55cd 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -26,7 +26,7 @@ chmod +x "${micromamba_exe}" echo "Creating environment" "${micromamba_exe}" create --yes --root-prefix "${MAMBA_ROOT_PREFIX}" --prefix "${MINIFORGE_HOME}" \ --channel conda-forge \ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=26.3" echo "Moving pkgs cache from ${MAMBA_ROOT_PREFIX} to ${MINIFORGE_HOME}" mv "${MAMBA_ROOT_PREFIX}/pkgs" "${MINIFORGE_HOME}" echo "Cleaning up micromamba" @@ -73,7 +73,7 @@ if [[ "${OSX_SDK_DIR:-}" == "" ]]; then /usr/bin/sudo chown "${USER}" "${OSX_SDK_DIR}" fi else - if tmpf=$(mktemp -p "$OSX_SDK_DIR" tmp.XXXXXXXX 2>/dev/null); then + if tmpf=$(mktemp "$OSX_SDK_DIR"/tmp.XXXXXXXX 2>/dev/null); then rm -f "$tmpf" echo "OSX_SDK_DIR is writeable without sudo, continuing" else diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat index 27c552b1a..c07d98e61 100755 --- a/.scripts/run_win_build.bat +++ b/.scripts/run_win_build.bat @@ -31,7 +31,7 @@ if !errorlevel! neq 0 exit /b !errorlevel! echo Creating environment call "%MICROMAMBA_EXE%" create --yes --root-prefix "%MAMBA_ROOT_PREFIX%" --prefix "%MINIFORGE_HOME%" ^ --channel conda-forge ^ - pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=24.1" + pip python=3.12 conda-build conda-forge-ci-setup=4 "conda-build>=26.3" if !errorlevel! neq 0 exit /b !errorlevel! echo Removing %MAMBA_ROOT_PREFIX% del /S /Q "%MAMBA_ROOT_PREFIX%" >nul diff --git a/README.md b/README.md index c190c2a10..845d26cdc 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,14 @@ Current build status ==================== -
VariantStatus
linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingnolinux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - variant + variant
linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyeslinux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - variant + variant
linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingnolinux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - variant + variant
linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyeslinux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - variant + variant
linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingnolinux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - variant + variant
linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyeslinux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - variant + variant
linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingnolinux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - variant + variant
linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyeslinux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - variant + variant
linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingnolinux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - variant + variant
linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyeslinux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - variant + variant
linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingnolinux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - variant + variant
linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyeslinux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - variant + variant
osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingnoosx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - variant + variant
osx_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyesosx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - variant + variant
osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingnoosx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - variant + variant
osx_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyesosx_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - variant + variant
osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingnoosx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - variant + variant
osx_arm64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyesosx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - variant + variant
osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingnoosx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - variant + variant
osx_arm64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyesosx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - variant + variant
+
+ + + @@ -59,90 +66,6 @@ Current build status
GitHub Actions + + + +
Azure
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - -
VariantStatus
linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - - variant - -
linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - - variant - -
linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - - variant - -
linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - - variant - -
linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - - variant - -
linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - - variant - -
linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - - variant - -
linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - - variant - -
linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - - variant - -
linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - - variant - -
linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - - variant - -
linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - - variant - -
osx_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno @@ -170,34 +93,6 @@ Current build status variant
osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno - - variant - -
osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes - - variant - -
osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno - - variant - -
osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes - - variant - -
win_64_freethreadingno diff --git a/build-locally.py b/build-locally.py index 05493e4d8..3beb68ccd 100755 --- a/build-locally.py +++ b/build-locally.py @@ -98,7 +98,10 @@ def main(args=None): p.add_argument( "--debug", action="store_true", - help="Setup debug environment using `conda debug`", + help=( + "Setup debug environment using `conda debug` " + "(or `rattler-build debug` for rattler-build recipes)" + ), ) p.add_argument("--output-id", help="If running debug, specify the output to setup.") From 2d9d5d8750dfbf5b4cad23789581cf8682a9cf64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 21 Jul 2026 19:42:06 +0200 Subject: [PATCH 38/57] Move `BUILD_PATH` around MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index e1c4baebd..70426723c 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -8,11 +8,9 @@ set PYTHON=%CONDA_PYTHON_EXE% if "%ARCH%"=="64" ( set PLATFORM=x64 set VC_PATH=x64 - set BUILD_PATH=amd64 ) else ( set PLATFORM=Win32 set VC_PATH=x86 - set BUILD_PATH=win32 ) for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( @@ -65,6 +63,11 @@ if "%PY_FREETHREADING%" == "yes" ( set "FREETHREADING=--experimental-jit-off" set "THREAD=" set "EXE_T=" + if "%ARCH%"=="64" ( + set BUILD_PATH=amd64 + ) else ( + set BUILD_PATH=win32 + ) ) :: AP doesn't support PGO atm? From 889c83999b75fd562a4a9b1e176aa47d4a03d16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 13:31:17 +0200 Subject: [PATCH 39/57] Bump build number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index bd2896d63..e23c7f4d5 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -4,7 +4,7 @@ {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 0 %} +{% set build_number = 1 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} From 401f914a259348f9e2d219fe3c4c9ba0e8d53af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 13:32:05 +0200 Subject: [PATCH 40/57] MNT: Re-rendered with conda-smithy 2026.6.14 and conda-forge-pinning 2026.07.22.19.40.54 Other tools: - conda-build 26.5.0 - rattler-build 0.69.1 - rattler-build-conda-compat 1.4.15 --- .azure-pipelines/azure-pipelines-osx.yml | 8 ++-- .azure-pipelines/azure-pipelines-win.yml | 20 +++++++++ ...forge_python_dev_debugfreethreadingno.yaml | 2 +- ...orge_python_dev_debugfreethreadingyes.yaml | 2 +- ...conda-forge_python_devfreethreadingno.yaml | 2 +- ...onda-forge_python_devfreethreadingyes.yaml | 2 +- .ci_support/win_arm64_freethreadingno.yaml | 43 ++++++++++++++++++ .ci_support/win_arm64_freethreadingyes.yaml | 43 ++++++++++++++++++ .github/workflows/conda-build.yml | 16 +++---- README.md | 44 +++++++++++++++---- 10 files changed, 158 insertions(+), 24 deletions(-) create mode 100644 .ci_support/win_arm64_freethreadingno.yaml create mode 100644 .ci_support/win_arm64_freethreadingyes.yaml diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index 4a607d55e..9a766cf7e 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -55,7 +55,7 @@ jobs: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno UPLOAD_PACKAGES: 'True' - VMIMAGE: macOS-15 + VMIMAGE: macOS-15-arm64 build_workspace_dir: ~/miniforge3/conda-bld free_disk_space: skip pagefile_size: 0 @@ -66,7 +66,7 @@ jobs: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes: CONFIG: osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes UPLOAD_PACKAGES: 'True' - VMIMAGE: macOS-15 + VMIMAGE: macOS-15-arm64 build_workspace_dir: ~/miniforge3/conda-bld free_disk_space: skip pagefile_size: 0 @@ -77,7 +77,7 @@ jobs: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno UPLOAD_PACKAGES: 'True' - VMIMAGE: macOS-15 + VMIMAGE: macOS-15-arm64 build_workspace_dir: ~/miniforge3/conda-bld free_disk_space: skip pagefile_size: 0 @@ -88,7 +88,7 @@ jobs: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes: CONFIG: osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes UPLOAD_PACKAGES: 'True' - VMIMAGE: macOS-15 + VMIMAGE: macOS-15-arm64 build_workspace_dir: ~/miniforge3/conda-bld free_disk_space: skip pagefile_size: 0 diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 75d3a7b2c..9c460bb69 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,6 +28,26 @@ jobs: store_build_artifacts: true tools_install_dir: D:\Miniforge CONFIG_SHORT: win_64_freethreadingyes + win_arm64_freethreadingno: + CONFIG: win_arm64_freethreadingno + UPLOAD_PACKAGES: 'True' + build_workspace_dir: C:\\bld\\ + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: C:\Miniforge + CONFIG_SHORT: win_arm64_freethreadingno + win_arm64_freethreadingyes: + CONFIG: win_arm64_freethreadingyes + UPLOAD_PACKAGES: 'True' + build_workspace_dir: C:\\bld\\ + free_disk_space: skip + pagefile_size: 0 + resize_partitions: false + store_build_artifacts: true + tools_install_dir: C:\Miniforge + CONFIG_SHORT: win_arm64_freethreadingyes timeoutInMinutes: 360 variables: UPLOAD_TEMP: D:\\tmp diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index d9f01bf15..2bb7c3be6 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma10 +- quay.io/condaforge/linux-anvil-aarch64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index a0b0dcc2e..9cc42a3f9 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma10 +- quay.io/condaforge/linux-anvil-aarch64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index af6b6e463..70d5afa7b 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma10 +- quay.io/condaforge/linux-anvil-aarch64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 5195f087f..807862b58 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -19,7 +19,7 @@ cxx_compiler: cxx_compiler_version: - '14' docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma10 +- quay.io/condaforge/linux-anvil-aarch64:alma10 expat: - '2' freethreading: diff --git a/.ci_support/win_arm64_freethreadingno.yaml b/.ci_support/win_arm64_freethreadingno.yaml new file mode 100644 index 000000000..2f31cb7e5 --- /dev/null +++ b/.ci_support/win_arm64_freethreadingno.yaml @@ -0,0 +1,43 @@ +build_type: +- release +bzip2: +- '1' +c_compiler: +- vs2022 +c_stdlib: +- vs +channel_sources: +- conda-forge/label/python_rc,conda-forge +channel_targets: +- conda-forge python_dev +cxx_compiler: +- vs2022 +expat: +- '2' +freethreading: +- 'no' +libffi: +- '3.5' +liblzma_devel: +- '5' +libsqlite: +- '3' +openssl: +- '3.5' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- '3.15' +target_platform: +- win-arm64 +tk: +- '8.6' +zip_keys: +- - build_type + - channel_targets +zlib: +- '1' +zstd: +- '1.5' diff --git a/.ci_support/win_arm64_freethreadingyes.yaml b/.ci_support/win_arm64_freethreadingyes.yaml new file mode 100644 index 000000000..b4597acbd --- /dev/null +++ b/.ci_support/win_arm64_freethreadingyes.yaml @@ -0,0 +1,43 @@ +build_type: +- release +bzip2: +- '1' +c_compiler: +- vs2022 +c_stdlib: +- vs +channel_sources: +- conda-forge/label/python_rc,conda-forge +channel_targets: +- conda-forge python_dev +cxx_compiler: +- vs2022 +expat: +- '2' +freethreading: +- 'yes' +libffi: +- '3.5' +liblzma_devel: +- '5' +libsqlite: +- '3' +openssl: +- '3.5' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- '3.15' +target_platform: +- win-arm64 +tk: +- '8.6' +zip_keys: +- - build_type + - channel_targets +zlib: +- '1' +zstd: +- '1.5' diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index e0f01c37d..b0d24fc08 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -76,7 +76,7 @@ jobs: tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_h158ec98d - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10 STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True build_workspace_dir: build_artifacts @@ -85,11 +85,11 @@ jobs: os: ubuntu pagefile_size: 0 resize_partitions: False - runs_on: ['ubuntu-latest'] + runs_on: ['ubuntu-24.04-arm'] tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_h618840af - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10 STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True build_workspace_dir: build_artifacts @@ -98,11 +98,11 @@ jobs: os: ubuntu pagefile_size: 0 resize_partitions: False - runs_on: ['ubuntu-latest'] + runs_on: ['ubuntu-24.04-arm'] tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_hbbb47f33 - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10 STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True build_workspace_dir: build_artifacts @@ -111,11 +111,11 @@ jobs: os: ubuntu pagefile_size: 0 resize_partitions: False - runs_on: ['ubuntu-latest'] + runs_on: ['ubuntu-24.04-arm'] tools_install_dir: ~/miniforge3 - CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_ha31997ea - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10 + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10 STORE_BUILD_ARTIFACTS: True UPLOAD_PACKAGES: True build_workspace_dir: build_artifacts @@ -124,7 +124,7 @@ jobs: os: ubuntu pagefile_size: 0 resize_partitions: False - runs_on: ['ubuntu-latest'] + runs_on: ['ubuntu-24.04-arm'] tools_install_dir: ~/miniforge3 - CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno CONFIG_SHORT: linux_ppc64le_build_typedebugchannel_tar_he3888cbf diff --git a/README.md b/README.md index 845d26cdc..b2d758722 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,34 @@ Current build status variant
osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno + + variant + +
osx_arm64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes + + variant + +
osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno + + variant + +
osx_arm64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes + + variant + +
win_64_freethreadingno @@ -131,14 +159,14 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge/label/python_dev_debug` channel can be achieved by adding `conda-forge/label/python_dev_debug` to your channels with: +Installing `python` from the `conda-forge/label/python_dev` channel can be achieved by adding `conda-forge/label/python_dev` to your channels with: ``` -conda config --add channels conda-forge/label/python_dev_debug +conda config --add channels conda-forge/label/python_dev conda config --set channel_priority strict ``` -Once the `conda-forge/label/python_dev_debug` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: +Once the `conda-forge/label/python_dev` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: ``` conda install cpython libpython libpython-static python python-freethreading python-gil python-jit @@ -153,26 +181,26 @@ mamba install cpython libpython libpython-static python python-freethreading pyt It is possible to list all of the versions of `cpython` available on your platform with `conda`: ``` -conda search cpython --channel conda-forge/label/python_dev_debug +conda search cpython --channel conda-forge/label/python_dev ``` or with `mamba`: ``` -mamba search cpython --channel conda-forge/label/python_dev_debug +mamba search cpython --channel conda-forge/label/python_dev ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search cpython --channel conda-forge/label/python_dev_debug +mamba repoquery search cpython --channel conda-forge/label/python_dev # List packages depending on `cpython`: -mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev_debug +mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev # List dependencies of `cpython`: -mamba repoquery depends cpython --channel conda-forge/label/python_dev_debug +mamba repoquery depends cpython --channel conda-forge/label/python_dev ``` From 7f6199c813dc577156e4b853281f8c5f1dbbb46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 13:33:42 +0200 Subject: [PATCH 41/57] Readd lost `%TCLTK_MSBUILD_PROPS%` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index ea19a92a9..6cb6434a5 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -96,14 +96,14 @@ if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( REM No PGO. No externals, i.e. remove building extension modules REM we don't need. set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library - call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% + call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% if errorlevel 1 exit 1 ) endlocal :: Twice because: :: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% if errorlevel 1 exit 1 cd .. From 11096e79c34d595cdd832e8bf9a2c730b8a89ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 13:34:37 +0200 Subject: [PATCH 42/57] Fix accidental path revert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index 6cb6434a5..26363f154 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -226,7 +226,7 @@ if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( set "PYTHON=%PREFIX%\python.exe" ) :: bytecode compile the standard library -%PYTHON% -Wi %PREFIX%\Lib\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib +%PYTHON% -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib if errorlevel 1 exit 1 :: Ensure that scripts are generated From cc69128b696d5bb69bdcaff9adb95b496cf9af94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 14:34:39 +0200 Subject: [PATCH 43/57] Fix .pyc compile command on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index 26363f154..6a38c5786 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -226,7 +226,7 @@ if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( set "PYTHON=%PREFIX%\python.exe" ) :: bytecode compile the standard library -%PYTHON% -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib +%PYTHON% -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\lib\python if errorlevel 1 exit 1 :: Ensure that scripts are generated From c4e7ec5beeb37a15c56ff4b587d07c6396fde942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Jul 2026 18:17:51 +0200 Subject: [PATCH 44/57] Restore cross-dependency on libxcrypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accidentally dropped in 923b423aaaea2d2f03bcda17eed5219d0bfc8928. Signed-off-by: Michał Górny --- recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index e23c7f4d5..3753bf5f5 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -175,6 +175,7 @@ outputs: - ncurses # [unix and build_platform != target_platform] - libffi # [build_platform != target_platform] - libuuid # [linux and build_platform != target_platform] + - libxcrypt # [linux and build_platform != target_platform] - libmpdec-devel # [build_platform != target_platform] - expat # [build_platform != target_platform] host: From 6badc6556c48f228200e597fe10d25ee51481cc3 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 28 Jul 2026 22:53:12 -0700 Subject: [PATCH 45/57] Disable PGO for now --- recipe/build_base.bat | 513 +++++++++++++++++++++--------------------- 1 file changed, 258 insertions(+), 255 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index 6a38c5786..f764a0879 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -1,256 +1,259 @@ -setlocal EnableDelayedExpansion -echo on - -:: Avoids fetching nuget.exe from the internet. -set PYTHON=%CONDA_PYTHON_EXE% - -:: Compile python, extensions and external libraries -if "%target_platform%"=="win-64" ( - set HOST_PLATFORM=x64 - set HOST_DIR=amd64 -) -if "%target_platform%"=="win-32" ( - set HOST_PLATFORM=Win32 - set HOST_DIR=win32 -) -if "%target_platform%"=="win-arm64" ( - set HOST_PLATFORM=ARM64 - set HOST_DIR=arm64 -) - -if "%build_platform%"=="win-64" ( - set BUILD_PLATFORM=x64 - set BUILD_DIR=amd64 -) -if "%build_platform%"=="win-32" ( - set BUILD_PLATFORM=Win32 - set BUILD_DIR=win32 -) -if "%build_platform%"=="win-arm64" ( - set BUILD_PLATFORM=ARM64 - set BUILD_DIR=arm64 -) - -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - set "VERNODOTS=%%i%%j" -) - -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - set "VER=%%i.%%j" -) - -:: Make sure the "python" value in conda_build_config.yaml is up to date. -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - if NOT "%PY_VER%"=="%%i.%%j" exit 1 -) - -for /f "usebackq delims=" %%i in (`conda list -p %PREFIX% sqlite --no-show-channel-urls --json ^| findstr "version"`) do set SQLITE3_VERSION_LINE=%%i -for /f "tokens=2 delims==/ " %%i IN ('echo %SQLITE3_VERSION_LINE%') do (set SQLITE3_VERSION=%%~i) -echo SQLITE3_VERSION detected as %SQLITE3_VERSION% - -if "%PY_INTERP_DEBUG%"=="yes" ( - set CONFIG=-d - set _D=_d -) else ( - set CONFIG= - set _D= -) - -set PGO=--pgo -if "%DEBUG_C%"=="yes" ( - set PGO= -) -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - set PGO= -) - -if "%PY_FREETHREADING%" == "yes" ( - set "FREETHREADING=--disable-gil" - set "THREAD=t" - set "EXE_T=%VER%t" - :: Free-threaded MSBuild output goes to PCbuild\amd64t\ (or win32t\), not amd64\. - :: Upstream python.props sets BuildPath=BuildPath64t when DisableGil=true; all - :: exes, .pyd, and .lib artifacts land there. HOST_DIR below is used to - :: stage those files into %PREFIX% — leaving it at amd64 makes xcopy *.pyd fail - :: with "File not found" even though the compile itself succeeded. - set HOST_DIR=%HOST_DIR%t - set BUILD_DIR=%BUILD_DIR%t -) else ( - set "FREETHREADING=--experimental-jit-off" - set "THREAD=" - set "EXE_T=" -) - -:: TODO: remove once tk 9 is available on main -:: Pin Tcl/Tk from the `tk` variant in conda_build_config.yaml (single source of -:: truth, shared with build_base.sh). Upstream 3.15 tcltk.props defaults -:: TclVersion to 9.0.3.0, but pkgs/main only ships tk 8.6; MSBuild derives the -:: lib names (tcl86t.lib/tk86t.lib) from the major.minor of these props. -set TCLTK_MSBUILD_PROPS="/p:TclVersion=%tk%" "/p:TkVersion=%tk%" - -cd PCbuild - -setlocal EnableDelayedExpansion -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - REM build for the build platform. LIBRARY_PREFIX is used by the patches - REM No PGO. No externals, i.e. remove building extension modules - REM we don't need. - set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library - call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% - if errorlevel 1 exit 1 -) -endlocal -:: Twice because: -:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% -if errorlevel 1 exit 1 -cd .. - -:: Populate the root package directory -for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( - if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% - ) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" - ) -) - -for %%x in (python%THREAD%%_D%.pdb python%VERNODOTS%%THREAD%%_D%.pdb pythonw%THREAD%%_D%.pdb) do ( - if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% - ) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" - ) -) - -@echo on - -mkdir %PREFIX%\lib\python -copy %SRC_DIR%\LICENSE %PREFIX%\lib\python\LICENSE_PYTHON.txt -if errorlevel 1 exit 1 - -:: Populate the DLLs directory -mkdir %PREFIX%\lib\python\lib-dynload -xcopy /s /y %SRC_DIR%\PCBuild\%HOST_DIR%\*.pyd %PREFIX%\lib\python\lib-dynload -if errorlevel 1 exit 1 - -copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\lib\python\lib-dynload -if errorlevel 1 exit 1 -copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\lib\python\lib-dynload -if errorlevel 1 exit 1 - -mkdir %PREFIX%\lib\python\Tools -xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\lib\python\Tools\scripts -if errorlevel 1 exit 1 - -del %PREFIX%\lib\python\Tools\scripts\README -if errorlevel 1 exit 1 -del %PREFIX%\lib\python\Tools\scripts\idle3 -if errorlevel 1 exit 1 - -move /y %PREFIX%\lib\python\Tools\scripts\pydoc3 %PREFIX%\lib\python\Tools\scripts\pydoc3.py -if errorlevel 1 exit 1 - -:: Populate the include directory -mkdir %PREFIX%\include\python -xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\python\ -if errorlevel 1 exit 1 - -:: Copy generated pyconfig.h -copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\python\ -if errorlevel 1 exit 1 - -:: Populate the Scripts directory -if not exist %SCRIPTS% (mkdir %SCRIPTS%) -if errorlevel 1 exit 1 - -for %%x in (idle pydoc) do ( - copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x - if errorlevel 1 exit 1 -) - -:: Populate the libs directory -dir %SRC_DIR%\PCbuild\%HOST_DIR%\ -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\lib\ -if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib %PREFIX%\lib\ -if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib %PREFIX%\lib\ -if errorlevel 1 exit 1 - - -:: Populate the lib directory -del %PREFIX%\lib\libpython*.a -xcopy /s /y %SRC_DIR%\lib %PREFIX%\lib\python\ -if errorlevel 1 exit 1 - +setlocal EnableDelayedExpansion +echo on + +:: Avoids fetching nuget.exe from the internet. +set PYTHON=%CONDA_PYTHON_EXE% + +:: Compile python, extensions and external libraries +if "%target_platform%"=="win-64" ( + set HOST_PLATFORM=x64 + set HOST_DIR=amd64 +) +if "%target_platform%"=="win-32" ( + set HOST_PLATFORM=Win32 + set HOST_DIR=win32 +) +if "%target_platform%"=="win-arm64" ( + set HOST_PLATFORM=ARM64 + set HOST_DIR=arm64 +) + +if "%build_platform%"=="win-64" ( + set BUILD_PLATFORM=x64 + set BUILD_DIR=amd64 +) +if "%build_platform%"=="win-32" ( + set BUILD_PLATFORM=Win32 + set BUILD_DIR=win32 +) +if "%build_platform%"=="win-arm64" ( + set BUILD_PLATFORM=ARM64 + set BUILD_DIR=arm64 +) + +for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( + set "VERNODOTS=%%i%%j" +) + +for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( + set "VER=%%i.%%j" +) + +:: Make sure the "python" value in conda_build_config.yaml is up to date. +for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( + if NOT "%PY_VER%"=="%%i.%%j" exit 1 +) + +for /f "usebackq delims=" %%i in (`conda list -p %PREFIX% sqlite --no-show-channel-urls --json ^| findstr "version"`) do set SQLITE3_VERSION_LINE=%%i +for /f "tokens=2 delims==/ " %%i IN ('echo %SQLITE3_VERSION_LINE%') do (set SQLITE3_VERSION=%%~i) +echo SQLITE3_VERSION detected as %SQLITE3_VERSION% + +if "%PY_INTERP_DEBUG%"=="yes" ( + set CONFIG=-d + set _D=_d +) else ( + set CONFIG= + set _D= +) + +REM PGO is disabled for the 3.15 build. It was enabled for 3.14 job, but it doesn't +REM work as intended and there are lots of warnings generated of the form +REM warning PG0188: No .PGC files matching %SRC_DIR%\PCbuild\amd64\_tkinter!*.pgc' were found +set PGO= +if "%DEBUG_C%"=="yes" ( + set PGO= +) +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + set PGO= +) + +if "%PY_FREETHREADING%" == "yes" ( + set "FREETHREADING=--disable-gil" + set "THREAD=t" + set "EXE_T=%VER%t" + :: Free-threaded MSBuild output goes to PCbuild\amd64t\ (or win32t\), not amd64\. + :: Upstream python.props sets BuildPath=BuildPath64t when DisableGil=true; all + :: exes, .pyd, and .lib artifacts land there. HOST_DIR below is used to + :: stage those files into %PREFIX% — leaving it at amd64 makes xcopy *.pyd fail + :: with "File not found" even though the compile itself succeeded. + set HOST_DIR=%HOST_DIR%t + set BUILD_DIR=%BUILD_DIR%t +) else ( + set "FREETHREADING=--experimental-jit-off" + set "THREAD=" + set "EXE_T=" +) + +:: TODO: remove once tk 9 is available on main +:: Pin Tcl/Tk from the `tk` variant in conda_build_config.yaml (single source of +:: truth, shared with build_base.sh). Upstream 3.15 tcltk.props defaults +:: TclVersion to 9.0.3.0, but pkgs/main only ships tk 8.6; MSBuild derives the +:: lib names (tcl86t.lib/tk86t.lib) from the major.minor of these props. +set TCLTK_MSBUILD_PROPS="/p:TclVersion=%tk%" "/p:TkVersion=%tk%" + +cd PCbuild + +setlocal EnableDelayedExpansion +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + REM build for the build platform. LIBRARY_PREFIX is used by the patches + REM No PGO. No externals, i.e. remove building extension modules + REM we don't need. + set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library + call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% + if errorlevel 1 exit 1 +) +endlocal +:: Twice because: +:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% +if errorlevel 1 exit 1 +cd .. + +:: Populate the root package directory +for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( + if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% + ) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" + ) +) + +for %%x in (python%THREAD%%_D%.pdb python%VERNODOTS%%THREAD%%_D%.pdb pythonw%THREAD%%_D%.pdb) do ( + if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% + ) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" + ) +) + +@echo on + +mkdir %PREFIX%\lib\python +copy %SRC_DIR%\LICENSE %PREFIX%\lib\python\LICENSE_PYTHON.txt +if errorlevel 1 exit 1 + +:: Populate the DLLs directory +mkdir %PREFIX%\lib\python\lib-dynload +xcopy /s /y %SRC_DIR%\PCBuild\%HOST_DIR%\*.pyd %PREFIX%\lib\python\lib-dynload +if errorlevel 1 exit 1 + +copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\lib\python\lib-dynload +if errorlevel 1 exit 1 +copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\lib\python\lib-dynload +if errorlevel 1 exit 1 + +mkdir %PREFIX%\lib\python\Tools +xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\lib\python\Tools\scripts +if errorlevel 1 exit 1 + +del %PREFIX%\lib\python\Tools\scripts\README +if errorlevel 1 exit 1 +del %PREFIX%\lib\python\Tools\scripts\idle3 +if errorlevel 1 exit 1 + +move /y %PREFIX%\lib\python\Tools\scripts\pydoc3 %PREFIX%\lib\python\Tools\scripts\pydoc3.py +if errorlevel 1 exit 1 + +:: Populate the include directory +mkdir %PREFIX%\include\python +xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\python\ +if errorlevel 1 exit 1 + +:: Copy generated pyconfig.h +copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\python\ +if errorlevel 1 exit 1 + +:: Populate the Scripts directory +if not exist %SCRIPTS% (mkdir %SCRIPTS%) +if errorlevel 1 exit 1 + +for %%x in (idle pydoc) do ( + copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x + if errorlevel 1 exit 1 +) + +:: Populate the libs directory +dir %SRC_DIR%\PCbuild\%HOST_DIR%\ +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\lib\ +if errorlevel 1 exit 1 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib %PREFIX%\lib\ +if errorlevel 1 exit 1 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib %PREFIX%\lib\ +if errorlevel 1 exit 1 + + +:: Populate the lib directory +del %PREFIX%\lib\libpython*.a +xcopy /s /y %SRC_DIR%\lib %PREFIX%\lib\python\ +if errorlevel 1 exit 1 + :: Copy venv[w]launcher scripts to venv\scripts\nt -:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/lib/python/venv/__init__.py#L334-L376 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe ( - @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\python.exe - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe -) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe does not exist" -) - -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe ( - @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\pythonw.exe - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe -) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe does not exist" -) - -:: Remove test data to save space. -:: Though keep `support` as some things use that. -mkdir %PREFIX%\lib\python\test_keep -if errorlevel 1 exit 1 -move %PREFIX%\lib\python\test\__init__.py %PREFIX%\lib\python\test_keep\ -if errorlevel 1 exit 1 -move %PREFIX%\lib\python\test\support %PREFIX%\lib\python\test_keep\ -if errorlevel 1 exit 1 -rd /s /q %PREFIX%\lib\python\test -if errorlevel 1 exit 1 -move %PREFIX%\lib\python\test_keep %PREFIX%\lib\python\test -if errorlevel 1 exit 1 - -:: We need our Python to be found! -if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe -if "%EXE_T%" neq "" copy %PREFIX%\python%EXE_T%.exe %PREFIX%\python.exe - -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - set "PYTHON=%SRC_DIR%\PCbuild\%BUILD_DIR%\\python%EXE_T%%_D%.exe" -) else ( - set "PYTHON=%PREFIX%\python.exe" -) -:: bytecode compile the standard library -%PYTHON% -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\lib\python -if errorlevel 1 exit 1 - -:: Ensure that scripts are generated -:: https://github.com/conda-forge/python-feedstock/issues/384 -%PYTHON% %RECIPE_DIR%\fix_staged_scripts.py -if errorlevel 1 exit 1 - -if NOT "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - REM Some quick tests for common failures - echo "Testing print() does not print: Hello" - %PREFIX%\python.exe -c "print()" 2>&1 | findstr /r /c:"Hello" - if %errorlevel% neq 1 exit /b 1 - - echo "Testing print('Hello') prints: Hello" - %PREFIX%\python.exe -c "print('Hello')" 2>&1 | findstr /r /c:"Hello" - if %errorlevel% neq 0 exit /b 1 - - echo "Testing import of os (no DLL needed) does not print: The specified module could not be found" - %PREFIX%\python.exe -v -c "import os" 2>&1 - %PREFIX%\python.exe -v -c "import os" 2>&1 | findstr /r /c:"The specified module could not be found" - if %errorlevel% neq 1 exit /b 1 - - echo "Testing import of _sqlite3 (DLL located via PATH needed) does not print: The specified module could not be found" - %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 - %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 | findstr /r /c:"The specified module could not be found" - if %errorlevel% neq 1 exit /b 1 -) +:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/lib/python/venv/__init__.py#L334-L376 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe ( + @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\python.exe + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe +) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe does not exist" +) + +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe ( + @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\pythonw.exe + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\lib\python\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe +) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe does not exist" +) + +:: Remove test data to save space. +:: Though keep `support` as some things use that. +mkdir %PREFIX%\lib\python\test_keep +if errorlevel 1 exit 1 +move %PREFIX%\lib\python\test\__init__.py %PREFIX%\lib\python\test_keep\ +if errorlevel 1 exit 1 +move %PREFIX%\lib\python\test\support %PREFIX%\lib\python\test_keep\ +if errorlevel 1 exit 1 +rd /s /q %PREFIX%\lib\python\test +if errorlevel 1 exit 1 +move %PREFIX%\lib\python\test_keep %PREFIX%\lib\python\test +if errorlevel 1 exit 1 + +:: We need our Python to be found! +if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe +if "%EXE_T%" neq "" copy %PREFIX%\python%EXE_T%.exe %PREFIX%\python.exe + +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + set "PYTHON=%SRC_DIR%\PCbuild\%BUILD_DIR%\\python%EXE_T%%_D%.exe" +) else ( + set "PYTHON=%PREFIX%\python.exe" +) +:: bytecode compile the standard library +%PYTHON% -Wi %PREFIX%\lib\python\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\lib\python +if errorlevel 1 exit 1 + +:: Ensure that scripts are generated +:: https://github.com/conda-forge/python-feedstock/issues/384 +%PYTHON% %RECIPE_DIR%\fix_staged_scripts.py +if errorlevel 1 exit 1 + +if NOT "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + REM Some quick tests for common failures + echo "Testing print() does not print: Hello" + %PREFIX%\python.exe -c "print()" 2>&1 | findstr /r /c:"Hello" + if %errorlevel% neq 1 exit /b 1 + + echo "Testing print('Hello') prints: Hello" + %PREFIX%\python.exe -c "print('Hello')" 2>&1 | findstr /r /c:"Hello" + if %errorlevel% neq 0 exit /b 1 + + echo "Testing import of os (no DLL needed) does not print: The specified module could not be found" + %PREFIX%\python.exe -v -c "import os" 2>&1 + %PREFIX%\python.exe -v -c "import os" 2>&1 | findstr /r /c:"The specified module could not be found" + if %errorlevel% neq 1 exit /b 1 + + echo "Testing import of _sqlite3 (DLL located via PATH needed) does not print: The specified module could not be found" + %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 + %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 | findstr /r /c:"The specified module could not be found" + if %errorlevel% neq 1 exit /b 1 +) From da301bee74d01c5abd85d6a0bd98d4c2b687fbe0 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 29 Jul 2026 08:06:29 -0700 Subject: [PATCH 46/57] build externals --- recipe/build_base.bat | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipe/build_base.bat b/recipe/build_base.bat index f764a0879..55e71c10b 100644 --- a/recipe/build_base.bat +++ b/recipe/build_base.bat @@ -96,10 +96,9 @@ cd PCbuild setlocal EnableDelayedExpansion if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( REM build for the build platform. LIBRARY_PREFIX is used by the patches - REM No PGO. No externals, i.e. remove building extension modules - REM we don't need. + REM No PGO. set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library - call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% + call build.bat %CONFIG% %FREETHREADING% -m -e -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% if errorlevel 1 exit 1 ) endlocal From e7bed606f4402c8d9b9616f4984c77b81cf0e2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 13 Aug 2026 17:22:39 +0200 Subject: [PATCH 47/57] Bump to 3.15.0rc1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 3753bf5f5..31289cbff 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,10 +1,10 @@ {% set version = "3.15.0" %} -{% set dev = "b4" %} +{% set dev = "rc1" %} {% set dev_ = "" %} {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 1 %} +{% set build_number = 0 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} @@ -46,7 +46,7 @@ package: source: - url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}{{ dev }}.tar.xz # sha256 from: https://www.python.org/downloads/release/python-{{ ver3nd }}{{ dev }}/ - sha256: 93efb9c88d7b6633368e7f7b8f8db6e98988f7f761c09b77849447262841ce3a + sha256: f84dad680ab2147417d2739355c2678f0f9acffe4ae8ef77895de1454b384b07 patches: - patches/0001-Win32-Change-FD_SETSIZE-from-512-to-2048.patch - patches/0002-Win32-Do-not-download-externals.patch From 0902f2e3debb3e00c199d813c8dff62429d912bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 13 Aug 2026 17:23:24 +0200 Subject: [PATCH 48/57] MNT: Re-rendered with conda-smithy 2026.8.9 and conda-forge-pinning 2026.08.13.08.26.46 Other tools: - conda-build 26.7.0 - rattler-build 0.72.2 - rattler-build-conda-compat 1.4.19 --- .azure-pipelines/azure-pipelines-osx.yml | 0 .azure-pipelines/azure-pipelines-win.yml | 101 ------------------ ...forge_python_dev_debugfreethreadingno.yaml | 4 +- ...orge_python_dev_debugfreethreadingyes.yaml | 4 +- ...conda-forge_python_devfreethreadingno.yaml | 4 +- ...onda-forge_python_devfreethreadingyes.yaml | 4 +- ...forge_python_dev_debugfreethreadingno.yaml | 4 +- ...orge_python_dev_debugfreethreadingyes.yaml | 4 +- ...conda-forge_python_devfreethreadingno.yaml | 4 +- ...onda-forge_python_devfreethreadingyes.yaml | 4 +- ...forge_python_dev_debugfreethreadingno.yaml | 4 +- ...orge_python_dev_debugfreethreadingyes.yaml | 4 +- ...conda-forge_python_devfreethreadingno.yaml | 4 +- ...onda-forge_python_devfreethreadingyes.yaml | 4 +- .github/workflows/conda-build.yml | 59 +++++++++- .scripts/build_steps.sh | 4 +- .scripts/logging_utils.sh | 0 .scripts/run_osx_build.sh | 4 +- .scripts/run_win_build.bat | 6 +- README.md | 82 +++++++++----- azure-pipelines.yml | 3 +- 21 files changed, 146 insertions(+), 161 deletions(-) mode change 100755 => 100644 .azure-pipelines/azure-pipelines-osx.yml delete mode 100755 .azure-pipelines/azure-pipelines-win.yml mode change 100644 => 100755 .scripts/logging_utils.sh diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml old mode 100755 new mode 100644 diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml deleted file mode 100755 index 9c460bb69..000000000 --- a/.azure-pipelines/azure-pipelines-win.yml +++ /dev/null @@ -1,101 +0,0 @@ -# This file was generated automatically from conda-smithy. To update this configuration, -# update the conda-forge.yml and/or the recipe/meta.yaml. -# -*- mode: yaml -*- - -jobs: -- job: win - pool: - vmImage: windows-2022 - strategy: - matrix: - win_64_freethreadingno: - CONFIG: win_64_freethreadingno - UPLOAD_PACKAGES: 'True' - build_workspace_dir: D:\\bld\\ - free_disk_space: skip - pagefile_size: 0 - resize_partitions: false - store_build_artifacts: true - tools_install_dir: D:\Miniforge - CONFIG_SHORT: win_64_freethreadingno - win_64_freethreadingyes: - CONFIG: win_64_freethreadingyes - UPLOAD_PACKAGES: 'True' - build_workspace_dir: D:\\bld\\ - free_disk_space: skip - pagefile_size: 0 - resize_partitions: false - store_build_artifacts: true - tools_install_dir: D:\Miniforge - CONFIG_SHORT: win_64_freethreadingyes - win_arm64_freethreadingno: - CONFIG: win_arm64_freethreadingno - UPLOAD_PACKAGES: 'True' - build_workspace_dir: C:\\bld\\ - free_disk_space: skip - pagefile_size: 0 - resize_partitions: false - store_build_artifacts: true - tools_install_dir: C:\Miniforge - CONFIG_SHORT: win_arm64_freethreadingno - win_arm64_freethreadingyes: - CONFIG: win_arm64_freethreadingyes - UPLOAD_PACKAGES: 'True' - build_workspace_dir: C:\\bld\\ - free_disk_space: skip - pagefile_size: 0 - resize_partitions: false - store_build_artifacts: true - tools_install_dir: C:\Miniforge - CONFIG_SHORT: win_arm64_freethreadingyes - timeoutInMinutes: 360 - variables: - UPLOAD_TEMP: D:\\tmp - - steps: - - script: | - call ".scripts\run_win_build.bat" - displayName: Run Windows build - env: - CI: azure - CONFIG: $(CONFIG) - CONDA_BLD_PATH: $(build_workspace_dir) - MINIFORGE_HOME: $(tools_install_dir) - PYTHONUNBUFFERED: 1 - UPLOAD_PACKAGES: $(UPLOAD_PACKAGES) - UPLOAD_TEMP: $(UPLOAD_TEMP) - flow_run_id: azure_$(Build.BuildNumber).$(System.JobAttempt) - remote_url: $(Build.Repository.Uri) - sha: $(Build.SourceVersion) - BINSTAR_TOKEN: $(BINSTAR_TOKEN) - FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) - STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) - - - script: | - set ARTIFACT_STAGING_DIR=$(Build.ArtifactStagingDirectory - set BLD_ARTIFACT_PREFIX=conda_artifacts - set CI=azure - set CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt) - set CONDA_BLD_PATH=$(build_workspace_dir) - set FEEDSTOCK_NAME=$(build.Repository.Name) - set MINIFORGE_HOME=$(tools_install_dir) - if "%AGENT_JOBSTATUS%" == "Failed" ( - set ENV_ARTIFACT_PREFIX=conda_envs - ) - call ".scripts\create_conda_build_artifacts.bat" - displayName: Prepare conda build artifacts - condition: and(succeededOrFailed(), eq(variables.store_build_artifacts, true)) - - - task: PublishPipelineArtifact@1 - displayName: Store conda build artifacts - condition: not(eq(variables.BLD_ARTIFACT_PATH, '')) - inputs: - targetPath: $(BLD_ARTIFACT_PATH) - artifactName: $(BLD_ARTIFACT_NAME) - - - task: PublishPipelineArtifact@1 - displayName: Store conda build environment artifacts - condition: not(eq(variables.ENV_ARTIFACT_PATH, '')) - inputs: - targetPath: $(ENV_ARTIFACT_PATH) - artifactName: $(ENV_ARTIFACT_NAME) diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 52322e5f7..514e04fd0 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 23281b90c..aaf271fdc 100644 --- a/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 02782d80a..a1e1bf32c 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index fab317978..c2c802945 100644 --- a/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 2bb7c3be6..277021b09 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma10 expat: diff --git a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 9cc42a3f9..d3509ef59 100644 --- a/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma10 expat: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 70d5afa7b..671123569 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma10 expat: diff --git a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 807862b58..22a5f2603 100644 --- a/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_aarch64_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-aarch64:alma10 expat: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml index 5ce67fb9d..6194b695f 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml index 8f1e10f53..7fb65f4c7 100644 --- a/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_dev_debugfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml index 190ad8665..2eba198ba 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingno.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml index 3009c402e..819717958 100644 --- a/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml +++ b/.ci_support/linux_ppc64le_build_typereleasechannel_targetsconda-forge_python_devfreethreadingyes.yaml @@ -5,7 +5,7 @@ bzip2: c_compiler: - gcc c_compiler_version: -- '14' +- '15' c_stdlib: - sysroot c_stdlib_version: @@ -17,7 +17,7 @@ channel_targets: cxx_compiler: - gxx cxx_compiler_version: -- '14' +- '15' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma10 expat: diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index b0d24fc08..fca1a1a00 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -178,10 +178,62 @@ jobs: resize_partitions: False runs_on: ['ubuntu-latest'] tools_install_dir: ~/miniforge3 + - CONFIG: win_64_freethreadingno + CONFIG_SHORT: win_64_freethreadingno + STORE_BUILD_ARTIFACTS: True + UPLOAD_PACKAGES: True + build_platform: win-64 + build_workspace_dir: D:\\bld\\ + docker_run_args: + free_disk_space: skip + os: windows + pagefile_size: 0 + resize_partitions: False + runs_on: ['windows-2022'] + tools_install_dir: D:\Miniforge + - CONFIG: win_64_freethreadingyes + CONFIG_SHORT: win_64_freethreadingyes + STORE_BUILD_ARTIFACTS: True + UPLOAD_PACKAGES: True + build_platform: win-64 + build_workspace_dir: D:\\bld\\ + docker_run_args: + free_disk_space: skip + os: windows + pagefile_size: 0 + resize_partitions: False + runs_on: ['windows-2022'] + tools_install_dir: D:\Miniforge + - CONFIG: win_arm64_freethreadingno + CONFIG_SHORT: win_arm64_freethreadingno + STORE_BUILD_ARTIFACTS: True + UPLOAD_PACKAGES: True + build_platform: win-64 + build_workspace_dir: D:\\bld\\ + docker_run_args: + free_disk_space: skip + os: windows + pagefile_size: 0 + resize_partitions: False + runs_on: ['windows-2022'] + tools_install_dir: D:\Miniforge + - CONFIG: win_arm64_freethreadingyes + CONFIG_SHORT: win_arm64_freethreadingyes + STORE_BUILD_ARTIFACTS: True + UPLOAD_PACKAGES: True + build_platform: win-64 + build_workspace_dir: D:\\bld\\ + docker_run_args: + free_disk_space: skip + os: windows + pagefile_size: 0 + resize_partitions: False + runs_on: ['windows-2022'] + tools_install_dir: D:\Miniforge steps: - name: Checkout code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Configure binfmt_misc if: matrix.os == 'ubuntu' shell: bash @@ -210,7 +262,7 @@ jobs: run: | export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}" export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" - export GIT_BRANCH="$(basename $GITHUB_REF)" + export GIT_BRANCH="${GITHUB_REF_NAME}" export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}" export flow_run_id="github_$GITHUB_RUN_ID" export remote_url="https://github.com/$GITHUB_REPOSITORY" @@ -240,7 +292,7 @@ jobs: run: | export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}" export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" - export GIT_BRANCH="$(basename $GITHUB_REF)" + export GIT_BRANCH="${GITHUB_REF_NAME}" export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}" export flow_run_id="github_$GITHUB_RUN_ID" export remote_url="https://github.com/$GITHUB_REPOSITORY" @@ -262,6 +314,7 @@ jobs: set "sha=%GITHUB_SHA%" call ".scripts\run_win_build.bat" env: + BUILD_PLATFORM: ${{ matrix.build_platform }} CI: github_actions CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }} CONFIG: ${{ matrix.CONFIG }} diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 5c97f7442..484acddad 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -67,7 +67,7 @@ if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then # - --output-id vs. --output-name # - --clobber-file vs. none # - none vs. --target-platform - conda debug \ + CONDA_SUBDIR="${BUILD_PLATFORM}" conda debug \ "${RECIPE_ROOT}" \ -m "${CI_SUPPORT}/${CONFIG}.yaml" \ ${EXTRA_CB_OPTIONS:-} \ @@ -83,7 +83,7 @@ else # - --clobber-file vs. none # - none vs. --target-platform # - --extra-meta a=b c=d vs. --extra-meta a=b --extra-meta c=d - conda-build \ + CONDA_SUBDIR="${BUILD_PLATFORM}" conda-build \ "${RECIPE_ROOT}" \ -m "${CI_SUPPORT}/${CONFIG}.yaml" \ ${EXTRA_CB_OPTIONS:-} \ diff --git a/.scripts/logging_utils.sh b/.scripts/logging_utils.sh old mode 100644 new mode 100755 diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index b0eda55cd..9d7c39125 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -100,7 +100,7 @@ if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then if [[ "x${BUILD_OUTPUT_ID:-}" != "x" ]]; then EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --output-id ${BUILD_OUTPUT_ID}" fi - conda debug ./recipe -m ./.ci_support/${CONFIG}.yaml \ + CONDA_SUBDIR="${BUILD_PLATFORM}" conda debug ./recipe -m ./.ci_support/${CONFIG}.yaml \ ${EXTRA_CB_OPTIONS:-} \ --clobber-file ./.ci_support/clobber_${CONFIG}.yaml @@ -112,7 +112,7 @@ else EXTRA_CB_OPTIONS="${EXTRA_CB_OPTIONS:-} --no-test" fi - conda-build ./recipe -m ./.ci_support/${CONFIG}.yaml \ + CONDA_SUBDIR="${BUILD_PLATFORM}" conda-build ./recipe -m ./.ci_support/${CONFIG}.yaml \ --suppress-variables ${EXTRA_CB_OPTIONS:-} \ --clobber-file ./.ci_support/clobber_${CONFIG}.yaml \ --extra-meta flow_run_id="$flow_run_id" remote_url="$remote_url" sha="$sha" diff --git a/.scripts/run_win_build.bat b/.scripts/run_win_build.bat index c07d98e61..06f61b83b 100755 --- a/.scripts/run_win_build.bat +++ b/.scripts/run_win_build.bat @@ -76,8 +76,12 @@ call :end_group :: Build the recipe echo Building recipe +set "_OLD_CONDA_SUBDIR=%CONDA_SUBDIR%" +set "CONDA_SUBDIR=%BUILD_PLATFORM%" conda-build.exe "recipe" -m .ci_support\%CONFIG%.yaml --suppress-variables %EXTRA_CB_OPTIONS% if !errorlevel! neq 0 exit /b !errorlevel! +set "_OLD_CONDA_SUBDIR=" +set "CONDA_SUBDIR=%_OLD_CONDA_SUBDIR%" call :start_group "Inspecting artifacts" :: inspect_artifacts was only added in conda-forge-ci-setup 4.9.4 @@ -87,7 +91,7 @@ call :end_group :: Prepare some environment variables for the upload step if /i "%CI%" == "github_actions" ( set "FEEDSTOCK_NAME=%GITHUB_REPOSITORY:*/=%" - set "GIT_BRANCH=%GITHUB_REF:refs/heads/=%" + set "GIT_BRANCH=%GITHUB_REF_NAME%" if /i "%GITHUB_EVENT_NAME%" == "pull_request" ( set "IS_PR_BUILD=True" ) else ( diff --git a/README.md b/README.md index b2d758722..51746589b 100644 --- a/README.md +++ b/README.md @@ -121,20 +121,6 @@ Current build status variant
win_64_freethreadingno - - variant - -
win_64_freethreadingyes - - variant - -
@@ -159,50 +145,94 @@ Current release info Installing python ================= -Installing `python` from the `conda-forge/label/python_dev` channel can be achieved by adding `conda-forge/label/python_dev` to your channels with: +Installing `python` from the `conda-forge/label/python_dev_debug` channel can be achieved by adding `conda-forge/label/python_dev_debug` to your channels with: ``` -conda config --add channels conda-forge/label/python_dev +conda config --add channels conda-forge/label/python_dev_debug conda config --set channel_priority strict ``` -Once the `conda-forge/label/python_dev` channel has been enabled, `cpython, libpython, libpython-static, python, python-freethreading, python-gil, python-jit` can be installed with `conda`: +How to use +---------- + +
+With conda ``` conda install cpython libpython libpython-static python python-freethreading python-gil python-jit ``` -or with `mamba`: +
+ +
+With mamba ``` mamba install cpython libpython libpython-static python python-freethreading python-gil python-jit ``` -It is possible to list all of the versions of `cpython` available on your platform with `conda`: +
+ +
+With pixi + +``` +# for adding to your local project +pixi add cpython libpython libpython-static python python-freethreading python-gil python-jit +# for installing globally +pixi global install cpython libpython libpython-static python python-freethreading python-gil python-jit +``` + +
+ +Search package versions +----------------------- + +It is possible to list all of the versions of `cpython` available on your platform: + +
+With conda + +``` +conda search cpython --channel conda-forge/label/python_dev_debug +``` + +
+ +
+With mamba ``` -conda search cpython --channel conda-forge/label/python_dev +mamba search cpython --channel conda-forge/label/python_dev_debug ``` -or with `mamba`: +
+ +
+With pixi ``` -mamba search cpython --channel conda-forge/label/python_dev +pixi search cpython --channel conda-forge/label/python_dev_debug ``` -Alternatively, `mamba repoquery` may provide more information: +
+ +
+With mamba repoquery, which may provide more information ``` # Search all versions available on your platform: -mamba repoquery search cpython --channel conda-forge/label/python_dev +mamba repoquery search cpython --channel conda-forge/label/python_dev_debug # List packages depending on `cpython`: -mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev +mamba repoquery whoneeds cpython --channel conda-forge/label/python_dev_debug # List dependencies of `cpython`: -mamba repoquery depends cpython --channel conda-forge/label/python_dev +mamba repoquery depends cpython --channel conda-forge/label/python_dev_debug ``` +
+ About conda-forge ================= diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 03594e446..7e0f633df 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,5 +28,4 @@ stages: condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true')) dependsOn: Check jobs: - - template: ./.azure-pipelines/azure-pipelines-osx.yml - - template: ./.azure-pipelines/azure-pipelines-win.yml \ No newline at end of file + - template: ./.azure-pipelines/azure-pipelines-osx.yml \ No newline at end of file From 52ac09f05ccec7c533d5c8d5efcf4c4a255fefc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 13 Aug 2026 18:33:27 +0200 Subject: [PATCH 49/57] Regenerate `build-details.json` using cross compiled Python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index d7b98f46e..31d59ed33 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -394,10 +394,21 @@ SYSCONFIG=$(find ${_buildd_shared}/${BUILD_DIR} -name "_sysconfigdata*.py" -prin cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ "${_FLAGS_REPLACE[@]}" \ > ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) -BUILD_DETAILS=${_buildd_shared}/${BUILD_DIR}/build-details.json -cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ + +if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then + # build-details.json is incorrect when cross-compiling: + # https://github.com/python/cpython/issues/136267 + # let's use emulation to run the just-built python and generate the correct file + LD_LIBRARY_PATH=build-shared/ build-shared/python Tools/build/generate-build-details.py \ + ${PREFIX}/lib/python${VERABI_NO_DBG}/build-details.json +else + BUILD_DETAILS=${_buildd_shared}/${BUILD_DIR}/build-details.json + cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ +fi + MAKEFILE=$(find ${PREFIX}/lib/python${VERABI_NO_DBG}/ -path "*config-*/Makefile" -print0) cp ${MAKEFILE} /tmp/Makefile-$$ + cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ "${_FLAGS_REPLACE[@]}" \ > ${MAKEFILE} From df33f3ec6fe6595ff685b386eff52f93e28622d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 15 Aug 2026 11:56:31 +0200 Subject: [PATCH 50/57] Add an emulator check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- recipe/build_base.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/recipe/build_base.sh b/recipe/build_base.sh index 31d59ed33..a4552fba5 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -398,9 +398,15 @@ cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then # build-details.json is incorrect when cross-compiling: # https://github.com/python/cpython/issues/136267 - # let's use emulation to run the just-built python and generate the correct file - LD_LIBRARY_PATH=build-shared/ build-shared/python Tools/build/generate-build-details.py \ - ${PREFIX}/lib/python${VERABI_NO_DBG}/build-details.json + if [[ -n ${CROSSCOMPILING_EMULATOR} ]]; then + # let's use emulation to run the just-built python and generate the correct file + LD_LIBRARY_PATH=build-shared/ build-shared/python Tools/build/generate-build-details.py \ + ${PREFIX}/lib/python${VERABI_NO_DBG}/build-details.json + else + echo "Generating build-details.json for cross without an emulator is not" + echo "supported right now." + exit 1 + fi else BUILD_DETAILS=${_buildd_shared}/${BUILD_DIR}/build-details.json cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ From c724d0195103d627955b2d70fac8dbe287614145 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:49:15 +1100 Subject: [PATCH 51/57] Revert "move script-based libpython tests to python output" This reverts commit 4f37d40a615740306cf1830b7883f1402aae60ad. --- recipe/meta.yaml | 27 +++++++++++++++---- .../prefix-replacement/build-and-test.sh | 2 +- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 891b5e104..870227dad 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -265,7 +265,6 @@ outputs: files: - tests/cmake/* - tests/cython/* - - tests/prefix-replacement/* - run_test.py commands: - echo on # [win] @@ -311,11 +310,7 @@ outputs: - if not exist %PREFIX%\\Scripts\\pydoc.exe exit 1 # [win] - if not exist %PREFIX%\\include\\pyconfig.h exit 1 # [win] - pushd tests - - pushd prefix-replacement # [unix] - - bash build-and-test.sh # [unix] - - popd # [unix] - pushd cmake - - cmake -GNinja {{ cmake_test_args }} -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Embed" {{ cmake_debug }} . - cmake -GNinja {{ cmake_test_args }} -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Module" {{ cmake_debug }} . - popd - popd @@ -345,6 +340,20 @@ outputs: - {{ compiler('c') }} - {{ compiler('cxx') }} test: + files: + - tests/cmake/* + - tests/prefix-replacement/* + requires: + - {{ stdlib('c') }} + - {{ compiler('c') }} + # cmake expects a C++ compiler for some reason + - {{ compiler('cxx') }} + # build-and-test.sh needs to find `Python.h`; can't do pin_subpackage + # due to the way conda-build (mis-)populates the package hashes + - python {{ version }} *_{{ PKG_BUILDNUM }}{{ debug }}_{{ abi_tag }} # [unix] + - ripgrep + - cmake + - ninja commands: - VER=${PKG_VERSION%.*} # [not win] - VERABI=${VER} # [not win] @@ -364,6 +373,14 @@ outputs: - if not exist %PREFIX%\python3.dll exit 1 # [win] - if not exist %PREFIX%\python{{ ver2nd }}.dll exit 1 # [win] {% endif %} + - pushd tests + - pushd prefix-replacement # [unix] + - bash build-and-test.sh # [unix] + - popd # [unix] + - pushd cmake + - cmake -GNinja {{ cmake_test_args }} -DPY_VER={{ version }} -DEXTRA_COMPONENTS="Development.Embed" {{ cmake_debug }} . + - popd + - popd - name: libpython-static script: install_static.sh # [unix] diff --git a/recipe/tests/prefix-replacement/build-and-test.sh b/recipe/tests/prefix-replacement/build-and-test.sh index 670d76d63..d710bde75 100644 --- a/recipe/tests/prefix-replacement/build-and-test.sh +++ b/recipe/tests/prefix-replacement/build-and-test.sh @@ -3,7 +3,7 @@ set -ex case ${PKG_NAME} in - python) + libpython) # see bpo44182 for why -L${CONDA_PREFIX}/lib is added ${CC} a.c $(python3-config --cflags) \ $(python3-config --embed --ldflags) \ From a6eb9cb458d8bb7f0f348f5ee092cc745f1c7b31 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:49:36 +1100 Subject: [PATCH 52/57] Revert "actually move python*.dll to libpython on windows" This reverts commit f82dda25115d088134cfeb67ed3ad8c2b7a5c91c. --- recipe/install_base.bat | 2 +- recipe/install_shared.bat | 37 ------------------------------------- recipe/meta.yaml | 8 ++++++-- 3 files changed, 7 insertions(+), 40 deletions(-) delete mode 100644 recipe/install_shared.bat diff --git a/recipe/install_base.bat b/recipe/install_base.bat index 92fdaeb19..2d7485a2d 100644 --- a/recipe/install_base.bat +++ b/recipe/install_base.bat @@ -51,7 +51,7 @@ if "%PY_FREETHREADING%" == "yes" ( ) :: Populate the root package directory -for %%x in (python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( +for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% ) else ( diff --git a/recipe/install_shared.bat b/recipe/install_shared.bat deleted file mode 100644 index ddbb53dde..000000000 --- a/recipe/install_shared.bat +++ /dev/null @@ -1,37 +0,0 @@ -setlocal EnableDelayedExpansion -echo on - -if "%target_platform%"=="win-64" ( - set HOST_DIR=amd64 -) -if "%target_platform%"=="win-32" ( - set HOST_DIR=win32 -) -if "%target_platform%"=="win-arm64" ( - set HOST_DIR=arm64 -) - -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - set "VERNODOTS=%%i%%j" -) - -if "%PY_INTERP_DEBUG%"=="yes" ( - set _D=_d -) else ( - set _D= -) - -if "%PY_FREETHREADING%" == "yes" ( - set "THREAD=t" -) else ( - set "THREAD=" -) - -:: move python*.dll -for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll) do ( - if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% - ) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" - ) -) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 870227dad..5c37392ed 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -324,7 +324,11 @@ outputs: - name: libpython script: install_shared.sh # [unix] - script: install_shared.bat # [win] + files: # [win] + - python3.dll # [win] + - python3t.dll # [win] + - python{{ ver2nd }}.dll # [win] + - python{{ ver2nd }}t.dll # [win] build: number: {{ build_number }} activate_in_script: true @@ -350,7 +354,7 @@ outputs: - {{ compiler('cxx') }} # build-and-test.sh needs to find `Python.h`; can't do pin_subpackage # due to the way conda-build (mis-)populates the package hashes - - python {{ version }} *_{{ PKG_BUILDNUM }}{{ debug }}_{{ abi_tag }} # [unix] + - python {{ version }} *_{{ PKG_BUILDNUM }}{{ debug }}_{{ abi_tag }} - ripgrep - cmake - ninja From f73764551a0fc08c4fcd56f2e2457265f4af504d Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:50:32 +1100 Subject: [PATCH 53/57] Revert "put windows DLLs in `libpython`" This reverts commit 8dcae576a09e1ce7e21ec8f769683d799d4cd626. --- recipe/meta.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 5c37392ed..2d7657e05 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -324,11 +324,6 @@ outputs: - name: libpython script: install_shared.sh # [unix] - files: # [win] - - python3.dll # [win] - - python3t.dll # [win] - - python{{ ver2nd }}.dll # [win] - - python{{ ver2nd }}t.dll # [win] build: number: {{ build_number }} activate_in_script: true @@ -370,13 +365,6 @@ outputs: {% endif %} - test -f ${PREFIX}/lib/libpython${VERABI}${SHLIB_EXT} # [unix] - test -f ${PREFIX}/lib/libpython3${SHLIB_EXT} # [unix and build_type == "release"] - {% if freethreading == "yes" %} - - if not exist %PREFIX%\python3t.dll exit 1 # [win] - - if not exist %PREFIX%\python{{ ver2nd }}t.dll exit 1 # [win] - {% else %} - - if not exist %PREFIX%\python3.dll exit 1 # [win] - - if not exist %PREFIX%\python{{ ver2nd }}.dll exit 1 # [win] - {% endif %} - pushd tests - pushd prefix-replacement # [unix] - bash build-and-test.sh # [unix] From f097e54b01554bc2ef8d12b1f76a926318de6b49 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:50:37 +1100 Subject: [PATCH 54/57] Revert "remove now-unsatisfiable libpython tests on unix" This reverts commit 3b936816869848982d627ba84d27c32d0636a4bf. --- recipe/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 2d7657e05..a83fd9c91 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -292,7 +292,10 @@ outputs: - _CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_linux_gnu python -c "import sysconfig; print(sysconfig.get_config_var('CC'))" # [linux64] # check for unreplaced @ symbols in sysconfig files, excluding e.g. '"$@".lto' - for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @[^@]*@ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.so # [unix] - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.so # [linux] + - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.dylib # [osx] - test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix] {% if freethreading == "yes" %} - if not exist %PREFIX%\\libs\\python3t.lib exit 1 # [win] From f66bdf0e35d83b8f602c4ae31323f9e9b8a5dd47 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:50:39 +1100 Subject: [PATCH 55/57] Revert "reverse build order of `python` and `libpython`" This reverts commit 636474b517b8f7ffe7dd4f7af0f2fa84497c0cd0. --- recipe/bld.bat | 150 +++++++++++++++++++ recipe/build.sh | 186 +++++++++++++++++++++++ recipe/install_base.bat | 47 ++++++ recipe/install_base.sh | 320 ++++++++++++++++++++++++++++++++++++++++ recipe/meta.yaml | 91 +++++------- 5 files changed, 738 insertions(+), 56 deletions(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index 826e658f2..3249d4f03 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -96,3 +96,153 @@ call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% if errorlevel 1 exit 1 cd .. + +:: Populate the root package directory +for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( + if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% + ) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" + ) +) + +for %%x in (python%THREAD%%_D%.pdb python%VERNODOTS%%THREAD%%_D%.pdb pythonw%THREAD%%_D%.pdb) do ( + if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% + ) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" + ) +) + +@echo on + +copy %SRC_DIR%\LICENSE %PREFIX%\LICENSE_PYTHON.txt +if errorlevel 1 exit 1 + +:: Populate the DLLs directory +mkdir %PREFIX%\DLLs +xcopy /s /y %SRC_DIR%\PCBuild\%HOST_DIR%\*.pyd %PREFIX%\DLLs\ +if errorlevel 1 exit 1 + +copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\DLLs\ +if errorlevel 1 exit 1 +copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\DLLs\ +if errorlevel 1 exit 1 + +:: Populate the Tools directory +mkdir %PREFIX%\Tools +xcopy /s /y /i %SRC_DIR%\Tools\i18n %PREFIX%\Tools\i18n +if errorlevel 1 exit 1 +xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\Tools\scripts +if errorlevel 1 exit 1 + +del %PREFIX%\Tools\scripts\README +if errorlevel 1 exit 1 +del %PREFIX%\Tools\scripts\idle3 +if errorlevel 1 exit 1 + +move /y %PREFIX%\Tools\scripts\pydoc3 %PREFIX%\Tools\scripts\pydoc3.py +if errorlevel 1 exit 1 + +:: Populate the include directory +xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\ +if errorlevel 1 exit 1 + +:: Copy generated pyconfig.h +copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\ +if errorlevel 1 exit 1 + +:: Populate the Scripts directory +if not exist %SCRIPTS% (mkdir %SCRIPTS%) +if errorlevel 1 exit 1 + +for %%x in (idle pydoc) do ( + copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x + if errorlevel 1 exit 1 +) + +:: Populate the libs directory +if not exist %PREFIX%\libs mkdir %PREFIX%\libs +dir %SRC_DIR%\PCbuild\%HOST_DIR%\ +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\libs\ +if errorlevel 1 exit 1 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib %PREFIX%\libs\ +if errorlevel 1 exit 1 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib %PREFIX%\libs\ +if errorlevel 1 exit 1 + + +:: Populate the Lib directory +del %PREFIX%\libs\libpython*.a +xcopy /s /y %SRC_DIR%\Lib %PREFIX%\Lib\ +if errorlevel 1 exit 1 + +:: Copy venv[w]launcher scripts to venv\srcipts\nt +:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/Lib/venv/__init__.py#L334-L376 +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe ( + @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\python.exe + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe +) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe does not exist" +) + +if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe ( + @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\pythonw.exe + copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe +) else ( + echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe does not exist" +) + +:: Remove test data to save space. +:: Though keep `support` as some things use that. +mkdir %PREFIX%\Lib\test_keep +if errorlevel 1 exit 1 +move %PREFIX%\Lib\test\__init__.py %PREFIX%\Lib\test_keep\ +if errorlevel 1 exit 1 +move %PREFIX%\Lib\test\support %PREFIX%\Lib\test_keep\ +if errorlevel 1 exit 1 +rd /s /q %PREFIX%\Lib\test +if errorlevel 1 exit 1 +move %PREFIX%\Lib\test_keep %PREFIX%\Lib\test +if errorlevel 1 exit 1 + +:: We need our Python to be found! +if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe +if "%EXE_T%" neq "" copy %PREFIX%\python%EXE_T%.exe %PREFIX%\python.exe + +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + set "PYTHON=%SRC_DIR%\PCbuild\%BUILD_DIR%\\python%EXE_T%%_D%.exe" +) else ( + set "PYTHON=%PREFIX%\python.exe" +) +:: bytecode compile the standard library +%PYTHON% -Wi %PREFIX%\Lib\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib +if errorlevel 1 exit 1 + +:: Ensure that scripts are generated +:: https://github.com/conda-forge/python-feedstock/issues/384 +%PYTHON% %RECIPE_DIR%\fix_staged_scripts.py +if errorlevel 1 exit 1 + +if NOT "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + REM Some quick tests for common failures + echo "Testing print() does not print: Hello" + %PREFIX%\python.exe -c "print()" 2>&1 | findstr /r /c:"Hello" + if %errorlevel% neq 1 exit /b 1 + + echo "Testing print('Hello') prints: Hello" + %PREFIX%\python.exe -c "print('Hello')" 2>&1 | findstr /r /c:"Hello" + if %errorlevel% neq 0 exit /b 1 + + echo "Testing import of os (no DLL needed) does not print: The specified module could not be found" + %PREFIX%\python.exe -v -c "import os" 2>&1 + %PREFIX%\python.exe -v -c "import os" 2>&1 | findstr /r /c:"The specified module could not be found" + if %errorlevel% neq 1 exit /b 1 + + echo "Testing import of _sqlite3 (DLL located via PATH needed) does not print: The specified module could not be found" + %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 + %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 | findstr /r /c:"The specified module could not be found" + if %errorlevel% neq 1 exit /b 1 +) diff --git a/recipe/build.sh b/recipe/build.sh index be54d7b24..e90c50b91 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -354,3 +354,189 @@ fi make -j${CPU_COUNT} -C ${_buildd_shared} \ EXTRA_CFLAGS="${EXTRA_CFLAGS}" \ LIBRARY=libpython${VERABI_NO_DBG}-pic.a libpython${VERABI_NO_DBG}-pic.a + +make -C ${_buildd_static} install + +declare -a _FLAGS_REPLACE=() +if [[ ${_OPTIMIZED} == yes ]]; then + _FLAGS_REPLACE+=(-O3) + _FLAGS_REPLACE+=(-O2) + _FLAGS_REPLACE+=("-fprofile-use") + _FLAGS_REPLACE+=("") + _FLAGS_REPLACE+=("-fprofile-correction") + _FLAGS_REPLACE+=("") + _FLAGS_REPLACE+=("-L.") + _FLAGS_REPLACE+=("") + for _LTO_CFLAG in "${LTO_CFLAGS[@]}"; do + _FLAGS_REPLACE+=(${_LTO_CFLAG}) + _FLAGS_REPLACE+=("") + done +fi + +SYSCONFIG=$(find ${_buildd_static}/$(cat ${_buildd_static}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0) +cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ + "${_FLAGS_REPLACE[@]}" \ + > ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) + +if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then + # build-details.json is incorrect when cross-compiling: + # https://github.com/python/cpython/issues/136267 + if [[ -n ${CROSSCOMPILING_EMULATOR} ]]; then + # let's use emulation to run the just-built python and generate the correct file + LD_LIBRARY_PATH=build-shared/ build-shared/python Tools/build/generate-build-details.py \ + ${PREFIX}/lib/python${VERABI_NO_DBG}/build-details.json + else + echo "Generating build-details.json for cross without an emulator is not" + echo "supported right now." + exit 1 + fi +else + BUILD_DETAILS=${_buildd_shared}/$(cat ${_buildd_shared}/pybuilddir.txt)/build-details.json + cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ +fi + +MAKEFILE=$(find ${PREFIX}/lib/python${VERABI_NO_DBG}/ -path "*config-*/Makefile" -print0) +cp ${MAKEFILE} /tmp/Makefile-$$ + +cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ + "${_FLAGS_REPLACE[@]}" \ + > ${MAKEFILE} +# Check to see that our differences took. +# echo diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) +# diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) + +# Python installs python${VER}m and python${VER}, one as a hardlink to the other. conda-build breaks these +# by copying. Since the executable may be static it may be very large so change one to be a symlink +# of the other. In this case, python${VER}m will be the symlink. +if [[ -f ${PREFIX}/bin/python${VER}m ]]; then + rm -f ${PREFIX}/bin/python${VER}m + ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python${VER}m +fi +ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python +ln -s ${PREFIX}/bin/pydoc${VER} ${PREFIX}/bin/pydoc +# Workaround for https://github.com/conda/conda/issues/10969 +ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python3.1 + +# Remove test data to save space +# Though keep `support` as some things use that. +# TODO :: Make a subpackage for this once we implement multi-level testing. +pushd ${PREFIX}/lib/python${VERABI_NO_DBG} + mkdir test_keep + mv test/__init__.py test/support test/test_support* test/test_script_helper* test_keep/ + rm -rf test */test + mv test_keep test +popd + +# Size reductions: +pushd ${PREFIX} + if [[ -f lib/libpython${VERABI}.a ]]; then + chmod +w lib/libpython${VERABI}.a + ${STRIP} -S lib/libpython${VERABI}.a + fi + CONFIG_LIBPYTHON=$(find lib/python${VERABI_NO_DBG}/config-${VERABI}* -name "libpython${VERABI}.a") + if [[ -f lib/libpython${VERABI}.a ]] && [[ -f ${CONFIG_LIBPYTHON} ]]; then + chmod +w ${CONFIG_LIBPYTHON} + rm ${CONFIG_LIBPYTHON} + fi +popd + +# Copy sysconfig that gets recorded to a non-default name +# using the new compilers with python will require setting _PYTHON_SYSCONFIGDATA_NAME +# to the name of this file (minus the .py extension) +pushd "${PREFIX}"/lib/python${VERABI_NO_DBG} + # On Python 3.5 _sysconfigdata.py was getting copied in here and compiled for some reason. + # This breaks our attempt to find the right one as recorded_name. + find lib-dynload -name "_sysconfigdata*.py*" -exec rm {} \; + recorded_name=$(find . -name "_sysconfigdata*.py") + our_compilers_name=_sysconfigdata_$(echo ${HOST} | sed -e 's/[.-]/_/g').py + # So we can see if anything has significantly diverged by looking in a built package. + cp ${recorded_name} ${recorded_name}.orig + cp ${recorded_name} sysconfigfile + # fdebug-prefix-map for python work dir is useless for extensions + sed -i.bak "s@-fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/python-$PKG_VERSION@@g" sysconfigfile + sed -i.bak "s@-fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix@@g" sysconfigfile + # Append the conda-forge zoneinfo to the end + sed -i.bak "s@zoneinfo'@zoneinfo:$PREFIX/share/tzinfo'@g" sysconfigfile + # Remove osx sysroot as it depends on the build machine + # be sure CONDA_BUILD_SYSROOT has value, as other we will remove here instead spaces + if [[ "${target_platform}" == osx-* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then + sed -i.bak "s@-isysroot @@g" sysconfigfile + sed -i.bak "s@$CONDA_BUILD_SYSROOT @@g" sysconfigfile + fi + # Remove unfilled config option + sed -i.bak "s/@SGI_ABI@//g" sysconfigfile + sed -i.bak "s@$BUILD_PREFIX/bin/${HOST}-llvm-ar@${HOST}-ar@g" sysconfigfile + # Remove GNULD=yes to make sure new-dtags are not used + sed -i.bak "s/'GNULD': 'yes'/'GNULD': 'no'/g" sysconfigfile + cp sysconfigfile ${our_compilers_name} + + # For system gcc remove the triple + sed -i.bak "s@$HOST-c++@g++@g" sysconfigfile + sed -i.bak "s@$HOST-@@g" sysconfigfile + if [[ "$target_platform" == linux* ]]; then + # For linux, make sure the system gcc uses our linker + sed -i.bak "s@-pthread@-pthread -B $PREFIX/share/python_compiler_compat@g" sysconfigfile + fi + # Don't set -march and -mtune for system gcc + sed -i.bak "s@-march=[^( |\\\"|\\\')]*@@g" sysconfigfile + sed -i.bak "s@-mtune=[^( |\\\"|\\\')]*@@g" sysconfigfile + # Remove these flags that older compilers and linkers may not know + for flag in "-fstack-protector-strong" "-ffunction-sections" "-pipe" "-fno-plt" \ + "-ftree-vectorize" "-Wl,--sort-common" "-Wl,--as-needed" "-Wl,-z,relro" \ + "-Wl,-z,now" "-Wl,--disable-new-dtags" "-Wl,--gc-sections" "-Wl,-O2" \ + "-fPIE" "-ftree-vectorize" "-mssse3" "-Wl,-pie" "-Wl,-dead_strip_dylibs" \ + "-Wl,-headerpad_max_install_names"; do + sed -i.bak "s@$flag@@g" sysconfigfile + done + # Cleanup some extra spaces from above + sed -i.bak "s@' [ ]*@'@g" sysconfigfile + cp sysconfigfile $recorded_name + echo "========================sysconfig===========================" + cat $recorded_name + echo "============================================================" + + rm sysconfigfile + rm sysconfigfile.bak +popd + +if [[ ${HOST} =~ .*linux.* ]]; then + mkdir -p ${PREFIX}/share/python_compiler_compat + ln -s ${PREFIX}/bin/${HOST}-ld ${PREFIX}/share/python_compiler_compat/ld + echo "Files in this folder are to enhance backwards compatibility of anaconda software with older compilers." > ${PREFIX}/share/python_compiler_compat/README + echo "See: https://github.com/conda/conda/issues/6030 for more information." >> ${PREFIX}/share/python_compiler_compat/README +fi + +python -c "import compileall,os;compileall.compile_dir(os.environ['PREFIX'])" +rm ${PREFIX}/lib/libpython${VERABI}.a + +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + rm ${PREFIX}/bin/python${VER} + ln -s ${PREFIX}/bin/python${VERABI} ${PREFIX}/bin/python${VER} + ln -s ${PREFIX}/include/python${VERABI} ${PREFIX}/include/python${VER} +fi + +if [[ "$target_platform" == linux-* ]]; then + rm ${PREFIX}/include/uuid.h +fi + +# Workaround for https://github.com/conda/conda/issues/14053 +# Older conda versions install noarch: python packages in wrong places. +# For example python3.1 because older conda assumed python minor version +# will have only one digit. noarhc pkgs for freethreading builds are supposed +# to be installed into /lib/python3.13t/site-packages, but conda +# installs them to /lib/python3.13/site-packages. +# The workaround is to add all these wrong paths to sys.path using +# a pth file so that cpython and other tools like pip know about these +# locations to check when importing packages and uninstalling packages. +# When installing packages, pip will use the correct location +# /lib/python3.13t/site-packages. +# Note that these directories are not added to sys.path if they do not exist. +SP_DIR="${PREFIX}/lib/python${PY_VER}${THREAD}/site-packages" +if [[ ${PY_FREETHREADING} == yes ]]; then + echo "${PREFIX}/lib/python${PY_VER}/site-packages" >> $SP_DIR/conda-site.pth +fi +# Workaround for https://github.com/conda/conda/issues/10969 +echo "${PREFIX}/lib/python3.1/site-packages" >> $SP_DIR/conda-site.pth +# A python version independent directory that ABI3 and noarch packages can use. +# This is unused at the moment, but keeping it here for experimentation. +echo "${PREFIX}/lib/python/site-packages" >> $SP_DIR/conda-site.pth diff --git a/recipe/install_base.bat b/recipe/install_base.bat index 2d7485a2d..3249d4f03 100644 --- a/recipe/install_base.bat +++ b/recipe/install_base.bat @@ -36,20 +36,67 @@ for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( set "VER=%%i.%%j" ) +:: Make sure the "python" value in conda_build_config.yaml is up to date. +for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( + if NOT "%PY_VER%"=="%%i.%%j" exit 1 +) + +for /f "usebackq delims=" %%i in (`conda list -p %PREFIX% sqlite --no-show-channel-urls --json ^| findstr "version"`) do set SQLITE3_VERSION_LINE=%%i +for /f "tokens=2 delims==/ " %%i IN ('echo %SQLITE3_VERSION_LINE%') do (set SQLITE3_VERSION=%%~i) +echo SQLITE3_VERSION detected as %SQLITE3_VERSION% + if "%PY_INTERP_DEBUG%"=="yes" ( + set CONFIG=-d set _D=_d ) else ( + set CONFIG= set _D= ) +set PGO=--pgo +if "%DEBUG_C%"=="yes" ( + set PGO= +) +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + set PGO= +) + if "%PY_FREETHREADING%" == "yes" ( + set "FREETHREADING=--disable-gil" set "THREAD=t" set "EXE_T=%VER%t" ) else ( + set "FREETHREADING=--experimental-jit-off" set "THREAD=" set "EXE_T=" ) +:: TODO: remove once tk 9 is available on main +:: Pin Tcl/Tk from the `tk` variant in conda_build_config.yaml (single source of +:: truth, shared with build_base.sh). Upstream 3.15 tcltk.props defaults +:: TclVersion to 9.0.3.0, but pkgs/main only ships tk 8.6; MSBuild derives the +:: lib names (tcl86t.lib/tk86t.lib) from the major.minor of these props. +set TCLTK_MSBUILD_PROPS="/p:TclVersion=%tk%" "/p:TkVersion=%tk%" + +cd PCbuild + +setlocal EnableDelayedExpansion +if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( + REM build for the build platform. LIBRARY_PREFIX is used by the patches + REM No PGO. No externals, i.e. remove building extension modules + REM we don't need. + set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library + call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% + if errorlevel 1 exit 1 +) +endlocal +:: Twice because: +:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% +call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% +if errorlevel 1 exit 1 +cd .. + :: Populate the root package directory for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( diff --git a/recipe/install_base.sh b/recipe/install_base.sh index b13791a55..37478eafb 100644 --- a/recipe/install_base.sh +++ b/recipe/install_base.sh @@ -1,6 +1,9 @@ #!/bin/bash set -ex +# Get an updated config.sub and config.guess +cp $BUILD_PREFIX/share/libtool/build-aux/config.* . + if [[ ! -d ${SRC_DIR}/python-bin ]]; then # Need an up-to-date python to build python. # python 3.10 in miniforge is too old. @@ -8,12 +11,45 @@ if [[ ! -d ${SRC_DIR}/python-bin ]]; then export PATH=${SRC_DIR}/python-bin/bin:${PATH} fi +# The LTO/PGO information was sourced from @pitrou and the Debian rules file in: +# http://http.debian.net/debian/pool/main/p/python3.6/python3.6_3.6.2-2.debian.tar.xz +# https://packages.debian.org/source/sid/python3.6 +# or: +# http://bazaar.launchpad.net/~doko/python/pkg3.5-debian/view/head:/rules#L255 +# .. but upstream regrtest.py now has --pgo (since >= 3.6) and skips tests that are: +# "not helpful for PGO". + +VERFULL=${PKG_VERSION} VER=${PKG_VERSION%.*} +VERNODOTS=${VER//./} +TCLTK_VER=${tk} +# Disables some PGO/LTO +QUICK_BUILD=no _buildd_static=build-static _buildd_shared=build-shared +_ENABLE_SHARED=--enable-shared +# We *still* build a shared lib here for non-static embedded use cases +_DISABLE_SHARED=--disable-shared + +# For debugging builds, set this to no to disable profile-guided optimization +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + _OPTIMIZED=no +else + _OPTIMIZED=yes +fi if [[ ${PY_INTERP_DEBUG} == yes ]]; then + # check that the rerendering is correct + if [[ "$CI" != "" && "$channel_targets" == "conda-forge main" ]]; then + exit 1 + fi +fi + +declare -a _dbg_opts +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + # This Python will not be usable with non-debug Python modules. + _dbg_opts+=(--with-pydebug) DBG=d else DBG= @@ -26,15 +62,299 @@ else THREAD= fi +ABIFLAGS=${DBG}${THREAD} VERABI=${VER}${THREAD}${DBG} VERABI_NO_DBG=${VER}${THREAD} +# Make sure the "python" value in conda_build_config.yaml is up to date. +test "${PY_VER}" = "${VER}" + # This is the mechanism by which we fall back to default gcc, but having it defined here # would probably break the build by using incorrect settings and/or importing files that # do not yet exist. unset _PYTHON_SYSCONFIGDATA_NAME unset _CONDA_PYTHON_SYSCONFIGDATA_NAME +# Prevent lib/python${VERABI_NO_DBG}/_sysconfigdata_*.py from ending up with full paths to these things +# in _build_env because _build_env will not get found during prefix replacement, only _h_env_placeh ... +AR=$(basename "${AR}") + +# CC must contain the string 'gcc' or else distutils thinks it is on macOS and uses '-R' to set rpaths. +if [[ ${target_platform} == osx-* ]]; then + CC=$(basename "${CC}") +else + CC=$(basename "${GCC}") +fi +CXX=$(basename "${CXX}") +RANLIB=$(basename "${RANLIB}") +READELF=$(basename "${READELF}") + +if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then + # Python's setup.py will figure out that this is a macOS sysroot. + CFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CFLAGS} + LDFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${LDFLAGS} + CPPFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CPPFLAGS} +fi + +# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py +if [[ ${_OPTIMIZED} = yes ]]; then + CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O3/g") + CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O3/g") + CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O3/g") +fi + +if [[ ${PY_INTERP_DEBUG} == yes ]]; then + CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O0/g") + CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O0/g") + CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O0/g") +fi + +if [[ "$target_platform" == linux-* ]]; then + cp ${PREFIX}/include/uuid/uuid.h ${PREFIX}/include/uuid.h +fi + +declare -a LTO_CFLAGS=() + +# Following is needed for building extensions like zlib +CPPFLAGS=${CPPFLAGS}" -I${PREFIX}/include" + +re='^(.*)(-I[^ ]*)(.*)$' +if [[ ${CFLAGS} =~ $re ]]; then + CFLAGS="${BASH_REMATCH[1]}${BASH_REMATCH[3]}" +fi + +# Force rebuild to avoid: +# ../work/Modules/unicodename_db.h:24118:30: note: (near initialization for 'code_hash') +# ../work/Modules/unicodename_db.h:24118:33: warning: excess elements in scalar initializer +# 0, 0, 12018, 0, 0, 0, 0, 0, 4422, 4708, 3799, 119358, 119357, 0, 120510, +# ^~~~ +# This should have been fixed by https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 +# .. but that appears incomplete. In particular, the generated files contain: +# /* this file was generated by Tools/unicode/makeunicodedata.py 3.2 */ +# .. yet the PR updated to version of makeunicodedata.py to 3.3 +# rm -f Modules/unicodedata_db.h Modules/unicodename_db.h +# ${SYS_PYTHON} ${SRC_DIR}/Tools/unicode/makeunicodedata.py +# .. instead we revert this commit for now. + +export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS + +declare -a _common_configure_args + +if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then + # Build the exact same Python for the build machine. It would be nice (and might be + # possible already?) to be able to make this just an 'exact' pinned build dependency + # of a split-package? + BUILD_PYTHON_PREFIX=${PWD}/build-python-install + mkdir build-python-build + pushd build-python-build + (export CC=${CC_FOR_BUILD} \ + CXX=${CXX_FOR_BUILD} \ + CPP="${CC_FOR_BUILD} -E" \ + CFLAGS="-O2 -I${BUILD_PREFIX}/include" \ + CPPFLAGS="-O2 -I${BUILD_PREFIX}/include" \ + LDFLAGS=${LDFLAGS//${PREFIX}/${BUILD_PREFIX}} \ + PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig \ + AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \ + RANLIB="$(${CC_FOR_BUILD} --print-prog-name=ranlib)" \ + LD="$(${CC_FOR_BUILD} --print-prog-name=ld)" && \ + ${SRC_DIR}/configure --build=${BUILD} \ + --host=${BUILD} \ + --prefix=${BUILD_PYTHON_PREFIX} \ + --with-ensurepip=no \ + --with-tzpath=${PREFIX}/share/zoneinfo \ + --with-platlibdir=lib && \ + make -j${CPU_COUNT} && \ + make install) + export PATH=${BUILD_PYTHON_PREFIX}/bin:${PATH} + ln -s ${BUILD_PYTHON_PREFIX}/bin/python${VER} ${BUILD_PYTHON_PREFIX}/bin/python + popd + echo "ac_cv_file__dev_ptmx=yes" > config.site + echo "ac_cv_file__dev_ptc=no" >> config.site + echo "ac_cv_pthread=yes" >> config.site + echo "ac_cv_little_endian_double=yes" >> config.site + if [[ "${target_platform}" == "osx-arm64" || "${target_platform}" == "linux-ppc64le" || "${target_platform}" == "linux-aarch64" ]]; then + echo "ac_cv_aligned_required=no" >> config.site + echo "ac_cv_pthread_is_default=yes" >> config.site + echo "ac_cv_working_tzset=yes" >> config.site + echo "ac_cv_pthread_system_supported=yes" >> config.site + else + echo "unknown cross compiling platform" + exit 1 + fi + export CONFIG_SITE=${PWD}/config.site + # This is needed for libffi: + export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + _common_configure_args+=(--with-build-python=${BUILD_PYTHON_PREFIX}/bin/python) +fi + +# This causes setup.py to query the sysroot directories from the compiler, something which +# IMHO should be done by default anyway with a flag to disable it to workaround broken ones. +# Technically, setting _PYTHON_HOST_PLATFORM causes setup.py to consider it cross_compiling +if [[ -n ${HOST} ]]; then + if [[ ${HOST} =~ .*darwin.* ]]; then + # Even if BUILD is .*darwin.* you get better isolation by cross_compiling (no /usr/local) + IFS='-' read -r host_arch host_os host_kernel <<<"${HOST}" + export _PYTHON_HOST_PLATFORM=darwin-${host_arch} + else + IFS='-' read -r host_arch host_vendor host_os host_libc <<<"${HOST}" + export _PYTHON_HOST_PLATFORM=${host_os}-${host_arch} + fi +fi + +if [[ ${target_platform} == osx-64 ]]; then + export MACHDEP=darwin + export ac_sys_system=Darwin + export ac_sys_release=13.4.0 + export MACOSX_DEFAULT_ARCH=x86_64 + # TODO: check with LLVM 12 if the following hack is needed. + # https://reviews.llvm.org/D76461 may have fixed the need for the following hack. + echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar + echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar + chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar + export ARCHFLAGS="-arch x86_64" +elif [[ ${target_platform} == osx-arm64 ]]; then + export MACHDEP=darwin + export ac_sys_system=Darwin + export ac_sys_release=20.0.0 + export MACOSX_DEFAULT_ARCH=arm64 + echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar + echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar + chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar + export ARCHFLAGS="-arch arm64" + export CFLAGS="$CFLAGS $ARCHFLAGS" +elif [[ ${target_platform} == linux-* ]]; then + export MACHDEP=linux + export ac_sys_system=Linux + export ac_sys_release= +fi + +# Not used at present but we should run 'make test' and finish up TESTOPTS (see debians rules). +declare -a TEST_EXCLUDES +TEST_EXCLUDES+=(test_ensurepip test_venv) +TEST_EXCLUDES+=(test_tcl test_codecmaps_cn test_codecmaps_hk + test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw + test_normalization test_ossaudiodev test_socket) +if [[ ! -f /dev/dsp ]]; then + TEST_EXCLUDES+=(test_linuxaudiodev test_ossaudiodev) +fi +# hangs on Aarch64, see LP: #1264354 +if [[ ${CC} =~ .*-aarch64.* ]]; then + TEST_EXCLUDES+=(test_faulthandler) +fi +if [[ ${CC} =~ .*-arm.* ]]; then + TEST_EXCLUDES+=(test_ctypes) + TEST_EXCLUDES+=(test_compiler) +fi + +_common_configure_args+=(--prefix=${PREFIX}) +_common_configure_args+=(--build=${BUILD}) +_common_configure_args+=(--host=${HOST}) +_common_configure_args+=(--enable-ipv6) +_common_configure_args+=(--with-ensurepip=no) +_common_configure_args+=(--with-tzpath=${PREFIX}/share/zoneinfo) +_common_configure_args+=(--with-computed-gotos) +_common_configure_args+=(--with-system-expat) +_common_configure_args+=(--enable-loadable-sqlite-extensions) +_common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include") +_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6") +_common_configure_args+=(--with-platlibdir=lib) + +if [[ "${PY_INTERP_DEBUG}" == "yes" || "${target_platform}" != *"-64" || ${PY_FREETHREADING} == yes ]]; then + _common_configure_args+=(--enable-experimental-jit=no) +else + _common_configure_args+=(--enable-experimental-jit=yes-off) +fi + +if [[ "${target_platform}" == osx-* ]]; then + # This should only be used with clang 20.1+ + _common_configure_args+=(--with-tail-call-interp) +fi + +if [[ ${PY_FREETHREADING} == yes ]]; then + _common_configure_args+=(--disable-gil) +fi + +# Add more optimization flags for the static Python interpreter: +declare -a PROFILE_TASK=() +if [[ ${_OPTIMIZED} == yes ]]; then + _common_configure_args+=(--with-lto=full) + if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then + _common_configure_args+=(--enable-optimizations) + _MAKE_TARGET=profile-opt + # To speed up build times during testing (1): + if [[ ${QUICK_BUILD} == yes ]]; then + # TODO :: It seems this is just profiling everything, on Windows, only 40 odd tests are + # run while on Unix, all 400+ are run, making this slower and less well curated + _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo") + else + # From talking to Steve Dower, who implemented pgo/pgo-extended, it is really not worth + # it to run pgo-extended (which runs the whole test-suite). The --pgo set of tests are + # curated specifically to be useful/appropriate for pgo instrumentation. + # _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo-extended") + _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo") + fi + fi + if [[ ${CC} =~ .*gcc.* ]]; then + LTO_CFLAGS+=(-fuse-linker-plugin) + LTO_CFLAGS+=(-ffat-lto-objects) + # -flto must come after -flto-partition due to the replacement code + # TODO :: Replace the replacement code using conda-build's in-build regex replacement. + LTO_CFLAGS+=(-flto-partition=none) + LTO_CFLAGS+=(-flto) + else + # TODO :: Check if -flto=thin gives better results. It is about faster + # compilation rather than faster execution so probably not: + # http://clang.llvm.org/docs/ThinLTO.html + # http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html + LTO_CFLAGS+=(-flto) + # -flto breaks the check to determine whether float word ordering is bigendian + # see: + # https://bugs.python.org/issue28015 + # https://bugs.python.org/issue38527 + # manually specify this setting + export ax_cv_c_float_words_bigendian=no + fi + export CFLAGS="${CFLAGS} ${LTO_CFLAGS[@]}" +else + _MAKE_TARGET= +fi + +mkdir -p ${_buildd_shared} +pushd ${_buildd_shared} + ${SRC_DIR}/configure "${_common_configure_args[@]}" \ + "${_dbg_opts[@]}" \ + --oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \ + --enable-shared +popd + +mkdir -p ${_buildd_static} +pushd ${_buildd_static} + ${SRC_DIR}/configure "${_common_configure_args[@]}" \ + "${_dbg_opts[@]}" \ + -oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \ + ${_DISABLE_SHARED} "${_PROFILE_TASK[@]}" +popd + +make -j${CPU_COUNT} -C ${_buildd_static} \ + EXTRA_CFLAGS="${EXTRA_CFLAGS}" \ + ${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 | tee make-static.log +if rg "Failed to build these modules" make-static.log; then + echo "(static) :: Failed to build some modules, check the log" + exit 1 +fi + +make -j${CPU_COUNT} -C ${_buildd_shared} \ + EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 | tee make-shared.log +if rg "Failed to build these modules" make-shared.log; then + echo "(shared) :: Failed to build some modules, check the log" + exit 1 +fi + +# build a static library with PIC objects and without LTO/PGO +make -j${CPU_COUNT} -C ${_buildd_shared} \ + EXTRA_CFLAGS="${EXTRA_CFLAGS}" \ + LIBRARY=libpython${VERABI_NO_DBG}-pic.a libpython${VERABI_NO_DBG}-pic.a + make -C ${_buildd_static} install declare -a _FLAGS_REPLACE=() diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a83fd9c91..1eb8556fb 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -101,64 +101,17 @@ source: build: number: {{ build_number }} - python_site_packages_path: {{ site_packages_path }} - script_env: - - PY_INTERP_DEBUG={{ py_interp_debug }} - - PY_FREETHREADING={{ freethreading }} requirements: build: - - {{ stdlib('c') }} - - {{ compiler('c') }} - - {{ compiler('cxx') }} - - libtool # [unix] - - make # [unix] - - pkg-config # [unix] - - ld_impl_{{ target_platform }} # [linux] - - binutils_impl_{{ target_platform }} # [linux] - - clang-19 # [unix] - - clang 19.* # [win] - # configure script looks for llvm-ar for lto - - llvm-tools # [osx] - - llvm-tools-19 # [unix] - - llvm-tools 19.* # [win] - - bzip2 # [build_platform != target_platform] - - expat # [build_platform != target_platform] - - libffi # [build_platform != target_platform] - - liblzma-devel # [build_platform != target_platform] - - libmpdec-devel # [build_platform != target_platform] - - libsqlite # [build_platform != target_platform] - - libuuid # [build_platform != target_platform and linux] - - libxcrypt # [build_platform != target_platform and linux] - - ncurses # [build_platform != target_platform and unix] - - openssl # [build_platform != target_platform] - - readline # [build_platform != target_platform and unix] - - tk # [build_platform != target_platform] - - zlib # [build_platform != target_platform] - - zstd # [build_platform != target_platform] - host: - - ld_impl_{{ target_platform }} >=2.36 # [linux] - - bzip2 - - expat - - libffi - - liblzma-devel - - libmpdec-devel - - libsqlite - - libuuid # [linux] - - ncurses # [unix] - - openssl - - readline # [unix] - - tk - # These two are just to get the headers needed for tk.h, but is unused - - xorg-libx11 # [unix] - - xorg-xorgproto # [unix] - - zlib - - zstd + - patch # [not win] + - m2-patch # [win] + - m2-gcc-libs # [win] outputs: - name: python - script: install_base.sh # [unix] - script: install_base.bat # [win] + script: build_base.sh # [unix] + script: build_base.bat # [win] build: number: {{ build_number }} activate_in_script: true @@ -214,12 +167,35 @@ outputs: - '**/api-ms-win-core-path-l1-1-0.dll' # [win] requirements: build: - - {{ stdlib('c') }} - {{ compiler('c') }} + - {{ stdlib('c') }} - {{ compiler('cxx') }} - make # [not win] + - libtool # [unix] + - pkg-config # [not win] + # configure script looks for llvm-ar for lto + - llvm-tools # [osx] + - ld_impl_{{ target_platform }} # [linux] + - binutils_impl_{{ target_platform }} # [linux] + - clang-19 # [not win] + - llvm-tools-19 # [not win] + - clang 19.* # [win] + - llvm-tools 19.* # [win] + - bzip2 # [build_platform != target_platform] + - libsqlite # [build_platform != target_platform] + - liblzma-devel # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + - zstd # [build_platform != target_platform] + - openssl # [build_platform != target_platform] + - readline # [not win and build_platform != target_platform] + - tk # [build_platform != target_platform] + - ncurses # [unix and build_platform != target_platform] + - libffi # [build_platform != target_platform] + - libuuid # [linux and build_platform != target_platform] + - libxcrypt # [linux and build_platform != target_platform] + - libmpdec-devel # [build_platform != target_platform] + - expat # [build_platform != target_platform] host: - - {{ pin_subpackage('libpython', exact=True) }} - bzip2 - libsqlite - liblzma-devel @@ -238,7 +214,6 @@ outputs: - libmpdec-devel - expat run: - - {{ pin_subpackage('libpython', exact=True) }} - ld_impl_{{ target_platform }} >=2.36.1 # [linux] - tzdata {% if dev != '' %} @@ -338,9 +313,13 @@ outputs: string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ debug }}_{{ abi_tag }} requirements: build: - - {{ stdlib('c') }} - {{ compiler('c') }} + - {{ stdlib('c') }} - {{ compiler('cxx') }} + host: + - {{ pin_subpackage('python', exact=True) }} + run: + - {{ pin_subpackage('python', exact=True) }} test: files: - tests/cmake/* From 376a6b028d6e71c4877ee654c4033fee45149d40 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 12:59:49 +1100 Subject: [PATCH 56/57] Revert "duplicate and rename build_base.{sh,bat} in anticipation of split" This reverts commit 6704afbb0546e065ac0ebfbd0afecb63773ccbf9. --- recipe/{bld.bat => build_base.bat} | 0 recipe/{build.sh => build_base.sh} | 0 recipe/install_base.bat | 248 ------------- recipe/install_base.sh | 542 ----------------------------- 4 files changed, 790 deletions(-) rename recipe/{bld.bat => build_base.bat} (100%) rename recipe/{build.sh => build_base.sh} (100%) delete mode 100644 recipe/install_base.bat delete mode 100644 recipe/install_base.sh diff --git a/recipe/bld.bat b/recipe/build_base.bat similarity index 100% rename from recipe/bld.bat rename to recipe/build_base.bat diff --git a/recipe/build.sh b/recipe/build_base.sh similarity index 100% rename from recipe/build.sh rename to recipe/build_base.sh diff --git a/recipe/install_base.bat b/recipe/install_base.bat deleted file mode 100644 index 3249d4f03..000000000 --- a/recipe/install_base.bat +++ /dev/null @@ -1,248 +0,0 @@ -setlocal EnableDelayedExpansion -echo on - -:: Compile python, extensions and external libraries -if "%target_platform%"=="win-64" ( - set HOST_PLATFORM=x64 - set HOST_DIR=amd64 -) -if "%target_platform%"=="win-32" ( - set HOST_PLATFORM=Win32 - set HOST_DIR=win32 -) -if "%target_platform%"=="win-arm64" ( - set HOST_PLATFORM=ARM64 - set HOST_DIR=arm64 -) - -if "%build_platform%"=="win-64" ( - set BUILD_PLATFORM=x64 - set BUILD_DIR=amd64 -) -if "%build_platform%"=="win-32" ( - set BUILD_PLATFORM=Win32 - set BUILD_DIR=win32 -) -if "%build_platform%"=="win-arm64" ( - set BUILD_PLATFORM=ARM64 - set BUILD_DIR=arm64 -) - -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - set "VERNODOTS=%%i%%j" -) - -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - set "VER=%%i.%%j" -) - -:: Make sure the "python" value in conda_build_config.yaml is up to date. -for /F "tokens=1,2 delims=." %%i in ("%PKG_VERSION%") do ( - if NOT "%PY_VER%"=="%%i.%%j" exit 1 -) - -for /f "usebackq delims=" %%i in (`conda list -p %PREFIX% sqlite --no-show-channel-urls --json ^| findstr "version"`) do set SQLITE3_VERSION_LINE=%%i -for /f "tokens=2 delims==/ " %%i IN ('echo %SQLITE3_VERSION_LINE%') do (set SQLITE3_VERSION=%%~i) -echo SQLITE3_VERSION detected as %SQLITE3_VERSION% - -if "%PY_INTERP_DEBUG%"=="yes" ( - set CONFIG=-d - set _D=_d -) else ( - set CONFIG= - set _D= -) - -set PGO=--pgo -if "%DEBUG_C%"=="yes" ( - set PGO= -) -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - set PGO= -) - -if "%PY_FREETHREADING%" == "yes" ( - set "FREETHREADING=--disable-gil" - set "THREAD=t" - set "EXE_T=%VER%t" -) else ( - set "FREETHREADING=--experimental-jit-off" - set "THREAD=" - set "EXE_T=" -) - -:: TODO: remove once tk 9 is available on main -:: Pin Tcl/Tk from the `tk` variant in conda_build_config.yaml (single source of -:: truth, shared with build_base.sh). Upstream 3.15 tcltk.props defaults -:: TclVersion to 9.0.3.0, but pkgs/main only ships tk 8.6; MSBuild derives the -:: lib names (tcl86t.lib/tk86t.lib) from the major.minor of these props. -set TCLTK_MSBUILD_PROPS="/p:TclVersion=%tk%" "/p:TkVersion=%tk%" - -cd PCbuild - -setlocal EnableDelayedExpansion -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - REM build for the build platform. LIBRARY_PREFIX is used by the patches - REM No PGO. No externals, i.e. remove building extension modules - REM we don't need. - set LIBRARY_PREFIX=%BUILD_PREFIX%\\Library - call build.bat %CONFIG% %FREETHREADING% -m -E -v -p %BUILD_PLATFORM% %TCLTK_MSBUILD_PROPS% - if errorlevel 1 exit 1 -) -endlocal -:: Twice because: -:: error : importlib_zipimport.h updated. You will need to rebuild pythoncore to see the changes. -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% -call build.bat %PGO% %CONFIG% %FREETHREADING% -m -e -v -p %HOST_PLATFORM% %TCLTK_MSBUILD_PROPS% -if errorlevel 1 exit 1 -cd .. - -:: Populate the root package directory -for %%x in (python%VERNODOTS%%THREAD%%_D%.dll python3%THREAD%%_D%.dll python%EXE_T%%_D%.exe pythonw%EXE_T%%_D%.exe) do ( - if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% - ) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" - ) -) - -for %%x in (python%THREAD%%_D%.pdb python%VERNODOTS%%THREAD%%_D%.pdb pythonw%THREAD%%_D%.pdb) do ( - if exist %SRC_DIR%\PCbuild\%HOST_DIR%\%%x ( - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\%%x %PREFIX% - ) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\%%x does not exist" - ) -) - -@echo on - -copy %SRC_DIR%\LICENSE %PREFIX%\LICENSE_PYTHON.txt -if errorlevel 1 exit 1 - -:: Populate the DLLs directory -mkdir %PREFIX%\DLLs -xcopy /s /y %SRC_DIR%\PCBuild\%HOST_DIR%\*.pyd %PREFIX%\DLLs\ -if errorlevel 1 exit 1 - -copy /Y %SRC_DIR%\PC\icons\py.ico %PREFIX%\DLLs\ -if errorlevel 1 exit 1 -copy /Y %SRC_DIR%\PC\icons\pyc.ico %PREFIX%\DLLs\ -if errorlevel 1 exit 1 - -:: Populate the Tools directory -mkdir %PREFIX%\Tools -xcopy /s /y /i %SRC_DIR%\Tools\i18n %PREFIX%\Tools\i18n -if errorlevel 1 exit 1 -xcopy /s /y /i %SRC_DIR%\Tools\scripts %PREFIX%\Tools\scripts -if errorlevel 1 exit 1 - -del %PREFIX%\Tools\scripts\README -if errorlevel 1 exit 1 -del %PREFIX%\Tools\scripts\idle3 -if errorlevel 1 exit 1 - -move /y %PREFIX%\Tools\scripts\pydoc3 %PREFIX%\Tools\scripts\pydoc3.py -if errorlevel 1 exit 1 - -:: Populate the include directory -xcopy /s /y %SRC_DIR%\Include %PREFIX%\include\ -if errorlevel 1 exit 1 - -:: Copy generated pyconfig.h -copy /Y %SRC_DIR%\PC\pyconfig.h %PREFIX%\include\ -if errorlevel 1 exit 1 - -:: Populate the Scripts directory -if not exist %SCRIPTS% (mkdir %SCRIPTS%) -if errorlevel 1 exit 1 - -for %%x in (idle pydoc) do ( - copy /Y %SRC_DIR%\Tools\scripts\%%x3 %SCRIPTS%\%%x - if errorlevel 1 exit 1 -) - -:: Populate the libs directory -if not exist %PREFIX%\libs mkdir %PREFIX%\libs -dir %SRC_DIR%\PCbuild\%HOST_DIR%\ -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python%VERNODOTS%%THREAD%%_D%.lib %PREFIX%\libs\ -if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\python3%THREAD%%_D%.lib %PREFIX%\libs\ -if errorlevel 1 exit 1 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\_tkinter%THREAD%%_D%.lib %PREFIX%\libs\ -if errorlevel 1 exit 1 - - -:: Populate the Lib directory -del %PREFIX%\libs\libpython*.a -xcopy /s /y %SRC_DIR%\Lib %PREFIX%\Lib\ -if errorlevel 1 exit 1 - -:: Copy venv[w]launcher scripts to venv\srcipts\nt -:: See https://github.com/python/cpython/blob/b4a316087c32d83e375087fd35fc511bc430ee8b/Lib/venv/__init__.py#L334-L376 -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe ( - @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\python.exe - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvlauncher%THREAD%%_D%.exe -) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvlauncher%THREAD%%_D%.exe does not exist" -) - -if exist %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe ( - @rem We did copy pythonw.exe until 3.12 but starting with 3.13 we seem to need the latter. Should we omit the first? - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\pythonw.exe - copy /Y %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe %PREFIX%\Lib\venv\scripts\nt\venvwlauncher%THREAD%%_D%.exe -) else ( - echo "WARNING :: %SRC_DIR%\PCbuild\%HOST_DIR%\venvwlauncher%THREAD%%_D%.exe does not exist" -) - -:: Remove test data to save space. -:: Though keep `support` as some things use that. -mkdir %PREFIX%\Lib\test_keep -if errorlevel 1 exit 1 -move %PREFIX%\Lib\test\__init__.py %PREFIX%\Lib\test_keep\ -if errorlevel 1 exit 1 -move %PREFIX%\Lib\test\support %PREFIX%\Lib\test_keep\ -if errorlevel 1 exit 1 -rd /s /q %PREFIX%\Lib\test -if errorlevel 1 exit 1 -move %PREFIX%\Lib\test_keep %PREFIX%\Lib\test -if errorlevel 1 exit 1 - -:: We need our Python to be found! -if "%_D%" neq "" copy %PREFIX%\python%_D%.exe %PREFIX%\python.exe -if "%EXE_T%" neq "" copy %PREFIX%\python%EXE_T%.exe %PREFIX%\python.exe - -if "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - set "PYTHON=%SRC_DIR%\PCbuild\%BUILD_DIR%\\python%EXE_T%%_D%.exe" -) else ( - set "PYTHON=%PREFIX%\python.exe" -) -:: bytecode compile the standard library -%PYTHON% -Wi %PREFIX%\Lib\compileall.py -f -q -x "bad_coding|badsyntax|py2_" %PREFIX%\Lib -if errorlevel 1 exit 1 - -:: Ensure that scripts are generated -:: https://github.com/conda-forge/python-feedstock/issues/384 -%PYTHON% %RECIPE_DIR%\fix_staged_scripts.py -if errorlevel 1 exit 1 - -if NOT "%CONDA_BUILD_CROSS_COMPILATION%" == "1" ( - REM Some quick tests for common failures - echo "Testing print() does not print: Hello" - %PREFIX%\python.exe -c "print()" 2>&1 | findstr /r /c:"Hello" - if %errorlevel% neq 1 exit /b 1 - - echo "Testing print('Hello') prints: Hello" - %PREFIX%\python.exe -c "print('Hello')" 2>&1 | findstr /r /c:"Hello" - if %errorlevel% neq 0 exit /b 1 - - echo "Testing import of os (no DLL needed) does not print: The specified module could not be found" - %PREFIX%\python.exe -v -c "import os" 2>&1 - %PREFIX%\python.exe -v -c "import os" 2>&1 | findstr /r /c:"The specified module could not be found" - if %errorlevel% neq 1 exit /b 1 - - echo "Testing import of _sqlite3 (DLL located via PATH needed) does not print: The specified module could not be found" - %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 - %PREFIX%\python.exe -v -c "import _sqlite3" 2>&1 | findstr /r /c:"The specified module could not be found" - if %errorlevel% neq 1 exit /b 1 -) diff --git a/recipe/install_base.sh b/recipe/install_base.sh deleted file mode 100644 index 37478eafb..000000000 --- a/recipe/install_base.sh +++ /dev/null @@ -1,542 +0,0 @@ -#!/bin/bash -set -ex - -# Get an updated config.sub and config.guess -cp $BUILD_PREFIX/share/libtool/build-aux/config.* . - -if [[ ! -d ${SRC_DIR}/python-bin ]]; then - # Need an up-to-date python to build python. - # python 3.10 in miniforge is too old. - CONDA_SUBDIR=$build_platform conda create -p ${SRC_DIR}/python-bin python -c conda-forge --override-channels --yes --quiet - export PATH=${SRC_DIR}/python-bin/bin:${PATH} -fi - -# The LTO/PGO information was sourced from @pitrou and the Debian rules file in: -# http://http.debian.net/debian/pool/main/p/python3.6/python3.6_3.6.2-2.debian.tar.xz -# https://packages.debian.org/source/sid/python3.6 -# or: -# http://bazaar.launchpad.net/~doko/python/pkg3.5-debian/view/head:/rules#L255 -# .. but upstream regrtest.py now has --pgo (since >= 3.6) and skips tests that are: -# "not helpful for PGO". - -VERFULL=${PKG_VERSION} -VER=${PKG_VERSION%.*} -VERNODOTS=${VER//./} -TCLTK_VER=${tk} -# Disables some PGO/LTO -QUICK_BUILD=no - -_buildd_static=build-static -_buildd_shared=build-shared -_ENABLE_SHARED=--enable-shared -# We *still* build a shared lib here for non-static embedded use cases -_DISABLE_SHARED=--disable-shared - -# For debugging builds, set this to no to disable profile-guided optimization -if [[ ${PY_INTERP_DEBUG} == yes ]]; then - _OPTIMIZED=no -else - _OPTIMIZED=yes -fi - -if [[ ${PY_INTERP_DEBUG} == yes ]]; then - # check that the rerendering is correct - if [[ "$CI" != "" && "$channel_targets" == "conda-forge main" ]]; then - exit 1 - fi -fi - -declare -a _dbg_opts -if [[ ${PY_INTERP_DEBUG} == yes ]]; then - # This Python will not be usable with non-debug Python modules. - _dbg_opts+=(--with-pydebug) - DBG=d -else - DBG= -fi - -if [[ ${PY_FREETHREADING} == yes ]]; then - # This Python will not be usable with non-free threading Python modules. - THREAD=t -else - THREAD= -fi - -ABIFLAGS=${DBG}${THREAD} -VERABI=${VER}${THREAD}${DBG} -VERABI_NO_DBG=${VER}${THREAD} - -# Make sure the "python" value in conda_build_config.yaml is up to date. -test "${PY_VER}" = "${VER}" - -# This is the mechanism by which we fall back to default gcc, but having it defined here -# would probably break the build by using incorrect settings and/or importing files that -# do not yet exist. -unset _PYTHON_SYSCONFIGDATA_NAME -unset _CONDA_PYTHON_SYSCONFIGDATA_NAME - -# Prevent lib/python${VERABI_NO_DBG}/_sysconfigdata_*.py from ending up with full paths to these things -# in _build_env because _build_env will not get found during prefix replacement, only _h_env_placeh ... -AR=$(basename "${AR}") - -# CC must contain the string 'gcc' or else distutils thinks it is on macOS and uses '-R' to set rpaths. -if [[ ${target_platform} == osx-* ]]; then - CC=$(basename "${CC}") -else - CC=$(basename "${GCC}") -fi -CXX=$(basename "${CXX}") -RANLIB=$(basename "${RANLIB}") -READELF=$(basename "${READELF}") - -if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then - # Python's setup.py will figure out that this is a macOS sysroot. - CFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CFLAGS} - LDFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${LDFLAGS} - CPPFLAGS="-isysroot ${CONDA_BUILD_SYSROOT} "${CPPFLAGS} -fi - -# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py -if [[ ${_OPTIMIZED} = yes ]]; then - CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O3/g") - CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O3/g") - CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O3/g") -fi - -if [[ ${PY_INTERP_DEBUG} == yes ]]; then - CPPFLAGS=$(echo "${CPPFLAGS}" | sed "s/-O2/-O0/g") - CFLAGS=$(echo "${CFLAGS}" | sed "s/-O2/-O0/g") - CXXFLAGS=$(echo "${CXXFLAGS}" | sed "s/-O2/-O0/g") -fi - -if [[ "$target_platform" == linux-* ]]; then - cp ${PREFIX}/include/uuid/uuid.h ${PREFIX}/include/uuid.h -fi - -declare -a LTO_CFLAGS=() - -# Following is needed for building extensions like zlib -CPPFLAGS=${CPPFLAGS}" -I${PREFIX}/include" - -re='^(.*)(-I[^ ]*)(.*)$' -if [[ ${CFLAGS} =~ $re ]]; then - CFLAGS="${BASH_REMATCH[1]}${BASH_REMATCH[3]}" -fi - -# Force rebuild to avoid: -# ../work/Modules/unicodename_db.h:24118:30: note: (near initialization for 'code_hash') -# ../work/Modules/unicodename_db.h:24118:33: warning: excess elements in scalar initializer -# 0, 0, 12018, 0, 0, 0, 0, 0, 4422, 4708, 3799, 119358, 119357, 0, 120510, -# ^~~~ -# This should have been fixed by https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 -# .. but that appears incomplete. In particular, the generated files contain: -# /* this file was generated by Tools/unicode/makeunicodedata.py 3.2 */ -# .. yet the PR updated to version of makeunicodedata.py to 3.3 -# rm -f Modules/unicodedata_db.h Modules/unicodename_db.h -# ${SYS_PYTHON} ${SRC_DIR}/Tools/unicode/makeunicodedata.py -# .. instead we revert this commit for now. - -export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS - -declare -a _common_configure_args - -if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then - # Build the exact same Python for the build machine. It would be nice (and might be - # possible already?) to be able to make this just an 'exact' pinned build dependency - # of a split-package? - BUILD_PYTHON_PREFIX=${PWD}/build-python-install - mkdir build-python-build - pushd build-python-build - (export CC=${CC_FOR_BUILD} \ - CXX=${CXX_FOR_BUILD} \ - CPP="${CC_FOR_BUILD} -E" \ - CFLAGS="-O2 -I${BUILD_PREFIX}/include" \ - CPPFLAGS="-O2 -I${BUILD_PREFIX}/include" \ - LDFLAGS=${LDFLAGS//${PREFIX}/${BUILD_PREFIX}} \ - PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig \ - AR="$(${CC_FOR_BUILD} --print-prog-name=ar)" \ - RANLIB="$(${CC_FOR_BUILD} --print-prog-name=ranlib)" \ - LD="$(${CC_FOR_BUILD} --print-prog-name=ld)" && \ - ${SRC_DIR}/configure --build=${BUILD} \ - --host=${BUILD} \ - --prefix=${BUILD_PYTHON_PREFIX} \ - --with-ensurepip=no \ - --with-tzpath=${PREFIX}/share/zoneinfo \ - --with-platlibdir=lib && \ - make -j${CPU_COUNT} && \ - make install) - export PATH=${BUILD_PYTHON_PREFIX}/bin:${PATH} - ln -s ${BUILD_PYTHON_PREFIX}/bin/python${VER} ${BUILD_PYTHON_PREFIX}/bin/python - popd - echo "ac_cv_file__dev_ptmx=yes" > config.site - echo "ac_cv_file__dev_ptc=no" >> config.site - echo "ac_cv_pthread=yes" >> config.site - echo "ac_cv_little_endian_double=yes" >> config.site - if [[ "${target_platform}" == "osx-arm64" || "${target_platform}" == "linux-ppc64le" || "${target_platform}" == "linux-aarch64" ]]; then - echo "ac_cv_aligned_required=no" >> config.site - echo "ac_cv_pthread_is_default=yes" >> config.site - echo "ac_cv_working_tzset=yes" >> config.site - echo "ac_cv_pthread_system_supported=yes" >> config.site - else - echo "unknown cross compiling platform" - exit 1 - fi - export CONFIG_SITE=${PWD}/config.site - # This is needed for libffi: - export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig - _common_configure_args+=(--with-build-python=${BUILD_PYTHON_PREFIX}/bin/python) -fi - -# This causes setup.py to query the sysroot directories from the compiler, something which -# IMHO should be done by default anyway with a flag to disable it to workaround broken ones. -# Technically, setting _PYTHON_HOST_PLATFORM causes setup.py to consider it cross_compiling -if [[ -n ${HOST} ]]; then - if [[ ${HOST} =~ .*darwin.* ]]; then - # Even if BUILD is .*darwin.* you get better isolation by cross_compiling (no /usr/local) - IFS='-' read -r host_arch host_os host_kernel <<<"${HOST}" - export _PYTHON_HOST_PLATFORM=darwin-${host_arch} - else - IFS='-' read -r host_arch host_vendor host_os host_libc <<<"${HOST}" - export _PYTHON_HOST_PLATFORM=${host_os}-${host_arch} - fi -fi - -if [[ ${target_platform} == osx-64 ]]; then - export MACHDEP=darwin - export ac_sys_system=Darwin - export ac_sys_release=13.4.0 - export MACOSX_DEFAULT_ARCH=x86_64 - # TODO: check with LLVM 12 if the following hack is needed. - # https://reviews.llvm.org/D76461 may have fixed the need for the following hack. - echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar - echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar - chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar - export ARCHFLAGS="-arch x86_64" -elif [[ ${target_platform} == osx-arm64 ]]; then - export MACHDEP=darwin - export ac_sys_system=Darwin - export ac_sys_release=20.0.0 - export MACOSX_DEFAULT_ARCH=arm64 - echo '#!/bin/bash' > $BUILD_PREFIX/bin/$HOST-llvm-ar - echo "$BUILD_PREFIX/bin/llvm-ar --format=darwin" '"$@"' >> $BUILD_PREFIX/bin/$HOST-llvm-ar - chmod +x $BUILD_PREFIX/bin/$HOST-llvm-ar - export ARCHFLAGS="-arch arm64" - export CFLAGS="$CFLAGS $ARCHFLAGS" -elif [[ ${target_platform} == linux-* ]]; then - export MACHDEP=linux - export ac_sys_system=Linux - export ac_sys_release= -fi - -# Not used at present but we should run 'make test' and finish up TESTOPTS (see debians rules). -declare -a TEST_EXCLUDES -TEST_EXCLUDES+=(test_ensurepip test_venv) -TEST_EXCLUDES+=(test_tcl test_codecmaps_cn test_codecmaps_hk - test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw - test_normalization test_ossaudiodev test_socket) -if [[ ! -f /dev/dsp ]]; then - TEST_EXCLUDES+=(test_linuxaudiodev test_ossaudiodev) -fi -# hangs on Aarch64, see LP: #1264354 -if [[ ${CC} =~ .*-aarch64.* ]]; then - TEST_EXCLUDES+=(test_faulthandler) -fi -if [[ ${CC} =~ .*-arm.* ]]; then - TEST_EXCLUDES+=(test_ctypes) - TEST_EXCLUDES+=(test_compiler) -fi - -_common_configure_args+=(--prefix=${PREFIX}) -_common_configure_args+=(--build=${BUILD}) -_common_configure_args+=(--host=${HOST}) -_common_configure_args+=(--enable-ipv6) -_common_configure_args+=(--with-ensurepip=no) -_common_configure_args+=(--with-tzpath=${PREFIX}/share/zoneinfo) -_common_configure_args+=(--with-computed-gotos) -_common_configure_args+=(--with-system-expat) -_common_configure_args+=(--enable-loadable-sqlite-extensions) -_common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include") -_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6") -_common_configure_args+=(--with-platlibdir=lib) - -if [[ "${PY_INTERP_DEBUG}" == "yes" || "${target_platform}" != *"-64" || ${PY_FREETHREADING} == yes ]]; then - _common_configure_args+=(--enable-experimental-jit=no) -else - _common_configure_args+=(--enable-experimental-jit=yes-off) -fi - -if [[ "${target_platform}" == osx-* ]]; then - # This should only be used with clang 20.1+ - _common_configure_args+=(--with-tail-call-interp) -fi - -if [[ ${PY_FREETHREADING} == yes ]]; then - _common_configure_args+=(--disable-gil) -fi - -# Add more optimization flags for the static Python interpreter: -declare -a PROFILE_TASK=() -if [[ ${_OPTIMIZED} == yes ]]; then - _common_configure_args+=(--with-lto=full) - if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then - _common_configure_args+=(--enable-optimizations) - _MAKE_TARGET=profile-opt - # To speed up build times during testing (1): - if [[ ${QUICK_BUILD} == yes ]]; then - # TODO :: It seems this is just profiling everything, on Windows, only 40 odd tests are - # run while on Unix, all 400+ are run, making this slower and less well curated - _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo") - else - # From talking to Steve Dower, who implemented pgo/pgo-extended, it is really not worth - # it to run pgo-extended (which runs the whole test-suite). The --pgo set of tests are - # curated specifically to be useful/appropriate for pgo instrumentation. - # _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo-extended") - _PROFILE_TASK+=(PROFILE_TASK="-m test --pgo") - fi - fi - if [[ ${CC} =~ .*gcc.* ]]; then - LTO_CFLAGS+=(-fuse-linker-plugin) - LTO_CFLAGS+=(-ffat-lto-objects) - # -flto must come after -flto-partition due to the replacement code - # TODO :: Replace the replacement code using conda-build's in-build regex replacement. - LTO_CFLAGS+=(-flto-partition=none) - LTO_CFLAGS+=(-flto) - else - # TODO :: Check if -flto=thin gives better results. It is about faster - # compilation rather than faster execution so probably not: - # http://clang.llvm.org/docs/ThinLTO.html - # http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html - LTO_CFLAGS+=(-flto) - # -flto breaks the check to determine whether float word ordering is bigendian - # see: - # https://bugs.python.org/issue28015 - # https://bugs.python.org/issue38527 - # manually specify this setting - export ax_cv_c_float_words_bigendian=no - fi - export CFLAGS="${CFLAGS} ${LTO_CFLAGS[@]}" -else - _MAKE_TARGET= -fi - -mkdir -p ${_buildd_shared} -pushd ${_buildd_shared} - ${SRC_DIR}/configure "${_common_configure_args[@]}" \ - "${_dbg_opts[@]}" \ - --oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \ - --enable-shared -popd - -mkdir -p ${_buildd_static} -pushd ${_buildd_static} - ${SRC_DIR}/configure "${_common_configure_args[@]}" \ - "${_dbg_opts[@]}" \ - -oldincludedir=${BUILD_PREFIX}/${HOST}/sysroot/usr/include \ - ${_DISABLE_SHARED} "${_PROFILE_TASK[@]}" -popd - -make -j${CPU_COUNT} -C ${_buildd_static} \ - EXTRA_CFLAGS="${EXTRA_CFLAGS}" \ - ${_MAKE_TARGET} "${_PROFILE_TASK[@]}" 2>&1 | tee make-static.log -if rg "Failed to build these modules" make-static.log; then - echo "(static) :: Failed to build some modules, check the log" - exit 1 -fi - -make -j${CPU_COUNT} -C ${_buildd_shared} \ - EXTRA_CFLAGS="${EXTRA_CFLAGS}" 2>&1 | tee make-shared.log -if rg "Failed to build these modules" make-shared.log; then - echo "(shared) :: Failed to build some modules, check the log" - exit 1 -fi - -# build a static library with PIC objects and without LTO/PGO -make -j${CPU_COUNT} -C ${_buildd_shared} \ - EXTRA_CFLAGS="${EXTRA_CFLAGS}" \ - LIBRARY=libpython${VERABI_NO_DBG}-pic.a libpython${VERABI_NO_DBG}-pic.a - -make -C ${_buildd_static} install - -declare -a _FLAGS_REPLACE=() -if [[ ${_OPTIMIZED} == yes ]]; then - _FLAGS_REPLACE+=(-O3) - _FLAGS_REPLACE+=(-O2) - _FLAGS_REPLACE+=("-fprofile-use") - _FLAGS_REPLACE+=("") - _FLAGS_REPLACE+=("-fprofile-correction") - _FLAGS_REPLACE+=("") - _FLAGS_REPLACE+=("-L.") - _FLAGS_REPLACE+=("") - for _LTO_CFLAG in "${LTO_CFLAGS[@]}"; do - _FLAGS_REPLACE+=(${_LTO_CFLAG}) - _FLAGS_REPLACE+=("") - done -fi - -SYSCONFIG=$(find ${_buildd_static}/$(cat ${_buildd_static}/pybuilddir.txt) -name "_sysconfigdata*.py" -print0) -cat ${SYSCONFIG} | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ - "${_FLAGS_REPLACE[@]}" \ - > ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) - -if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then - # build-details.json is incorrect when cross-compiling: - # https://github.com/python/cpython/issues/136267 - if [[ -n ${CROSSCOMPILING_EMULATOR} ]]; then - # let's use emulation to run the just-built python and generate the correct file - LD_LIBRARY_PATH=build-shared/ build-shared/python Tools/build/generate-build-details.py \ - ${PREFIX}/lib/python${VERABI_NO_DBG}/build-details.json - else - echo "Generating build-details.json for cross without an emulator is not" - echo "supported right now." - exit 1 - fi -else - BUILD_DETAILS=${_buildd_shared}/$(cat ${_buildd_shared}/pybuilddir.txt)/build-details.json - cp ${BUILD_DETAILS} ${PREFIX}/lib/python${VERABI_NO_DBG}/ -fi - -MAKEFILE=$(find ${PREFIX}/lib/python${VERABI_NO_DBG}/ -path "*config-*/Makefile" -print0) -cp ${MAKEFILE} /tmp/Makefile-$$ - -cat /tmp/Makefile-$$ | ${SYS_PYTHON} "${RECIPE_DIR}"/replace-word-pairs.py \ - "${_FLAGS_REPLACE[@]}" \ - > ${MAKEFILE} -# Check to see that our differences took. -# echo diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) -# diff -urN ${SYSCONFIG} ${PREFIX}/lib/python${VERABI_NO_DBG}/$(basename ${SYSCONFIG}) - -# Python installs python${VER}m and python${VER}, one as a hardlink to the other. conda-build breaks these -# by copying. Since the executable may be static it may be very large so change one to be a symlink -# of the other. In this case, python${VER}m will be the symlink. -if [[ -f ${PREFIX}/bin/python${VER}m ]]; then - rm -f ${PREFIX}/bin/python${VER}m - ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python${VER}m -fi -ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python -ln -s ${PREFIX}/bin/pydoc${VER} ${PREFIX}/bin/pydoc -# Workaround for https://github.com/conda/conda/issues/10969 -ln -s ${PREFIX}/bin/python${VER} ${PREFIX}/bin/python3.1 - -# Remove test data to save space -# Though keep `support` as some things use that. -# TODO :: Make a subpackage for this once we implement multi-level testing. -pushd ${PREFIX}/lib/python${VERABI_NO_DBG} - mkdir test_keep - mv test/__init__.py test/support test/test_support* test/test_script_helper* test_keep/ - rm -rf test */test - mv test_keep test -popd - -# Size reductions: -pushd ${PREFIX} - if [[ -f lib/libpython${VERABI}.a ]]; then - chmod +w lib/libpython${VERABI}.a - ${STRIP} -S lib/libpython${VERABI}.a - fi - CONFIG_LIBPYTHON=$(find lib/python${VERABI_NO_DBG}/config-${VERABI}* -name "libpython${VERABI}.a") - if [[ -f lib/libpython${VERABI}.a ]] && [[ -f ${CONFIG_LIBPYTHON} ]]; then - chmod +w ${CONFIG_LIBPYTHON} - rm ${CONFIG_LIBPYTHON} - fi -popd - -# Copy sysconfig that gets recorded to a non-default name -# using the new compilers with python will require setting _PYTHON_SYSCONFIGDATA_NAME -# to the name of this file (minus the .py extension) -pushd "${PREFIX}"/lib/python${VERABI_NO_DBG} - # On Python 3.5 _sysconfigdata.py was getting copied in here and compiled for some reason. - # This breaks our attempt to find the right one as recorded_name. - find lib-dynload -name "_sysconfigdata*.py*" -exec rm {} \; - recorded_name=$(find . -name "_sysconfigdata*.py") - our_compilers_name=_sysconfigdata_$(echo ${HOST} | sed -e 's/[.-]/_/g').py - # So we can see if anything has significantly diverged by looking in a built package. - cp ${recorded_name} ${recorded_name}.orig - cp ${recorded_name} sysconfigfile - # fdebug-prefix-map for python work dir is useless for extensions - sed -i.bak "s@-fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/python-$PKG_VERSION@@g" sysconfigfile - sed -i.bak "s@-fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix@@g" sysconfigfile - # Append the conda-forge zoneinfo to the end - sed -i.bak "s@zoneinfo'@zoneinfo:$PREFIX/share/tzinfo'@g" sysconfigfile - # Remove osx sysroot as it depends on the build machine - # be sure CONDA_BUILD_SYSROOT has value, as other we will remove here instead spaces - if [[ "${target_platform}" == osx-* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then - sed -i.bak "s@-isysroot @@g" sysconfigfile - sed -i.bak "s@$CONDA_BUILD_SYSROOT @@g" sysconfigfile - fi - # Remove unfilled config option - sed -i.bak "s/@SGI_ABI@//g" sysconfigfile - sed -i.bak "s@$BUILD_PREFIX/bin/${HOST}-llvm-ar@${HOST}-ar@g" sysconfigfile - # Remove GNULD=yes to make sure new-dtags are not used - sed -i.bak "s/'GNULD': 'yes'/'GNULD': 'no'/g" sysconfigfile - cp sysconfigfile ${our_compilers_name} - - # For system gcc remove the triple - sed -i.bak "s@$HOST-c++@g++@g" sysconfigfile - sed -i.bak "s@$HOST-@@g" sysconfigfile - if [[ "$target_platform" == linux* ]]; then - # For linux, make sure the system gcc uses our linker - sed -i.bak "s@-pthread@-pthread -B $PREFIX/share/python_compiler_compat@g" sysconfigfile - fi - # Don't set -march and -mtune for system gcc - sed -i.bak "s@-march=[^( |\\\"|\\\')]*@@g" sysconfigfile - sed -i.bak "s@-mtune=[^( |\\\"|\\\')]*@@g" sysconfigfile - # Remove these flags that older compilers and linkers may not know - for flag in "-fstack-protector-strong" "-ffunction-sections" "-pipe" "-fno-plt" \ - "-ftree-vectorize" "-Wl,--sort-common" "-Wl,--as-needed" "-Wl,-z,relro" \ - "-Wl,-z,now" "-Wl,--disable-new-dtags" "-Wl,--gc-sections" "-Wl,-O2" \ - "-fPIE" "-ftree-vectorize" "-mssse3" "-Wl,-pie" "-Wl,-dead_strip_dylibs" \ - "-Wl,-headerpad_max_install_names"; do - sed -i.bak "s@$flag@@g" sysconfigfile - done - # Cleanup some extra spaces from above - sed -i.bak "s@' [ ]*@'@g" sysconfigfile - cp sysconfigfile $recorded_name - echo "========================sysconfig===========================" - cat $recorded_name - echo "============================================================" - - rm sysconfigfile - rm sysconfigfile.bak -popd - -if [[ ${HOST} =~ .*linux.* ]]; then - mkdir -p ${PREFIX}/share/python_compiler_compat - ln -s ${PREFIX}/bin/${HOST}-ld ${PREFIX}/share/python_compiler_compat/ld - echo "Files in this folder are to enhance backwards compatibility of anaconda software with older compilers." > ${PREFIX}/share/python_compiler_compat/README - echo "See: https://github.com/conda/conda/issues/6030 for more information." >> ${PREFIX}/share/python_compiler_compat/README -fi - -python -c "import compileall,os;compileall.compile_dir(os.environ['PREFIX'])" -rm ${PREFIX}/lib/libpython${VERABI}.a - -if [[ ${PY_INTERP_DEBUG} == yes ]]; then - rm ${PREFIX}/bin/python${VER} - ln -s ${PREFIX}/bin/python${VERABI} ${PREFIX}/bin/python${VER} - ln -s ${PREFIX}/include/python${VERABI} ${PREFIX}/include/python${VER} -fi - -if [[ "$target_platform" == linux-* ]]; then - rm ${PREFIX}/include/uuid.h -fi - -# Workaround for https://github.com/conda/conda/issues/14053 -# Older conda versions install noarch: python packages in wrong places. -# For example python3.1 because older conda assumed python minor version -# will have only one digit. noarhc pkgs for freethreading builds are supposed -# to be installed into /lib/python3.13t/site-packages, but conda -# installs them to /lib/python3.13/site-packages. -# The workaround is to add all these wrong paths to sys.path using -# a pth file so that cpython and other tools like pip know about these -# locations to check when importing packages and uninstalling packages. -# When installing packages, pip will use the correct location -# /lib/python3.13t/site-packages. -# Note that these directories are not added to sys.path if they do not exist. -SP_DIR="${PREFIX}/lib/python${PY_VER}${THREAD}/site-packages" -if [[ ${PY_FREETHREADING} == yes ]]; then - echo "${PREFIX}/lib/python${PY_VER}/site-packages" >> $SP_DIR/conda-site.pth -fi -# Workaround for https://github.com/conda/conda/issues/10969 -echo "${PREFIX}/lib/python3.1/site-packages" >> $SP_DIR/conda-site.pth -# A python version independent directory that ABI3 and noarch packages can use. -# This is unused at the moment, but keeping it here for experimentation. -echo "${PREFIX}/lib/python/site-packages" >> $SP_DIR/conda-site.pth From 0bc02a4fd0dcdf1511e85850f0290b69c340e6c3 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 13:31:16 +1100 Subject: [PATCH 57/57] bump build number --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index c155aaed8..7aa746f96 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -4,7 +4,7 @@ {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 0 %} +{% set build_number = 1 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %}