Skip to content

Allow user-specified build strings #467

@MartinJepsen

Description

@MartinJepsen

I'm using the Python build backend and there is no (documented) way of supplying your own build string.

I'm not sure of the possibilities here, but adding jinja support (if not present) would be really great. This is possible with rattler-build, which I was using before.

What I'm trying to do

In my company, we use the conda-build inspired build string / build number template of <commit hash>_<no. of commits since latest tag>. I was able to do this in rattler-build by writing a small preprocessing script that sets environment variables for the commit hash and number of commits since latest tag (as output by git describe --tags --abbrev=8), and then using jinja templates in my recipe.yaml for using those environment variables.

Currently with the Python pixi build backend, it seems that the build string is invariant with respect to changes in the source code (so it can't be the package hash, right?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions