MINGW-packages/mingw-w64-python3.13/0122-Add-missing-function-declaration-for-smoke-testing.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

22 lines
1.0 KiB
Diff

From 8cdd19eb9868327e0645ef0613723cdc5c5e843f Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 28 Aug 2025 14:01:16 +0300
Subject: [PATCH 122/N] Add missing function declaration for smoke testing
---
Lib/venv/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index b2ec522..0c28ea0 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -414,6 +414,7 @@ class EnvBuilder:
if os.name == 'posix' or (os.name == "nt" and 'mingw' in sys.version.lower()):
# copy from python/pythonw so the venvlauncher magic in symlink_or_copy triggers
+ copier = self.symlink_or_copy
copier(os.path.join(dirname, 'python.exe'), os.path.join(binpath, 'python3.exe'))
copier(os.path.join(dirname, 'python.exe'), os.path.join(binpath, 'python%d.%d.exe' % sys.version_info[:2]))
copier(os.path.join(dirname, 'pythonw.exe'), os.path.join(binpath, 'python3w.exe'))