-
-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
In conda-forge/mlir-python-bindings-feedstock#52, despite -DPython_EXECUTABLE="$PYTHON", we ran into the following
-- Found Python3: %PREFIX%\python.exe (found version "3.12.10") found components: Interpreter Development Development.Module Development.Embed
-- Found Python3: %PREFIX%\python.exe (found version "3.12.10") found components: Interpreter Development.Module
-- Found Python: C:/hostedtoolcache/windows/Python/3.13.3/x64/python3.exe (found version "3.13.3") found components: Interpreter Development.Module
-- Found python include dirs: D:/bld/mlir-python-bindings_1747405402061/_h_env/Include
-- Found python libraries: D:/bld/mlir-python-bindings_1747405402061/_h_env/libs/python312.lib
Notice the mismatched python versions and how we're picking up stuff from C:/hostedtoolcache/windows/Python.
I think it would be good practice generally to remove pre-existing python(s) in the windows (and probably macOS) images that we're using, so that all uses of python have to be declared through the recipe, rather than accidentally pick stuff up from the image.
A simple del /S /Q C:\hostedtoolcache\windows\Python >nul cured the issue, which we could add to the template here. Thoughts @conda-forge/core?
Metadata
Metadata
Assignees
Labels
No labels