Repository navigation
[3.14] libpython: drop the unused C++ compiler - #950
Merged
isuruf merged 2 commits intoOct 12, 2026
Merged
Conversation
The shared library links no C++ runtime (libpython3.14.so.1.0 needs only libc, libm and friends), but the compiler's run-exports made every libpython build require libstdcxx >=15 on Linux and libcxx on macOS. Because python pins libpython exactly, environments capped below libstdcxx 15 (e.g. Julia 1.10 and 1.12 via CondaPkg) cannot install current python 3.14 builds. Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
MilesCranmerBot
requested review from
chrisburr,
isuruf,
jakirkham,
katietz,
mbargull,
msarahan,
ocefpaf,
pelson,
scopatz and
xhochy
as code owners
October 11, 2026 11:16
Contributor
|
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe/meta.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/38136483403. Examine the logs at this URL for more detail. |
On this branch libpython has no host requirements, so on macOS the host prefix was only populated through the C++ compiler's libcxx run-export. Without it, lib/ does not exist and cp fails. Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
This was referenced Oct 13, 2026
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
Backport of #950. The shared library links no C++ runtime (libpython3.11.so.1.0 needs only libc, libm, libpthread, libdl and libutil), but the compiler's run-exports made every libpython build require libstdcxx >=15 on Linux and libcxx on macOS. Because python pins libpython exactly, environments capped below libstdcxx 15 (e.g. Julia 1.10 and 1.12 via CondaPkg) cannot install current python 3.11 builds. Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
libpython has no host requirements on this branch, so on macOS the host prefix was only populated through the C++ compiler's libcxx run-export. Without it, lib/ does not exist and cp fails (as seen on #950). Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
Backport of #950. The shared library links no C++ runtime (libpython3.12.so.1.0 needs only libc, libm, libpthread, libdl and libutil), but the compiler's run-exports made every libpython build require libstdcxx >=15 on Linux and libcxx on macOS. Because python pins libpython exactly, environments capped below libstdcxx 15 (e.g. Julia 1.10 and 1.12 via CondaPkg) cannot install current python 3.12 builds. Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
libpython has no host requirements on this branch, so on macOS the host prefix was only populated through the C++ compiler's libcxx run-export. Without it, lib/ does not exist and cp fails (as seen on #950). Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
Backport of #950. The shared library links no C++ runtime (libpython3.13.so.1.0 needs only libc, libm, libpthread, libdl and libutil), but the compiler's run-exports made every libpython build require libstdcxx >=15 on Linux and libcxx on macOS. Because python pins libpython exactly, environments capped below libstdcxx 15 (e.g. Julia 1.10 and 1.12 via CondaPkg) cannot install current python 3.13 builds. Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
conda-forge-admin
pushed a commit
that referenced
this pull request
Oct 13, 2026
libpython has no host requirements on this branch, so on macOS the host prefix was only populated through the C++ compiler's libcxx run-export. Without it, lib/ does not exist and cp fails (as seen on #950). Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every
libpythonbuild depends onlibstdcxx >=15on Linux (andlibcxxon macOS), but the library never links a C++ runtime:The dependency is a run-export of
{{ compiler('cxx') }}in thelibpythonoutput's build requirements. Thepythonoutput already drops the same run-export withignore_run_exports_from;libpythondoes not, yet its build compiles no C++:install_shared.shonly copies the library and, on macOS, calls$CCto makelibpython3.dylib.This blocks environments that cap the C++ runtime. CondaPkg.jl caps
libstdcxxat the version bundled with Julia, which is below 15 for Julia 1.10 and 1.12. Under that cap:python+libpythonis unsolvable (libpython 3.11.16 | ... | 3.15.0 would require libstdcxx >=15);python 3.13.16and3.14.8are unsolvable, since they pinlibpythonexactly;python 3.15is unusable for embedding, because it no longer pulls inlibpython(Move libpython.so to another output #843).PythonCall.jl needs to depend on
libpythonexplicitly for 3.15 (JuliaPy/PythonCall.jl#838), and it can only do so oncelibpythonstops requiringlibstdcxx >=15.Scope
Removes
{{ compiler('cxx') }}from thelibpythonoutput's build requirements and bumps the build number. The C++ compiler stays in the test requirements, where cmake needs it. Same change as #949 onmain, for 3.14.x builds. The3.11,3.12and3.13branches have the same line; I'm happy to open those too.Tradeoffs
None that I can find: nothing in the
libpythonbuild compiles C++.Blast Radius
Only the
libpythonoutput's run requirements change.conda renderof the linux-64 release config, before vs after, differs only ingxxleaving that output's build environment andlibstdcxx >=15leaving its run requirements; thepython,libpython-staticand other outputs keep the same requirements apart from ordering.Verification
conda render recipe -m .ci_support/linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno.yaml:libpythonrun requirements go from__glibc, libgcc >=15, libstdcxx >=15, python ...to__glibc, libgcc >=15, python ....libstdcxx <15was checked with pixi on linux-64.