Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Jan 6, 2026

Backport of #30585.

pygit2 also defines this symbol - https://github.com/libgit2/pygit2/blob/master/src/pygit2.c#L411

If you build statically, there will be a name conflict. Common practice is to write static PyMethodDef module_methods[] = ....

Related libgit2/pygit2#1446

@charris charris added this to the 2.4.1 Release milestone Jan 6, 2026
@charris charris added 08 - Backport Used to tag backport PRs 36 - Build Build related PR labels Jan 6, 2026
Need to use `static` for local functions and struct definitions.
@charris charris merged commit e9b82cd into numpy:maintenance/2.4.x Jan 7, 2026
72 of 73 checks passed
@charris
Copy link
Member Author

charris commented Jan 7, 2026

The test failure is unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 - Backport Used to tag backport PRs 36 - Build Build related PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants