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

setup.py: use CC environment variable if available #1568

Closed
wants to merge 1 commit into from

Conversation

BlackYoup
Copy link

Hello,

I'm using the Exherbo distribution where all of our build tools are prefixed (e.g. x86_64-pc-linux-gnu-cc) and an error is triggered when using the prefix-less tools.

While cc is hardcoded in python's unixccompiler.py, it seems that they expect users of the UnixCCompiler class to override default executables, which is why I open this PR.

If the CC environment variable is defined, use it. If not, use the default one. I only override compiler_so because it's the only executable that is used.

Let me know how you feel about this!

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