prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.41k stars 193 forks source link

Read the `build-system.requires` during pixi init in some way #1109

Open olivier-lacroix opened 8 months ago

olivier-lacroix commented 8 months ago

During pixi init from a pyproject.toml, it would be nice if pixi read the build-system.requires in some way, and maybe created a 'build' environment that would be used to build python packages

Originally posted by @pavelzw in https://github.com/prefix-dev/pixi/issues/1084#issuecomment-2027067605

tdejager commented 7 months ago

Sure, but then we also need to support no build isolation, so that uv actually uses that environment, and not solves its own and hence would never use the conda resolved one: https://github.com/prefix-dev/pixi/issues/1124

ruben-arts commented 2 months ago

@tdejager Would the now be able to be introduced as well? Since we now have no-build-isolation.

tdejager commented 2 months ago

Yes, but we would need to either install them as pypi dependencies giving you a chicken and egg problem, as it might be part of the default prefix.

or we need to interpret them as PyPI dependencies which part of a bigger feature I suppose.