Skip to content

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jan 7, 2025

Using std::regex in CPyCppyy leads to problems in conjunction with XGBoost and PyTorch. We could previously work around these issues by importing these libraries before ROOT, but there still seem to be problems remaining as we see in the CppInterop PR.

This commit tries to revert the introduction of std::regex in CPyCppyy and the import order hack, to see if this would also work.

wlav/CPyCppyy@c437364950cafe06

For ROOTs CPyCppyy, std::regex was only introduced with the syncup in ROOT 6.32. Therefore, reverting back to the previous algorithm without std::regex should not affect our uses.

Using `std::regex` in CPyCppyy leads to problems in conjunction with
XGBoost and PyTorch. We could previously work around these issues by
importing these libraries before ROOT, but there still seem to be
problems remaining as we see in the CppInterop PR.

This commit tries to revert the introduction of `std::regex` in CPyCppyy
and the import order hack, to see if this would also work.

wlav/CPyCppyy@c437364950cafe06

For ROOTs CPyCppyy, `std::regex` was only introduced with the syncup in
ROOT 6.32. Therefore, reverting back to the previous algorithm without
`std::regex` should not affect our uses.
@guitargeek guitargeek self-assigned this Jan 7, 2025
@github-actions
Copy link

github-actions bot commented Jan 7, 2025

Test Results

    17 files      17 suites   4d 4h 31m 1s ⏱️
 2 680 tests  2 676 ✅ 0 💤 4 ❌
43 906 runs  43 902 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit 18b8bef.

@guitargeek
Copy link
Contributor Author

Didn't help in the CppInterOp PR, so not worth doing.

@guitargeek guitargeek closed this Jan 8, 2025
@guitargeek guitargeek deleted the cppyy_regexp branch January 8, 2025 10:30
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.

1 participant