Skip to content

setuptools using CC for compiling C++ files #1732

@nschloe

Description

@nschloe

When compiling an extension like

ext_modules = [
    Extension(
        "_foobar",
        [
           # ...
        ],
        language="C++",
    )
]

setuptools appears to use the CC environment variable when compiling the project. E.g.,

CC=clang++ pip3 install . --user --verbose

will switch to clang++. Since this is a C++ project (as specified in the extension), I would have expected CXX to have an effect, and not CC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InvestigationIssues which are likely in scope but need investigation to figure out the cause

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions