Skip to content

Move compilers into their own package#295

Merged
jaraco merged 6 commits into
mainfrom
feature/compilers-module-redux
Feb 23, 2025
Merged

Move compilers into their own package#295
jaraco merged 6 commits into
mainfrom
feature/compilers-module-redux

Conversation

@jaraco

@jaraco jaraco commented Sep 6, 2024

Copy link
Copy Markdown
Member

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