Skip to content

Record CXX by name in sysconfig - #86

Merged
zsimic merged 3 commits into
mainfrom
sysconfig-bare-cxx
Dec 3, 2026
Merged

zsimic merged 3 commits into
mainfrom
sysconfig-bare-cxx

Conversation

@zsimic

@zsimic zsimic commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Record CXX by name in sysconfig

./configure looks up the C++ compiler on PATH and records it by the absolute path where it found it. That path belongs to the build host. For example, it becomes /usr/lib/ccache/g++ when a ccache masquerade folder is first on PATH. A portable python builds C++ extensions on other hosts, where that path may not exist. Since python 3.14.6, that makes the build fail with "No such file or directory".

  • After ./configure, CXX in the generated Makefile is set back to the bare compiler name, the same as CC. This only happens when the user didn't set CXX and the bare name resolves to that same path on PATH, so the build still uses the same compiler, ccache included. sysconfig then records CXX='g++' and LDCXXSHARED='g++ … -shared'.
  • A warning is logged if a compiler wrapper (ccache, sccache, distcc) still ends up in sysconfig, for example through an explicit CC="ccache gcc".
  • Bumped astral-sh/setup-uv to v10.4.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

coveralls commented Dec 3, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 47213581538

Coverage increased (+0.002%) to 99.895%

Details

  • Coverage increased (+0.002%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 2 coverage regressions across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

2 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
portable_python/init.py 2 99.64%

Coverage Stats

Coverage Status
Relevant Lines: 2866
Covered Lines: 2863
Line Coverage: 99.9%
Coverage Strength: 4.99 hits per line

💛 - Coveralls

@zsimic
zsimic merged commit 747ebc2 into main Dec 3, 2026
7 checks passed
@zsimic
zsimic deleted the sysconfig-bare-cxx branch December 3, 2026 22:34
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.

2 participants