Skip to content

Conversation

@MridulS
Copy link
Member

@MridulS MridulS commented Oct 6, 2025

fixes #3755

@SimonHeybrock
Copy link
Member

Changes look ok but builds are failing?

@MridulS
Copy link
Member Author

MridulS commented Oct 7, 2025

Yeah its conan being annoying, conan v1 by default doesn't recognize apple-clang 17.0 (needs to be patched in our CI)

Comment on lines +5 to +23
def patch_conan() -> bool:
for site_dir in site.getsitepackages():
conf_file = Path(site_dir) / "conans/client/conf/__init__.py"
if conf_file.exists():
break
else:
print("No Conan config file found, skipping")
return False
content = conf_file.read_text()
old_version_string = """apple-clang: &apple_clang
version: ["5.0", "5.1", "6.0", "6.1", "7.0", "7.3", "8.0", "8.1", "9.0", "9.1",
"10.0", "11.0", "12.0", "13", "13.0", "13.1", "14", "14.0", "15", "15.0", "16", "16.0"]""" # noqa: E501
new_version_string = """apple-clang: &apple_clang
version: ["15", "15.0", "16", "16.0","17", "17.0"]"""
content = content.replace(old_version_string, new_version_string)
conf_file.write_text(content)
print(f"Patched Conan config file {conf_file}")
return True

Copy link
Member Author

Choose a reason for hiding this comment

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

Absolutely terrible and fragile, but it works.

Comment on lines +331 to +337
slicer<T>::template set<std::tuple<Dim, scipp::index>>(
self, to_dim_type(std::move(index)), data);
});
c.def("__setitem__", [](T &self, std::tuple<std::string, py::slice> index,
const py::object &data) {
slicer<T>::template set(self, to_dim_type(std::move(index)), data);
slicer<T>::template set<std::tuple<Dim, py::slice>>(
self, to_dim_type(std::move(index)), data);
Copy link
Member Author

Choose a reason for hiding this comment

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

The compiler in macos-15-intel was complaining about this.

commands:
- python -m pytest -v tests
- python cmake-package-test/build.py
- python cmake-package-test/build.py # [linux]
Copy link
Member Author

Choose a reason for hiding this comment

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

Turn off cmake-package-test for macos and windows as it takes too long to build scipp twice in the CI.

@MridulS MridulS requested a review from jl-wynen October 9, 2025 09:10
@MridulS
Copy link
Member Author

MridulS commented Oct 9, 2025

All weekly builds passed https://github.com/scipp/scipp/actions/runs/18369820377

@MridulS MridulS enabled auto-merge (squash) October 9, 2025 09:56
@MridulS MridulS merged commit 96ad7e8 into scipp:main Oct 9, 2025
4 checks passed
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.

Figure out what to do with building for intel Macs, macos-13 runners will soon be deprecated

2 participants