Skip to content

Should distutils rely on sysconfig for LDSHARED etc? #40

Open
@jmroot

Description

@jmroot

#36 raises a design question: should distutils-as-an-independent-module be relying on the Python interpreter's sysconfigdata variables to know how to compile and link extensions? In the specific case of #36, there's no real reason why distutils couldn't decide at runtime, based on MACOSX_DEPLOYMENT_TARGET, whether to use -undefined dynamic_lookup or link against the framework explicitly, rather than erroring when the sysconfig and runtime targets differ.

Bringing in an equivalent of the checks cpython does at configure time to figure out the right values for all the relevant variables on each platform is of course going to be a much more daunting task. But it might ultimately be a better approach? I don't know what the right answer is here, but I think it's something that needs to be thought about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferredDeferred until distutils adoption is establishedenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions