From 6ced12b5887aebca52462654c16ddc70086f8b83 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 16:46:48 +1100 Subject: [PATCH 1/3] 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 891b5e104..5f23a9370 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 = 3 %} +{% set build_number = 4 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} @@ -329,7 +329,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 From 74bc09f3a7c330c457ef1b810090e235bfa476b9 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 30 Aug 2026 22:33:21 -0700 Subject: [PATCH 2/3] simplify --- recipe/meta.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 5f23a9370..43c1d6e52 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -329,11 +329,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 @@ -361,13 +356,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 %} - name: libpython-static script: install_static.sh # [unix] From 2ca75324b1892259296ec7f9cc640acca5a7901e Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 31 Aug 2026 16:48:38 +1100 Subject: [PATCH 3/3] add comment about libpython's (lack of) content on windows --- recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 43c1d6e52..9758287df 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -327,6 +327,7 @@ 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] + # this output is empty on windows - name: libpython script: install_shared.sh # [unix] build: