Skip to content

Fix mantid run constraint#13

Merged
peterfpeterson merged 3 commits intomainfrom
fix-mantid-run-constraint
Feb 9, 2026
Merged

Fix mantid run constraint#13
peterfpeterson merged 3 commits intomainfrom
fix-mantid-run-constraint

Conversation

@thomashampson
Copy link

@thomashampson thomashampson commented Feb 5, 2026

mantid was previously in the run_exports section, which meant "if mantid-profiler is in the build or host environment, install mantid>6.10"

What we really want is "if we want to install mantid alongside mantid-profiler, it must be mantid>6.10. This is achieved via run_contraints.

Copy link
Member

@peterfpeterson peterfpeterson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question about .conda file that is generated from this.

Unrelated, this no longer needs channels specified in the rattler-build part of .github/workflows/package.yml. Can you change the magic line to

rattler-build build --experimental -r .

because it only needs the (default) conda-forge channel

context:
version: ${{ load_from_file("../pyproject.toml").project.version }}
build_number: 0
build_number: 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, the new package isn't getting the build number in the filename. Building locally

$ cd conda.recipe
$ rattler-build build -c conda-forge --experimental -r .
....
$ ls output/noarch/*conda
output/noarch/mantidprofiler-1.4-py.conda

will that do the right thing once it is uploaded to anaconda.org?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure, I would like to think so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is to modify the build.string that is specified without a build number in it

@peterfpeterson peterfpeterson merged commit 309e84e into main Feb 9, 2026
3 checks passed
@peterfpeterson peterfpeterson deleted the fix-mantid-run-constraint branch February 9, 2026 13:27
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.

2 participants

Comments