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

feat: add isolated build tools #2479

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Nov 14, 2024

  • This PR aims to add support of isolated build tools. This means that user don't need anymore to have some of the build backends installed in the system, pixi will take care of it.
  • we also introduce --with-system option for pixi build. This mean that pixi instead of installing these tools, will use the one present in system. It was not possible to use these features previously.
  • it also introduce channels in build table. This means that user can specify some private / or different channels to get their build tools. This is also handy for us because we host currently our build tools on pixi-build-backends channel.

It cache the env based on the command, spec and channels.

This is also a small demo of end-2-end result

Screen.Recording.2024-11-13.at.18.57.38.mov

@nichmor nichmor marked this pull request as ready for review November 14, 2024 15:02
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/spec.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/spec.rs Outdated Show resolved Hide resolved
crates/pixi_manifest/src/build.rs Outdated Show resolved Hide resolved
examples/cpp-sdl/pixi.toml Outdated Show resolved Hide resolved
examples/flask-hello-world-pyproject/pyproject.toml Outdated Show resolved Hide resolved
examples/flask-hello-world/pixi.toml Outdated Show resolved Hide resolved
tests/integration_python/build/test_build.py Outdated Show resolved Hide resolved
@tdejager
Copy link
Contributor

Would be great to add the following follow-up PR's:

  • Re-use environments if they are already installed.
  • Report progress when installing build tools.

crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Show resolved Hide resolved
crates/pixi_build_frontend/src/tool/cache.rs Outdated Show resolved Hide resolved
crates/pixi_manifest/src/build.rs Outdated Show resolved Hide resolved
@nichmor nichmor merged commit 2b89d31 into prefix-dev:feature/pixi-build Nov 20, 2024
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants