From e2fba763a436fd9525c63202f4e093992815007a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 30 Aug 2026 22:50:31 -0700 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 64b26eb40d121454f06f0f13e266ed380291e090 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 30 Aug 2026 22:50:37 -0700 Subject: [PATCH 2/3] Revert "avoid picking up python from image" This reverts commit 4a842a4025ab5abc5b605f12bac6c362e97827be. --- recipe/meta.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 5f23a9370..724116689 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -270,8 +270,6 @@ outputs: commands: - echo on # [win] - set # [win] - # ensure we don't pick up python from the image by accident - - rmdir /s /q C:\hostedtoolcache\windows\Python # [win] - python -V - python3 -V # [not win] - pydoc -h From 57ca8cf3a562c8669819763871612cb203d31e09 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sun, 30 Aug 2026 22:33:21 -0700 Subject: [PATCH 3/3] simplify --- recipe/meta.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 724116689..c76baa70b 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -327,11 +327,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 @@ -359,13 +354,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]