Package Source
By default, the package definition assumes the location of the source to be in the root of the package definition.
For example if your package has the following structure:
Build backends are expected to have reasonable defaults from where to take the source code. Apart from thepixi-build-rattler-build
backend where you specify the source in the recipe.yaml
, the build backend will default to the directory where the package manifest is located
Alternatively, you can specify where the source is located.
Path#
If your source is located somewhere else, you can specify the location of the source using the package.build.source.path
field.
For example if your package has the following structure:
You can specify the location of the source like this:This will also work with relative paths:
This works great in combination with git submodules.