Skip to content

Equivalent for distutils.ccompiler.new_compiler needed #4540

Open
@rjungbeck

Description

@rjungbeck

setuptools version

Any version

Python version

Python 312

OS

Windows, Linux

Additional environment information

No response

Description

I use distutils ccompiler.new_compiler() to compile and link .c files (created via cython (with different, modue specific flags), obj files , .rc files, .res files and libraries in dynamic libraries or executables. I also do some (platform) specific changes to the compiler returned (like additional include or library paths, or compiler or linker flags).

By deprecating distutils you are removing this functionality (which does a pretty good job in abstracting different installastion scenarios (C compiler and SDK versions, installation locations, OS, Python versions).

NB: I create some modules automatically (with jinja2) and I want to do my own dependency management

How to Reproduce

Try to do it withot new_compiler()

Other detail

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.distutils deprecationissues stemming from #4137

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions