Skip to content

python 3.15.0rc3: align python-feedstock with conda-forge - #256

Merged
cbouss merged 3 commits into
masterfrom
PKG-15601-cf-align
Oct 13, 2026
Merged

cbouss merged 3 commits into
masterfrom
PKG-15601-cf-align

Conversation

@skupr-anaconda

@skupr-anaconda skupr-anaconda commented Sep 4, 2026 •

Copy link
Copy Markdown

Destination channel: ad-testing/label/py315

Links

Explanation of changes:

One commit on master (344ca389). CF-align remainder only — do not re-review the libpython split or the rc3 bump.

  • CBC: gil_type → freethreading: yes/no and PY_FREETHREADING. FT on all platforms. build_type: release only (# - debug; unix debug is #258).
  • source: url + sha256 + patches. No from_source_control / gil_type / PY_GIL_DISABLED / bootstrap / linkage_nature.
  • build_number 1 so rc3 CF-align artifacts do not collide with master's _0 on ad-testing/label/py315.
  • No cpython output. python-freethreading / python-gil / python-jit run: python.
  • python_site_packages_path set. Win FT patches 0026/0030 behind {% if freethreading == "yes" %}. CMake tests use Python_FIND_ABI.
  • install_static.sh: VERABI_NO_DBG for config dir and libpython*.nolto.a (matches CF).
  • fix_staged_scripts.py: cli-{arch}.exe from conda-launchers or conda_build (conda-forge #944; conda-build 26.9+).
  • JIT enabled on *64 including osx-arm64 / linux-aarch64. run_test_jit.py fails if JIT is not compiled in.
  • Drop linux $RPATH sysroot missing_dso_whitelist. Win MSVCR whitelist stays.
  • xorg-libx11 / xorg-xorgproto linux-only. doc_url / dev_url are python.org docs + devguide.

Already on master (#259)

  • libpython / libpython-static. python does not ship libpython*.so/.dylib.

Frozen AR-delta vs conda-forge

  • tk 9.0 from pkgs/main. llvm-tools-21. No _python_rc. Keep 0023 branding, 0029 zlib-ng, 0030 xxlimited.

Notes:

  • Dest ad-testing/label/py315 only. Do not merge to pkgs/main.
  • Human review/merge only when PBP is green.
  • Linter parsing_jinja_failure is skipped ({% if freethreading is not defined %}). Graph generate must succeed; the linter skip may stay red.
  • Linux libpython3.so is empty upstream (cpython#104612); test libpython3${SHLIB_EXT} on unix release only.

@skupr-anaconda skupr-anaconda self-assigned this Sep 4, 2026
skupr-anaconda added a commit that referenced this pull request Sep 21, 2026
Replay #256 topology on origin/master without merge 2a73320.
Keep master patch numbering (0028 site.pth, 0029 zlib-ng, 0030 xxlimited).
Wrap win FT patches in freethreading jinja; add CF conda-forge#928 libpython
unix weak run_exports.

Refs: PKG-15601
@skupr-anaconda

skupr-anaconda commented Sep 23, 2026 •

Copy link
Copy Markdown
Author

Interesting, there is a new vendored d3-flame-graph in v3.15.0rc2: CPython stdlib profiling/sampling/_vendor/. . The upstream source is this https://github.com/spiermar/d3-flame-graph

@skupr-anaconda skupr-anaconda changed the title PKG-15601 — align python-feedstock with conda-forge python 3.15.0rc2: align python-feedstock with conda-forge Sep 23, 2026
skupr-anaconda added a commit that referenced this pull request Sep 24, 2026
PKG-2624 spike stacked on #256. Drop release variants so this graph
uploads only to ad-testing/label/py315-debug, and gate the d ABI with
unconditional tests instead of PY_INTERP_DEBUG getenv.

Windows skipped. Do not merge to pkgs/main.
skupr-anaconda added a commit that referenced this pull request Sep 25, 2026
Resolve #258 vs #256. Drop libexpat pins (expat-feedstock#31). Skip
win debug CMake FindPython. Assert _tkinter_d.lib for GIL and FT.
skupr-anaconda added a commit that referenced this pull request Sep 28, 2026
Replay #256 topology on origin/master without merge 2a73320.
Keep master patch numbering (0028 site.pth, 0029 zlib-ng, 0030 xxlimited).
Wrap win FT patches in freethreading jinja; add CF conda-forge#928 libpython
unix weak run_exports.

Refs: PKG-15601
@skupr-anaconda
skupr-anaconda changed the base branch from master to PKG-15601-libpython-split September 28, 2026 16:00
Base automatically changed from PKG-15601-libpython-split to master October 1, 2026 08:21
skupr-anaconda added a commit that referenced this pull request Oct 6, 2026
Keep #256 CF-align remainder (cpython, freethreading CBC, no
from_source_control/gil_type). Take master 3.15.0rc3 sha256, macOS
shared-PGO dylib symlink, prefix-replacement NEEDED checks, and
explicit run: on noarch outputs. Keep build_number 1 so rc3 CF-align
artifacts do not collide with master's _0 on ad-testing/label/py315.
@skupr-anaconda skupr-anaconda changed the title python 3.15.0rc2: align python-feedstock with conda-forge python 3.15.0rc3: align python-feedstock with conda-forge Oct 6, 2026
@ifitchet

ifitchet commented Oct 6, 2026

Copy link
Copy Markdown
  • 🔴 first-time-package — Package 'cpython' has never been published on the Anaconda main channel

I think we were leaning into NOT introducing a new cpython metapackage.

Here it isn't doing anything useful (unlike libpython) and although we are aligning with CF we are allowed to be different! 😄

So I would remove the cpython output and change the python-{gil,freethreading,...} packages to be dependent on python directly.

( I guess there's a possibility that someone will now want a libpython-{gil,freethreading,...} but we can wait for those requirements to come in. )

Comment thread recipe/build_base.bat Resolved
Comment thread recipe/build_base.sh Resolved
Comment thread recipe/build_base.sh Resolved
Comment thread recipe/build_base.sh Resolved
Comment thread recipe/build_base.sh Resolved
Comment thread recipe/meta.yaml Resolved
Comment thread recipe/meta.yaml Resolved
Comment thread recipe/meta.yaml Resolved
Comment thread recipe/meta.yaml Resolved
Comment thread recipe/meta.yaml Resolved
@skupr-anaconda
skupr-anaconda requested a review from cbouss October 7, 2026 19:43

@cbouss cbouss left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you squash all commits into one and remove most comments of this PR?

I ran some comparison tests between this build and our previous build and found one issue regarding jit that need to be addressed. See inline comments.

Also:

  • install_static.sh should be aligned. There are places where VERABI_NO_DBG should be used over VERABI
  • fix_staged_recipe should be updated following conda-forge#944

Comment thread recipe/build_base.sh Resolved
Comment thread recipe/run_test_jit.py Resolved
Keep freethreading CBC, python_site_packages_path, and no cpython
output. install_static.sh uses VERABI_NO_DBG for config/nolto paths.
fix_staged_scripts.py finds cli-{arch}.exe for conda-build 26.9+
(conda-forge conda-forge#944). JIT on *64 including arm64; run_test_jit.py fails
if JIT is not compiled in. Drop linux sysroot missing_dso whitelist.
@skupr-anaconda

Copy link
Copy Markdown
Author

@cbouss Thank you for the careful review — the JIT catch on arm64 was especially useful.

Addressed in 344ca389 (squashed to one commit on master):

  • Squash / comments — history is now a single commit. Dropped the AR-vs-CF narration on build_base.sh / meta.yaml (CF LDLIBRARY is set to libpython3.9a although no static lib is included in mambaforge for Linux conda-forge/python-feedstock#565, compiler_compat path, extra llvm-tools wrap). Kept only comments that document a real decision (CBC freethreading / # - debug, CMake Python_FIND_ABI, zlib-ng overlink).
  • JIT — applied your suggestions: target_platform != *"64" so osx-arm64 and linux-aarch64 get JIT; run_test_jit.py now fails if JIT is not compiled in.
  • install_static.sh — VERABI_NO_DBG for the config directory and libpython*.nolto.a, matching conda-forge.
  • fix_staged_scripts.py — conda-forge #944: look for cli-{arch}.exe under conda-launchers (conda-build ≥ 26.9) then conda_build, so we are not hardcoded to cli-64.exe.

Happy to adjust further if anything still looks off.

Comment thread recipe/build_base.bat Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One difference I can see here is that CF explicitly added the python3t%_D%.dll libs to the GIL build in this change: conda-forge#934 -- there is a second equivalent change to .lib later on, ~l159 in our script.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed it here 62b2704

Comment thread recipe/build_base.sh Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here -- and in three places below -- we use PREFIX/compiler_compat and CF use $PREFIX/share/python_compiler_compat

@skupr-anaconda skupr-anaconda Oct 12, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After digging into it, we decided to rename it here 4527c55 (this PR)

GIL MSBuild already produces python3t.dll as a PEP 803 abi3t forwarder;
copy it (and python3t.lib) into PREFIX so GIL 3.15 can load those
extensions. Tests assert lib/libs python3t.lib and ctypes.WinDLL.

Matches conda-forge#937. Refs: PKG-15601
FHS-align with conda-forge: sysconfig -B, mkdir, ld symlink, and README
all use $PREFIX/share/python_compiler_compat. Refs: PKG-15601

@cbouss cbouss left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@cbouss
cbouss merged commit da09371 into master Oct 13, 2026
46 of 47 checks passed
@cbouss
cbouss deleted the PKG-15601-cf-align branch October 13, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants