Skip to content

[mypyc] Support overriding the group name used in output files #19272

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

Merged
merged 5 commits into from
Jun 11, 2025

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jun 10, 2025

By default, when compiling more than one file, a shared library
is generated with a file name derived from the sha of compiled modules
(i.e. the group name). This is also used in the names of generated
.c and .h files. Add experimental group_name argument to mypycify
that allows overriding this. This can be useful when integrating
mypyc to a build system, as this makes the names of output files
more predictable.

JukkaL added 5 commits June 10, 2025 16:41
By default, when compiling more than one file, a shared library
is generated with a file derived from the sha of compiled modules
(i.e. the group name). This is also used in the names of generated
.c and .h files. Add experimental `group_name` argument to `mypycify`
that allows overriding this. This can be useful when integrating
mypyc to a build system, as this makes the names of output files
more predictable.
@JukkaL JukkaL merged commit 75f7a25 into master Jun 11, 2025
13 checks passed
@JukkaL JukkaL deleted the mypyc-predictable-output-fnam branch June 11, 2025 10:22
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