query: cmake not found with scikit-build-core
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
pixi 0.81.0 on and Intel Mac.
I have a fairly complex needs-to-be compiled C extension Python project. (complexity probably not the issue, but compiled C extension is...)
It uses scikit-build, which, of course, uses cmake.
So I set up a build feature that includes cmake, and an environment that uses the build feature:
build312 = ["py312", "build"]
and a build task:
build_wheel = {cmd = "python -m build --skip-dependency-check --no-isolation ./", default-environment = "build312"}
But when I run it (fresh, env not there yet)
pixi run -e build312 build_wheel
I get:
Pixi task (build_wheel in build312):
(so it's running in the correct environment) but then:
raise CMakeNotFoundError(msg)
scikit_build_core.errors.CMakeNotFoundError: Could not find CMake with version >=3.15But if I pixi shell -e py312 and pixi list, cmake IS there.
And if I run the build command by hand in the shell) it builds fine.
And if I run the pixi task again, it also builds fine
So it looks like it's somehow running the build without having installed everything, or, maybe more likely, without the environment being properly activated so that cmake can be found.
Note that it works fine on our Linux CI, so this may be a Mac-specific issue. (hmm -- bash shell, might that be it?)
Full pixi.toml:
# pixi.toml file for developing pygnome
[workspace]
authors = ["Chris Barker <[email protected]>",
"NOAA GNOME team <[email protected]>"]
channels = ["conda-forge"]
# channels = ["https://prefix.dev/conda-forge"]
name = "PyGnome"
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[dependencies]
python = ">=3.12,<3.14"
awesome-slugify = "*"
cfgrib = "*"
colander = "<2"
cornice = ">=3.4"
docutils = "*"
fiona = "*"
geojson = "*"
geopandas = "*"
# gitpython = "*"
gsw = "*"
htmlmin = "*"
jsmin = "*"
mapbox_earcut = ">=2.0,<3"
netCDF4 = "*"
numpy = ">=2.5,<3" # works with numpy 1 and 2
pandas = "*"
paste = "*"
pastedeploy = ">=2.0"
progressbar = "*"
psutil = "*"
pyogrio = "*"
pyproj = "*"
python-dateutil = "*"
regex = "*"
scipy = "*"
shapely = ">=2.1.2"
trimesh = "*"
ujson = "*"
# NOAA maintained packages
gridded = ">=0.8,<0.9"
pynucos = ">=3.4.1"
cell_tree2d = ">=0.3.0"
py_gd = ">=2.3.3"
adios_db= ">=1.2.5"
[feature.build.dependencies]
cython = ">=3"
pip = "*"
python-build = "*"
cmake = "*"
ninja = "*"
scikit-build-core = ">=0.9.9"
# rattler-build = "*"
setuptools-scm = ">=8"
# merging docs with build, the docs need a built install
# [feature.docs.dependencies]
sphinx = "*"
sphinx_rtd_theme = "*"
nbsphinx = "*"
sphinx-autoapi = "*"
sphinxcontrib-jquery = "*"
[feature.dev.dependencies]
ipython = "*"
ipdb = "*"
matplotlib = "*"
ruff = "*"
# for grid plotting code
pyside6 = "*"
cartopy = "*"
[feature.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-timeout = "*"
testfixtures = "*"
[feature.gridded-dev.dependencies]
# needed for gridded
cell_tree2d = ">=0.3"
cftime = "*"
# needed to build gridded
pip = "*"
python-build = "*"
hatch = ">=1.16.5"
hatch-vcs = "*"
# needed for gridded tests
pooch = ">=1.9.0,<2"
# you can only overide a conda dep with a conda dep :-(
# [feature.dev.override]
# numpy = ">=2.0.0" # Forces numpy to 2.0+ when 'dev' is active
# [feature.gridded-dev.pypi-dependencies]
# this only works if everyone use the same path
# On Chris' machine:
# gridded = { path = "../../../ERD-PythonPackages/gridded", editable = true }
# [feature.examples.dependencies]
# matplotlib = "*"
# xarray = "*"
# jupyter = "*"
# ipython = "*"
[feature.py312.dependencies]
python = "~=3.12.0"
[feature.py313.dependencies]
python = "~=3.13.0"
[environments]
default = { features = ["py312", "dev", "test", "build"], solve-group = "default" }
# using the oldest supported version for development
dev312 = ["py312", "dev", "test", "build"]
dev313 = ["py313", "dev", "test", "build"]
dev-gridded = ["gridded-dev", "py313", "dev", "test", "build"]
build312 = ["py312", "build"]
build313 = ["py313", "build"]
test312 = [ "py312", "test", "build" ]
test313 = [ "py313", "test", "build" ]
# docs = { features = ["py312", "docs"], solve-group = "default" }
[tasks]
install_edit = { cmd = "pip install --no-deps --no-build-isolation -e ."}
build_wheel = {cmd = "python -m build --skip-dependency-check --no-isolation ./", default-environment = "build312"}
install_wheel = { cmd = "pip install --root-user-action=ignore --force-reinstall --no-index --find-links=./dist/ gnome"}
test = { cmd = "pytest --runslow tests/unit_tests/", depends-on = ["install_wheel"]}
test_wheel = { cmd = "pytest --runslow tests/unit_tests/", depends-on = ["install_wheel"]}
lint = { cmd = "ruff check gnome", default-environment = "dev"}
build_docs = { cmd = "cd documentation/ && make html", depends-on = ["install_wheel"], default-environment = "build" }
run_testing_scripts = {cmd = "python run_all.py", cwd = "scripts/testing_scripts", depends-on = ["install_wheel"]}
run_example_scripts = {cmd = "python run_all.py", cwd = "scripts/example_scripts", depends-on = ["install_wheel"]}
run_input_file_examples = {cmd = "python run_all.py", cwd = "scripts/input_file_examples", depends-on = ["install_wheel"]}From this project:
https://github.com/NOAA-ORR-ERD/PyGnome/blob/main/py_gnome/pixi.toml
(A bit out of date, but same issue)
`pixi info` output:
```plaintext
System
------------
Pixi version: 0.81.0
TLS backend: rustls
Platform: osx-64
Virtual packages: __unix=0=0
: __osx=15.7.9=0
: __archspec=1=x86_64_v4
Cache dir: /Users/chris.barker/Library/Caches/rattler/cache
Auth storage: /Users/chris.barker/.rattler/credentials.json
Config locations: No config files found
Global
------------
Bin dir: /Users/chris.barker/.pixi/bin
Environment dir: /Users/chris.barker/.pixi/envs
Manifest dir: /Users/chris.barker/.pixi/manifests/pixi-global.toml
Workspace
------------
Name: PyGnome
Manifest file: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/pixi.toml
Last updated: 21-09-2026 16:54:30
Environments
------------
Environment: default
Features: py312, dev, test, build, default
Solve group: default
Channels: conda-forge
Dependency count: 55
Dependencies: python, ipython, ipdb, matplotlib, ruff, pyside6, cartopy, pytest, pytest-cov, pytest-timeout, testfixtures, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: win-64, osx-64, linux-64, osx-arm64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/default
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: dev312
Features: py312, dev, test, build, default
Channels: conda-forge
Dependency count: 55
Dependencies: python, ipython, ipdb, matplotlib, ruff, pyside6, cartopy, pytest, pytest-cov, pytest-timeout, testfixtures, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: osx-arm64, linux-64, osx-64, win-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/dev312
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: dev313
Features: py313, dev, test, build, default
Channels: conda-forge
Dependency count: 55
Dependencies: python, ipython, ipdb, matplotlib, ruff, pyside6, cartopy, pytest, pytest-cov, pytest-timeout, testfixtures, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: win-64, osx-arm64, linux-64, osx-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/dev313
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: dev-gridded
Features: gridded-dev, py313, dev, test, build, default
Channels: conda-forge
Dependency count: 59
Dependencies: cell_tree2d, cftime, pip, python-build, hatch, hatch-vcs, pooch, python, ipython, ipdb, matplotlib, ruff, pyside6, cartopy, pytest, pytest-cov, pytest-timeout, testfixtures, cython, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, py_gd, adios_db
Target platforms: osx-64, win-64, osx-arm64, linux-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/dev-gridded
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: build312
Features: py312, build, default
Channels: conda-forge
Dependency count: 45
Dependencies: python, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: win-64, linux-64, osx-arm64, osx-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/build312
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: build313
Features: py313, build, default
Channels: conda-forge
Dependency count: 45
Dependencies: python, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: osx-arm64, osx-64, linux-64, win-64
Resolved platform: osx-64 (archspec=x86_64, macos=13.0, __unix)
Minimum platform: osx-64 (__osx >=10.13, __osx >=10.9, __osx >=11.0, __unix)
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/build313
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: test312
Features: py312, test, build, default
Channels: conda-forge
Dependency count: 49
Dependencies: python, pytest, pytest-cov, pytest-timeout, testfixtures, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: osx-arm64, linux-64, osx-64, win-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/test312
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, test
Environment: test313
Features: py313, test, build, default
Channels: conda-forge
Dependency count: 49
Dependencies: python, pytest, pytest-cov, pytest-timeout, testfixtures, cython, pip, python-build, cmake, ninja, scikit-build-core, setuptools-scm, sphinx, sphinx_rtd_theme, nbsphinx, sphinx-autoapi, sphinxcontrib-jquery, awesome-slugify, cfgrib, colander, cornice, docutils, fiona, geojson, geopandas, gsw, htmlmin, jsmin, mapbox_earcut, netCDF4, numpy, pandas, paste, pastedeploy, progressbar, psutil, pyogrio, pyproj, python-dateutil, regex, scipy, shapely, trimesh, ujson, gridded, pynucos, cell_tree2d, py_gd, adios_db
Target platforms: linux-64, osx-64, osx-arm64, win-64
Minimum platform: available after `pixi install`
Prefix location: /Users/chris.barker/Hazmat/GitLab/pygnome/py_gnome/.pixi/envs/test313
Tasks: install_edit, lint, run_input_file_examples, install_wheel, build_wheel, build_docs, run_testing_scripts, run_example_scripts, test_wheel, testIssue description
No response
Expected behavior
I expect cmake to be found when running build in a fresh environment.
Source: prefix-dev/pixi