Skip to content
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

Move compilers into their own package #295

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Sep 6, 2024

In a small step toward exposing the compiler functionality outside of distutils namespace, this PR moves all of the compiler functionality and tests into its own package (distutils.compilers.C). This arrangement makes it easier to see the boundaries of this functionality and reason about the dependencies (i.e. what imports still reference distutils).

This approach keeps compatibility shims so that the compilers and functions and constants are still available in the classic locations.

I'm making this incremental step in order release this concept and make sure it's stable before embarking on removing the distutils dependencies (if that's even possible).

I also took the liberty of using these new namespaces to make the names shorter, less repetetive, and easier to reason about (e.g. compilers.C.unix.Compiler instead of unixccompiler.UnixCCompiler).

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