Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python from uv cache interferes with Python in pixi environment during CMake's FindPython #2749

Open
2 tasks done
guru-desh opened this issue Dec 20, 2024 · 0 comments
Open
2 tasks done
Labels
🐞 bug Something isn't working

Comments

@guru-desh
Copy link

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

This is detailed in the issue, but it's a slight variant from the pixi pybind11 example

Issue description

I found a bug relating to the virtual environment found during FindPython in cmake inside pixi.

Reproducible example:

Take the pixi pybind11 example, and make the following modifications:

Updated pyproject.toml:

[build-system]
build-backend = "scikit_build_core.build"
requires = ["scikit-build-core", "pybind11"]

[project]
classifiers = [
  "Programming Language :: Python :: 3",
  "Programming Language :: Python :: 3.6",
  "Programming Language :: Python :: 3.7",
  "Programming Language :: Python :: 3.8",
  "Programming Language :: Python :: 3.9",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
]
description = "A simple pybind11 example"
name = "mysum"
requires-python = ">=3.7"
version = "0.1.0"

[tool.scikit-build]
cmake.source-dir = "."
sdist.exclude = [".pixi"]
wheel.packages = ["mysum"]
logging.level = "DEBUG"

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]

[tool.pixi.dependencies]
pybind11 = ">=2.13.6,<3"

[tool.pixi.feature.build.dependencies]
cmake = ">=3.15,<4"
cxx-compiler = ">=1.8.0,<2"
make = ">=4.4.1,<5"
ninja = ">=1.12.1,<2"
scikit-build-core = ">=0.10.7,<0.11"
uv = ">=0.4.25,<0.5"
numpy = ">=1.21.2,<2"

[tool.pixi.feature.build.tasks.build]
cmd = ["uv", "build"]

[tool.pixi.environments]
build = ["build"]

This adds NumPy as a build dependency + added some additional scikit-build-core properties.

Updated CMakeLists.txt:

cmake_minimum_required(VERSION 3.15...3.29)

project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES CXX)

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)

message(STATUS "Python_EXECUTABLE: ${Python_EXECUTABLE}")
message(STATUS "Python_VERSION: ${Python_VERSION}")

set(PYBIND11_NEWPYTHON ON)
find_package(pybind11 CONFIG REQUIRED)

file(GLOB SOURCES "src/*.cpp")

pybind11_add_module(${PROJECT_NAME} ${SOURCES})

install(TARGETS ${PROJECT_NAME} DESTINATION .)

This uses FindPython to try and find the Python interpreter.

Here's the output when running pixi run build:

✨ Pixi task (build in build): uv build
Building source distribution...
*** scikit-build-core 0.10.7 (sdist)
Building wheel from source distribution...
2024-12-19 23:29:17,467 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake -E capabilities
2024-12-19 23:29:17,481 - scikit_build_core - INFO - CMake version: 3.30.5
*** scikit-build-core 0.10.7 using CMake 3.30.5 (wheel)
2024-12-19 23:29:17,486 - scikit_build_core - DEBUG - MACOSX_DEPLOYMENT_TARGET not set, using 14.0
2024-12-19 23:29:17,486 - scikit_build_core - INFO - Build directory: /private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build
2024-12-19 23:29:17,488 - scikit_build_core - WARNING - No license files found, set wheel.license-files to [] to suppress this warning
*** Configuring CMake...
2024-12-19 23:29:17,493 - scikit_build_core - DEBUG - SITE_PACKAGES: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/lib/python3.12/site-packages
2024-12-19 23:29:17,493 - scikit_build_core - DEBUG - Env CMAKE_ARGS: ['-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld', '-DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip', '-DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool', '-DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk']
2024-12-19 23:29:17,493 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
2024-12-19 23:29:17,510 - scikit_build_core - DEBUG - Default generator: Ninja
2024-12-19 23:29:17,510 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja --version
2024-12-19 23:29:17,515 - scikit_build_core - INFO - Ninja version: 1.12.1
2024-12-19 23:29:17,515 - scikit_build_core - DEBUG - CMAKE_GENERATOR: Using ninja: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja
2024-12-19 23:29:17,516 - scikit_build_core - DEBUG - libdir/(ld)library: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib/libpython3.12.a is not a real file!
2024-12-19 23:29:17,516 - scikit_build_core - DEBUG - Can't find a Python library, got libdir=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib, ldlibrary=libpython3.12.a, multiarch=darwin, masd=None
2024-12-19 23:29:17,518 - scikit_build_core - DEBUG - /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build/CMakeInit.txt:
  set(SKBUILD [===[2]===] CACHE STRING "" FORCE)
  set(SKBUILD_CORE_VERSION [===[0.10.7]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_NAME [===[mysum]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_VERSION [===[0.1.0]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_VERSION_FULL [===[0.1.0]===] CACHE STRING "" FORCE)
  set(PYTHON_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python]===] CACHE STRING "" FORCE)
  set(PYTHON_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python]===] CACHE STRING "" FORCE)
  set(Python_ROOT_DIR [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU]===] CACHE STRING "" FORCE)
  set(Python_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python_FIND_REGISTRY [===[NEVER]===] CACHE STRING "" FORCE)
  set(Python3_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python]===] CACHE STRING "" FORCE)
  set(Python3_ROOT_DIR [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU]===] CACHE STRING "" FORCE)
  set(Python3_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python3_FIND_REGISTRY [===[NEVER]===] CACHE STRING "" FORCE)
  set(SKBUILD_SOABI [===[cpython-312-darwin]===] CACHE STRING "" FORCE)
  set(SKBUILD_SABI_COMPONENT [===[]===] CACHE STRING "" FORCE)
  set(SKBUILD_PLATLIB_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib]===] CACHE PATH "" FORCE)
  set(SKBUILD_DATA_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/data]===] CACHE PATH "" FORCE)
  set(SKBUILD_HEADERS_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/headers]===] CACHE PATH "" FORCE)
  set(SKBUILD_SCRIPTS_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/scripts]===] CACHE PATH "" FORCE)
  set(SKBUILD_NULL_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/null]===] CACHE PATH "" FORCE)
  set(SKBUILD_METADATA_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/metadata]===] CACHE PATH "" FORCE)
  set(SKBUILD_STATE [===[wheel]===] CACHE STRING "" FORCE)
  set(CMAKE_PREFIX_PATH [===[/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/lib/python3.12/site-packages]===] CACHE PATH "" FORCE)
  set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE "BOTH" CACHE PATH "")
2024-12-19 23:29:17,518 - scikit_build_core - DEBUG - Env CMAKE_ARGS: ['-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld', '-DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip', '-DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool', '-DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk']
2024-12-19 23:29:17,518 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
2024-12-19 23:29:17,519 - scikit_build_core - DEBUG - RUNENV:
  AR='arm64-apple-darwin20.0.0-ar'
  AS='arm64-apple-darwin20.0.0-as'
  BUILD='arm64-apple-darwin20.0.0'
  CC='arm64-apple-darwin20.0.0-clang'
  CC_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang'
  CFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CHECKSYMS='arm64-apple-darwin20.0.0-checksyms'
  CLANG='arm64-apple-darwin20.0.0-clang'
  CLANGXX='arm64-apple-darwin20.0.0-clang++'
  CLICOLOR_FORCE='1'
  CMAKE_ARGS='-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld -DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip -DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool -DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
  CMAKE_GENERATOR='Ninja'
  CMAKE_PREFIX_PATH=':/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build'
  COLORTERM='truecolor'
  COMMAND_MODE='unix2003'
  CONDA_CHANGEPS1='false'
  CONDA_DEFAULT_ENV='mysum:build'
  CONDA_EXE='/opt/anaconda3/bin/conda'
  CONDA_PREFIX='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build'
  CONDA_PROMPT_MODIFIER=''
  CONDA_PYTHON_EXE='/opt/anaconda3/bin/python'
  CONDA_SHLVL='1'
  CONDA_TOOLCHAIN_BUILD='arm64-apple-darwin20.0.0'
  CONDA_TOOLCHAIN_HOST='arm64-apple-darwin20.0.0'
  CPPFLAGS='-D_FORTIFY_SOURCE=2 -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CXX='arm64-apple-darwin20.0.0-clang++'
  CXXFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CXX_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang++'
  DEBUG_CFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  DEBUG_CXXFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -Og -g -Wall -Wextra -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  GEM_HOME='/Users/gururaj/.gem/ruby/3.1.3'
  GEM_PATH='/Users/gururaj/.gem/ruby/3.1.3:/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0'
  GEM_ROOT='/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0'
  GIT_ASKPASS='/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh'
  HOME='/Users/gururaj'
  HOMEBREW_CELLAR='/opt/homebrew/Cellar'
  HOMEBREW_PREFIX='/opt/homebrew'
  HOMEBREW_REPOSITORY='/opt/homebrew'
  HOST='arm64-apple-darwin20.0.0'
  INFOPATH='/opt/homebrew/share/info:/opt/homebrew/share/info:'
  INIT_CWD='/Users/gururaj/Test/pixi/examples/pybind11'
  INSTALL_NAME_TOOL='arm64-apple-darwin20.0.0-install_name_tool'
  LANG='en_US.UTF-8'
  LD='arm64-apple-darwin20.0.0-ld'
  LDFLAGS='-Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib -L/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib'
  LDFLAGS_LD='-headerpad_max_install_names -dead_strip_dylibs -rpath /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib -L/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib'
  LIBTOOL='arm64-apple-darwin20.0.0-libtool'
  LIPO='arm64-apple-darwin20.0.0-lipo'
  LOGNAME='gururaj'
  LaunchInstanceID='82D866B8-7933-4034-8BF7-285C71A4E885'
  MESON_ARGS='-Dbuildtype=release'
  MallocNanoZone='0'
  NM='arm64-apple-darwin20.0.0-nm'
  NMEDIT='arm64-apple-darwin20.0.0-nmedit'
  OBJC='arm64-apple-darwin20.0.0-clang'
  OBJC_DISABLE_INITIALIZE_FORK_SAFETY='YES'
  OBJC_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang'
  OLDPWD='/Users/gururaj/Test/pixi/examples/pybind11'
  ORIGINAL_XDG_CURRENT_DESKTOP='undefined'
  OTOOL='arm64-apple-darwin20.0.0-otool'
  PAGESTUFF='arm64-apple-darwin20.0.0-pagestuff'
  PATH='/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin:/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin:/Users/gururaj/.pixi/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk/bin:/Users/gururaj/.detaspace/bin:/Users/gururaj/.gem/ruby/3.1.3/bin:/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0/bin:/Users/gururaj/.rubies/ruby-3.1.3/bin:/opt/homebrew/bin/youtube-dl:/usr/local/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/unzip/bin:/Users/gururaj/.local/bin:/Users/gururaj/bin:/usr/local/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/gururaj/.pixi/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk/bin:/Users/gururaj/.detaspace/bin:/opt/homebrew/bin/youtube-dl:/usr/local/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/unzip/bin:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Users/gururaj/.local/bin:/Users/gururaj/bin:/Users/gururaj/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand'
  PIXI_ENVIRONMENT_NAME='build'
  PIXI_ENVIRONMENT_PLATFORMS='win-64,linux-64,osx-64,osx-arm64'
  PIXI_EXE='/opt/homebrew/bin/pixi'
  PIXI_IN_SHELL='1'
  PIXI_PROJECT_MANIFEST='/Users/gururaj/Test/pixi/examples/pybind11/pyproject.toml'
  PIXI_PROJECT_NAME='mysum'
  PIXI_PROJECT_ROOT='/Users/gururaj/Test/pixi/examples/pybind11'
  PIXI_PROJECT_VERSION='0.1.0'
  PIXI_PROMPT='(mysum:build) '
  PWD='/Users/gururaj/Test/pixi/examples/pybind11'
  PYTHONIOENCODING='utf-8:backslashreplace'
  RANLIB='arm64-apple-darwin20.0.0-ranlib'
  REDO_PREBINDING='arm64-apple-darwin20.0.0-redo_prebinding'
  RUBYOPT=''
  RUBY_ENGINE='ruby'
  RUBY_ROOT='/Users/gururaj/.rubies/ruby-3.1.3'
  RUBY_VERSION='3.1.3'
  SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
  SECURITYSESSIONID='186b0'
  SEGEDIT='arm64-apple-darwin20.0.0-segedit'
  SEG_ADDR_TABLE='arm64-apple-darwin20.0.0-seg_addr_table'
  SEG_HACK='arm64-apple-darwin20.0.0-seg_hack'
  SHELL='/bin/zsh'
  SHLVL='3'
  SIZE='arm64-apple-darwin20.0.0-size'
  SSH_AUTH_SOCK='/private/tmp/com.apple.launchd.9h7Z2pdIv9/Listeners'
  SSH_SOCKET_DIR='~/.ssh'
  STRINGS='arm64-apple-darwin20.0.0-strings'
  STRIP='arm64-apple-darwin20.0.0-strip'
  TERM='xterm-256color'
  TERM_PROGRAM='vscode'
  TERM_PROGRAM_VERSION='1.96.0'
  TMPDIR='/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/'
  USER='gururaj'
  USER_ZDOTDIR='/Users/gururaj'
  VIRTUAL_ENV='/Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU'
  VSCODE_GIT_ASKPASS_EXTRA_ARGS=''
  VSCODE_GIT_ASKPASS_MAIN='/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js'
  VSCODE_GIT_ASKPASS_NODE='/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)'
  VSCODE_GIT_IPC_HANDLE='/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/vscode-git-11bd5dcec3.sock'
  VSCODE_INJECTION='1'
  WARP_HONOR_PS1='0'
  WARP_IS_LOCAL_SHELL_SESSION='1'
  WARP_USE_SSH_WRAPPER='1'
  XML_CATALOG_FILES='file:///Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/etc/xml/catalog file:///etc/xml/catalog'
  XPC_FLAGS='0x0'
  XPC_SERVICE_NAME='0'
  ZDOTDIR='/Users/gururaj'
  _='/opt/homebrew/bin/pixi'
  _CE_CONDA=''
  _CE_M=''
  _CONDA_PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_arm64_apple_darwin20_0_0'
  __CFBundleIdentifier='com.microsoft.VSCode'
  __CF_USER_TEXT_ENCODING='0x1F5:0x0:0x0'
  ac_cv_func_malloc_0_nonnull='yes'
  ac_cv_func_realloc_0_nonnull='yes'
  build_alias='arm64-apple-darwin20.0.0'
  host_alias='arm64-apple-darwin20.0.0'
2024-12-19 23:29:17,519 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake -S. -B/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build -DCMAKE_BUILD_TYPE:STRING=Release -C/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build/CMakeInit.txt -DCMAKE_INSTALL_PREFIX=/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib -DCMAKE_MAKE_PROGRAM=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja -DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld -DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip -DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool -DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
loading initial cache file /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build/CMakeInit.txt
-- The CXX compiler identification is Clang 17.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python (found version "3.12.8") found components: Interpreter Development.Module
-- Python_EXECUTABLE: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python
-- Python_VERSION: 3.12.8
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/lib/python3.12/site-packages/pybind11/include (found version "2.13.6")
-- Configuring done (0.7s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_C_COMPILER_AR
    CMAKE_C_COMPILER_RANLIB
    CMAKE_LIBTOOL


-- Build files have been written to: /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build
2024-12-19 23:29:18,199 - scikit_build_core - DEBUG - Env CMAKE_ARGS: ['-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld', '-DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip', '-DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool', '-DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk']
2024-12-19 23:29:18,199 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
*** Building project with Ninja...
2024-12-19 23:29:18,199 - scikit_build_core - DEBUG - RUNENV - changes since last run only:
  
2024-12-19 23:29:18,199 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake --build /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build
[1/2] Building CXX object CMakeFiles/mysum.dir/src/main.cpp.o
[2/2] Linking CXX shared module mysum.cpython-312-darwin.so
/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip: warning: changes being made to the file will invalidate the code signature in: /private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build/mysum.cpython-312-darwin.so
[cctools-port]: generating fake signature for '/private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build/mysum.cpython-312-darwin.so.strip'
*** Installing project into wheel...
2024-12-19 23:29:20,736 - scikit_build_core - DEBUG - RUNENV - changes since last run only:
  
2024-12-19 23:29:20,736 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake --install /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/build --prefix /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib --strip
-- Install configuration: "Release"
-- Installing: /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib/./mysum.cpython-312-darwin.so
/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip: warning: changes being made to the file will invalidate the code signature in: /private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib/mysum.cpython-312-darwin.so
[cctools-port]: generating fake signature for '/private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmpqnorc386/wheel/platlib/mysum.cpython-312-darwin.so.strip'
*** Making wheel...
*** Created mysum-0.1.0-cp312-cp312-macosx_14_0_arm64.whl
Successfully built dist/mysum-0.1.0.tar.gz and dist/mysum-0.1.0-cp312-cp312-macosx_14_0_arm64.whl

Although the build is successful, the important part to focus on is the following:

-- Found Python: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python (found version "3.12.8") found components: Interpreter Development.Module
-- Python_EXECUTABLE: /Users/gururaj/.cache/uv/builds-v0/.tmpelSfmU/bin/python

Instead of finding the Python inside .pixi/envs/build, it finds a Python from uv cache. This is a problem because this Python won't have the appropriate libraries.

To make the build fail, edit the find_package line in the CMakeLists.txt to the following:

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module NumPy)

The build fails since it cannot find the NumPy Include Directories:

✨ Pixi task (build in build): uv build
Building source distribution...
*** scikit-build-core 0.10.7 (sdist)
Building wheel from source distribution...
2024-12-19 23:40:08,905 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake -E capabilities
2024-12-19 23:40:08,925 - scikit_build_core - INFO - CMake version: 3.30.5
*** scikit-build-core 0.10.7 using CMake 3.30.5 (wheel)
2024-12-19 23:40:08,937 - scikit_build_core - DEBUG - MACOSX_DEPLOYMENT_TARGET not set, using 14.0
2024-12-19 23:40:08,937 - scikit_build_core - INFO - Build directory: /private/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/build
2024-12-19 23:40:08,940 - scikit_build_core - WARNING - No license files found, set wheel.license-files to [] to suppress this warning
*** Configuring CMake...
2024-12-19 23:40:08,950 - scikit_build_core - DEBUG - SITE_PACKAGES: /Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/lib/python3.12/site-packages
2024-12-19 23:40:08,950 - scikit_build_core - DEBUG - Env CMAKE_ARGS: ['-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld', '-DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip', '-DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool', '-DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk']
2024-12-19 23:40:08,950 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
2024-12-19 23:40:08,970 - scikit_build_core - DEBUG - Default generator: Ninja
2024-12-19 23:40:08,971 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja --version
2024-12-19 23:40:08,975 - scikit_build_core - INFO - Ninja version: 1.12.1
2024-12-19 23:40:08,975 - scikit_build_core - DEBUG - CMAKE_GENERATOR: Using ninja: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja
2024-12-19 23:40:08,975 - scikit_build_core - DEBUG - libdir/(ld)library: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib/libpython3.12.a is not a real file!
2024-12-19 23:40:08,975 - scikit_build_core - DEBUG - Can't find a Python library, got libdir=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib, ldlibrary=libpython3.12.a, multiarch=darwin, masd=None
2024-12-19 23:40:08,978 - scikit_build_core - DEBUG - /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/build/CMakeInit.txt:
  set(SKBUILD [===[2]===] CACHE STRING "" FORCE)
  set(SKBUILD_CORE_VERSION [===[0.10.7]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_NAME [===[mysum]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_VERSION [===[0.1.0]===] CACHE STRING "" FORCE)
  set(SKBUILD_PROJECT_VERSION_FULL [===[0.1.0]===] CACHE STRING "" FORCE)
  set(PYTHON_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/bin/python]===] CACHE STRING "" FORCE)
  set(PYTHON_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/bin/python]===] CACHE STRING "" FORCE)
  set(Python_ROOT_DIR [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk]===] CACHE STRING "" FORCE)
  set(Python_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python_FIND_REGISTRY [===[NEVER]===] CACHE STRING "" FORCE)
  set(Python3_EXECUTABLE [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/bin/python]===] CACHE STRING "" FORCE)
  set(Python3_ROOT_DIR [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk]===] CACHE STRING "" FORCE)
  set(Python3_INCLUDE_DIR [===[/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include/python3.12]===] CACHE PATH "" FORCE)
  set(Python3_FIND_REGISTRY [===[NEVER]===] CACHE STRING "" FORCE)
  set(SKBUILD_SOABI [===[cpython-312-darwin]===] CACHE STRING "" FORCE)
  set(SKBUILD_SABI_COMPONENT [===[]===] CACHE STRING "" FORCE)
  set(SKBUILD_PLATLIB_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/platlib]===] CACHE PATH "" FORCE)
  set(SKBUILD_DATA_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/data]===] CACHE PATH "" FORCE)
  set(SKBUILD_HEADERS_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/headers]===] CACHE PATH "" FORCE)
  set(SKBUILD_SCRIPTS_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/scripts]===] CACHE PATH "" FORCE)
  set(SKBUILD_NULL_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/null]===] CACHE PATH "" FORCE)
  set(SKBUILD_METADATA_DIR [===[/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/metadata]===] CACHE PATH "" FORCE)
  set(SKBUILD_STATE [===[wheel]===] CACHE STRING "" FORCE)
  set(CMAKE_PREFIX_PATH [===[/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/lib/python3.12/site-packages]===] CACHE PATH "" FORCE)
  set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE "BOTH" CACHE PATH "")
2024-12-19 23:40:08,979 - scikit_build_core - DEBUG - Env CMAKE_ARGS: ['-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar', '-DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib', '-DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld', '-DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip', '-DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool', '-DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk']
2024-12-19 23:40:08,979 - scikit_build_core - WARNING - Unsupported CMAKE_ARGS ignored: -DCMAKE_BUILD_TYPE=Release
2024-12-19 23:40:08,979 - scikit_build_core - DEBUG - RUNENV:
  AR='arm64-apple-darwin20.0.0-ar'
  AS='arm64-apple-darwin20.0.0-as'
  BUILD='arm64-apple-darwin20.0.0'
  CC='arm64-apple-darwin20.0.0-clang'
  CC_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang'
  CFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CHECKSYMS='arm64-apple-darwin20.0.0-checksyms'
  CLANG='arm64-apple-darwin20.0.0-clang'
  CLANGXX='arm64-apple-darwin20.0.0-clang++'
  CLICOLOR_FORCE='1'
  CMAKE_ARGS='-DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld -DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip -DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool -DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
  CMAKE_GENERATOR='Ninja'
  CMAKE_PREFIX_PATH=':/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build'
  COLORTERM='truecolor'
  COMMAND_MODE='unix2003'
  CONDA_CHANGEPS1='false'
  CONDA_DEFAULT_ENV='mysum:build'
  CONDA_EXE='/opt/anaconda3/bin/conda'
  CONDA_PREFIX='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build'
  CONDA_PROMPT_MODIFIER=''
  CONDA_PYTHON_EXE='/opt/anaconda3/bin/python'
  CONDA_SHLVL='1'
  CONDA_TOOLCHAIN_BUILD='arm64-apple-darwin20.0.0'
  CONDA_TOOLCHAIN_HOST='arm64-apple-darwin20.0.0'
  CPPFLAGS='-D_FORTIFY_SOURCE=2 -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CXX='arm64-apple-darwin20.0.0-clang++'
  CXXFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  CXX_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang++'
  DEBUG_CFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  DEBUG_CXXFLAGS='-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -Og -g -Wall -Wextra -isystem /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/include'
  GEM_HOME='/Users/gururaj/.gem/ruby/3.1.3'
  GEM_PATH='/Users/gururaj/.gem/ruby/3.1.3:/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0'
  GEM_ROOT='/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0'
  GIT_ASKPASS='/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh'
  HOME='/Users/gururaj'
  HOMEBREW_CELLAR='/opt/homebrew/Cellar'
  HOMEBREW_PREFIX='/opt/homebrew'
  HOMEBREW_REPOSITORY='/opt/homebrew'
  HOST='arm64-apple-darwin20.0.0'
  INFOPATH='/opt/homebrew/share/info:/opt/homebrew/share/info:'
  INIT_CWD='/Users/gururaj/Test/pixi/examples/pybind11'
  INSTALL_NAME_TOOL='arm64-apple-darwin20.0.0-install_name_tool'
  LANG='en_US.UTF-8'
  LD='arm64-apple-darwin20.0.0-ld'
  LDFLAGS='-Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib -L/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib'
  LDFLAGS_LD='-headerpad_max_install_names -dead_strip_dylibs -rpath /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib -L/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/lib'
  LIBTOOL='arm64-apple-darwin20.0.0-libtool'
  LIPO='arm64-apple-darwin20.0.0-lipo'
  LOGNAME='gururaj'
  LaunchInstanceID='82D866B8-7933-4034-8BF7-285C71A4E885'
  MESON_ARGS='-Dbuildtype=release'
  MallocNanoZone='0'
  NM='arm64-apple-darwin20.0.0-nm'
  NMEDIT='arm64-apple-darwin20.0.0-nmedit'
  OBJC='arm64-apple-darwin20.0.0-clang'
  OBJC_DISABLE_INITIALIZE_FORK_SAFETY='YES'
  OBJC_FOR_BUILD='/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang'
  OLDPWD='/Users/gururaj/Test/pixi/examples/pybind11'
  ORIGINAL_XDG_CURRENT_DESKTOP='undefined'
  OTOOL='arm64-apple-darwin20.0.0-otool'
  PAGESTUFF='arm64-apple-darwin20.0.0-pagestuff'
  PATH='/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk/bin:/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin:/Users/gururaj/.pixi/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk/bin:/Users/gururaj/.detaspace/bin:/Users/gururaj/.gem/ruby/3.1.3/bin:/Users/gururaj/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0/bin:/Users/gururaj/.rubies/ruby-3.1.3/bin:/opt/homebrew/bin/youtube-dl:/usr/local/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/unzip/bin:/Users/gururaj/.local/bin:/Users/gururaj/bin:/usr/local/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/gururaj/.pixi/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk/bin:/Users/gururaj/.detaspace/bin:/opt/homebrew/bin/youtube-dl:/usr/local/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/unzip/bin:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Users/gururaj/.local/bin:/Users/gururaj/bin:/Users/gururaj/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand'
  PIXI_ENVIRONMENT_NAME='build'
  PIXI_ENVIRONMENT_PLATFORMS='win-64,osx-arm64,linux-64,osx-64'
  PIXI_EXE='/opt/homebrew/bin/pixi'
  PIXI_IN_SHELL='1'
  PIXI_PROJECT_MANIFEST='/Users/gururaj/Test/pixi/examples/pybind11/pyproject.toml'
  PIXI_PROJECT_NAME='mysum'
  PIXI_PROJECT_ROOT='/Users/gururaj/Test/pixi/examples/pybind11'
  PIXI_PROJECT_VERSION='0.1.0'
  PIXI_PROMPT='(mysum:build) '
  PWD='/Users/gururaj/Test/pixi/examples/pybind11'
  PYTHONIOENCODING='utf-8:backslashreplace'
  RANLIB='arm64-apple-darwin20.0.0-ranlib'
  REDO_PREBINDING='arm64-apple-darwin20.0.0-redo_prebinding'
  RUBYOPT=''
  RUBY_ENGINE='ruby'
  RUBY_ROOT='/Users/gururaj/.rubies/ruby-3.1.3'
  RUBY_VERSION='3.1.3'
  SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
  SECURITYSESSIONID='186b0'
  SEGEDIT='arm64-apple-darwin20.0.0-segedit'
  SEG_ADDR_TABLE='arm64-apple-darwin20.0.0-seg_addr_table'
  SEG_HACK='arm64-apple-darwin20.0.0-seg_hack'
  SHELL='/bin/zsh'
  SHLVL='3'
  SIZE='arm64-apple-darwin20.0.0-size'
  SSH_AUTH_SOCK='/private/tmp/com.apple.launchd.9h7Z2pdIv9/Listeners'
  SSH_SOCKET_DIR='~/.ssh'
  STRINGS='arm64-apple-darwin20.0.0-strings'
  STRIP='arm64-apple-darwin20.0.0-strip'
  TERM='xterm-256color'
  TERM_PROGRAM='vscode'
  TERM_PROGRAM_VERSION='1.96.0'
  TMPDIR='/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/'
  USER='gururaj'
  USER_ZDOTDIR='/Users/gururaj'
  VIRTUAL_ENV='/Users/gururaj/.cache/uv/builds-v0/.tmpoqLrrk'
  VSCODE_GIT_ASKPASS_EXTRA_ARGS=''
  VSCODE_GIT_ASKPASS_MAIN='/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js'
  VSCODE_GIT_ASKPASS_NODE='/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)'
  VSCODE_GIT_IPC_HANDLE='/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/vscode-git-11bd5dcec3.sock'
  VSCODE_INJECTION='1'
  WARP_HONOR_PS1='0'
  WARP_IS_LOCAL_SHELL_SESSION='1'
  WARP_USE_SSH_WRAPPER='1'
  XML_CATALOG_FILES='file:///Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/etc/xml/catalog file:///etc/xml/catalog'
  XPC_FLAGS='0x0'
  XPC_SERVICE_NAME='0'
  ZDOTDIR='/Users/gururaj'
  _='/opt/homebrew/bin/pixi'
  _CE_CONDA=''
  _CE_M=''
  _CONDA_PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_arm64_apple_darwin20_0_0'
  __CFBundleIdentifier='com.microsoft.VSCode'
  __CF_USER_TEXT_ENCODING='0x1F5:0x0:0x0'
  ac_cv_func_malloc_0_nonnull='yes'
  ac_cv_func_realloc_0_nonnull='yes'
  build_alias='arm64-apple-darwin20.0.0'
  host_alias='arm64-apple-darwin20.0.0'
2024-12-19 23:40:08,979 - scikit_build_core - INFO - RUN: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/cmake -S. -B/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/build -DCMAKE_BUILD_TYPE:STRING=Release -C/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/build/CMakeInit.txt -DCMAKE_INSTALL_PREFIX=/var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/wheel/platlib -DCMAKE_MAKE_PROGRAM=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/ninja -DCMAKE_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_CXX_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_C_COMPILER_AR=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_C_COMPILER_RANLIB=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_LINKER=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-ld -DCMAKE_STRIP=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-strip -DCMAKE_INSTALL_NAME_TOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-install_name_tool -DCMAKE_LIBTOOL=/Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-libtool -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
loading initial cache file /var/folders/xl/zb17p_vn1zldv1t3ptjftwkc0000gn/T/tmptj9zdnsa/build/CMakeInit.txt
-- The CXX compiler identification is Clang 17.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/bin/arm64-apple-darwin20.0.0-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Python (missing: Python_NumPy_INCLUDE_DIRS Interpreter
  Development.Module NumPy) (found version "3.12.8")
Call Stack (most recent call first):
  /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /Users/gururaj/Test/pixi/examples/pybind11/.pixi/envs/build/share/cmake-3.30/Modules/FindPython.cmake:673 (find_package_handle_standard_args)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!

*** CMake configuration failed
error: Build backend failed to build wheel through `build_wheel` (exit status: 1)

I've tried some ways in CMake to find the python from the build environment, but I wasn't successful. I think this is a bug since pixi should remove this Python executable or at least not add it to PATH or set the VIRTUAL_ENV variable, which makes CMake's FindPython stop at this Python.

I'm not sure if this is a bug in pixi or rattler, so let me know if I need to post this in another repo! Thanks and happy holidays!

Expected behavior

PYTHON_EXECUTABLE should be set as .pixi/envs/build/bin/python instead of the uv cache python inside a temporary directory

@ruben-arts ruben-arts added 🐞 bug Something isn't working area:build Related to pixi build and removed area:build Related to pixi build labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants