You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By specifying `package.build-system.build-backend` and `package.build-system.channels` you determine which backend is used and from which channel it will be downloaded.
44
-
In this example, we are using `pixi-build-python` in order to build a Python package.
51
+
There are different build backends. Pixi backends can describe how to build a conda package, for a certain language or build tool.
52
+
In this example, we are using `pixi-build-python` backend in order to build a Python package.
1. Specifies workspace properties like the name, channels, and platforms. This is currently an alias for `project`.
51
-
2. Since the build feature is still in preview, you have to add "pixi-build" to `workspace.preview`.
52
-
3. We need to add our package as dependency to the workspace.
53
-
4. In `package` you specify properties specific to the package you want to build.
54
-
5. Packages are built by using build backends.
55
-
By specifying `build-system.build-backend` and `build-system.channels` you determine which backend is used and from which channel it will be downloaded.
56
-
6. There are different build backends.
57
-
Pixi backends can describe how to build a conda package, for a certain language or build tool.
58
-
For example, `pixi-build-python`, allows building a Python package into a conda package.
59
-
7.`simple_python` uses `hatchling` as Python build backend so this needs to be mentioned in `host-dependencies`.
60
-
Read up on host-dependencies in the [Dependency Types](./dependency_types.md#host-dependencies)
61
-
8. Python PEP517 backends like `hatchling` know how to build a Python package.
62
-
So `hatchling` creates a Python package, and `pixi-build-python` turns the Python package into a conda package.
58
+
59
+
We need to add our package `simple_python` as dependency to the workspace.
60
+
61
+
`pixi` also supports `git` dependencies, allowing you to specify a `branch`, `tag`, or `rev` to pin the dependency.
62
+
If none are specified, the latest commit on the default branch is used. The `subdirectory` is optional and specifies the location of the package within the repository.
0 commit comments