-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing dependencies for: _khash_primitive_helper #55795
Conversation
Might be overlooking it but why do these modules need this as a source? Can you provide the original error you were getting? |
Thank you! Yeah, the original errors are in the issue under |
When building with samurai, the dependency rules are sorted after loading, while the original implementation of ninja orders the dependency rules based on when they were malloc'd. This can result in underdefined dependencies appearing to work simply as a side effect of when the dependency rule was evaluated. In this case, both As an aside, see #51875 which is pointing out basically the same problem. |
Do these need to be listed in |
Yes, probably. Testing it now! |
Sadly, Meson reports when using
So I think we need to keep it as a source due to limitations of meson. |
Did you declare that dependency against |
824f595
to
4f86857
Compare
Ok, phew that was easy 😆 PTAL, looking better? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Thanks for fixing up algos too.
@mroeschke @lithomas1 any objections?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objections on my side
pandas/_libs/meson.build
Outdated
'algos': {'sources': ['algos.pyx', _algos_common_helper, _algos_take_helper, _khash_primitive_helper]}, | ||
'arrays': {'sources': ['arrays.pyx']}, | ||
'algos': {'sources': ['algos.pyx', _algos_common_helper, _algos_take_helper], 'deps': _khash_primitive_helper_dep}, | ||
'arrays': {'sources': ['arrays.pyx'], 'deps': _khash_primitive_helper_dep}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems weird that this would be needed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with Brock, doesn't arrays not cimport anything from pandas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right you are! 👍 I reckon it hit that in 'earlier' tries, and the proper fix was in index? 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it does seem to build, but breaks the unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's unrelated.
#55804 should fix it.
Signed-off-by: Ville Aikas <[email protected]>
Signed-off-by: Ville Aikas <[email protected]>
Signed-off-by: Ville Aikas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I don't think the failing test is related to this PR looking at other PRs that are failing similarly? |
Thanks @vaikas |
samurai
to build.Thanks to @kaniini for helping me find where to add the dependencies.