- Build and upload packages to conda channels
- Allow users to depend directly on source code that builds automatically
- Manage multiple packages in a workspace
- Create cross-language projects with unified tooling
The
pixi-build feature is currently in preview and has some limitations:- Limited set of build backends
- Build backends may be missing some parameters/features
- Recursive source dependencies are not yet supported
- Workspace dependencies cannot be inherited
Quick Start
Here’s a complete example of a buildable Python package:pixi.toml
Understanding the Manifest Structure
The
[workspace] section is currently an alias for [project] and specifies properties shared across all packages like name, channels, and platforms.Build backends describe how to build a conda package for a specific language or build tool. See the backends overview for available options.
Host dependencies are needed during the build process. For Python packages using PEP 517 backends:
The Python build backend (like
hatchling) knows how to build a Python package, and pixi-build-python converts it into a conda package.Learn more about dependency types.
CLI Commands
Once configured, you can use these commands:pixi buildcreates a.condafile from your package- Commands like
pixi installandpixi runautomatically build packages when apath,git, orurldependency is present
Complete Example Structure
Here’s what a complete project looks like:Next Steps
Python Packages
Build Python packages with pixi-build-python
C++ Packages
Build C++ packages with CMake
Workspaces
Manage multiple packages together
Build Backends
Explore available build backends
Troubleshooting
Build fails with 'backend not found'
Build fails with 'backend not found'
Make sure you’ve enabled the preview feature and specified the correct backend channels:
Dependencies not resolving
Dependencies not resolving
Check that:
- All dependencies are available in your specified channels
- Platform specifications match your target platforms
- Version constraints are compatible
Need to see the generated recipe?
Need to see the generated recipe?
Recipes are stored in
.pixi/build/work/<package-name>--<hash>/debug/recipe/You can rebuild using: