Skip to content

Add support for Python 3.15 #1445

@pomponchik

Description

@pomponchik

Hi!

I just added to CI matrix of my project using libcst Python 3.15 (3.15.0-alpha.1) and got an error when installing:

...
         Compiling libc v0.2.149
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.13.2/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("arch_zkasm", "default", "serde", "serde_support", "std"))' -C metadata=db7e61b86cde584a -C extra-filename=-a184cee821ebff6e --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/target-lexicon-a184cee821ebff6e -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.95/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=8671967ddb2caf98 -C extra-filename=-b270e9c05b97669e --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/proc-macro2-b270e9c05b97669e -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name unicode_ident --edition=2018 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-ident-1.0.18/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=04e915a6ce496828 -C extra-filename=-acbf5eb31f9aaff9 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2015 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.149/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=e9775e062bd6112c -C extra-filename=-fb1841f79b1efd76 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/libc-fb1841f79b1efd76 -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
         Compiling autocfg v1.1.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name autocfg --edition=2015 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/autocfg-1.1.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=fd03c144f85110af -C extra-filename=-27676959d62fdb1e --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
         Compiling memoffset v0.9.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2015 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/memoffset-0.9.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "unstable_const", "unstable_offset_of"))' -C metadata=34b75b1a80e20775 -C extra-filename=-56ef500c69cb17c6 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/memoffset-56ef500c69cb17c6 -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern autocfg=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libautocfg-27676959d62fdb1e.rlib --cap-lints allow`
         Compiling heck v0.5.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name heck --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/heck-0.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=59cba654d4d583e9 -C extra-filename=-93c7fa174c74aabf --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/proc-macro2-b270e9c05b97669e/build-script-build`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/target-lexicon-a184cee821ebff6e/build-script-build`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/libc-fb1841f79b1efd76/build-script-build`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name target_lexicon --edition=2018 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.13.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("arch_zkasm", "default", "serde", "serde_support", "std"))' -C metadata=0fb90df7ef7cefa5 -C extra-filename=-d2154df1c4894fbe --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow --cfg 'feature="rust_1_40"'`
         Compiling memchr v2.7.4
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name memchr --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/memchr-2.7.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("alloc", "compiler_builtins", "core", "default", "libc", "logging", "rustc-dep-of-std", "std", "use_std"))' -C metadata=126bad0f70288e35 -C extra-filename=-40fac172f9f88bd4 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name libc --edition=2015 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.149/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=956d0efe0a946421 -C extra-filename=-05c56b08c5200268 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn`
         Compiling pyo3-build-config v0.26.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-build-config-0.26.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="resolve-config"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("abi3", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313", "abi3-py314", "abi3-py37", "abi3-py38", "abi3-py39", "default", "extension-module", "python3-dll-a", "resolve-config"))' -C metadata=129ee9e3a7b0fb50 -C extra-filename=-0dd47faad164771d --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-build-config-0dd47faad164771d -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern target_lexicon=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libtarget_lexicon-d2154df1c4894fbe.rlib --cap-lints allow`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name proc_macro2 --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.95/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=0c94e15a34932e4a -C extra-filename=-ee3017eaee4c59a1 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern unicode_ident=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libunicode_ident-acbf5eb31f9aaff9.rmeta --cap-lints allow --cfg wrap_proc_macro --check-cfg 'cfg(fuzzing)' --check-cfg 'cfg(no_is_available)' --check-cfg 'cfg(no_literal_byte_character)' --check-cfg 'cfg(no_literal_c_string)' --check-cfg 'cfg(no_source_text)' --check-cfg 'cfg(proc_macro_span)' --check-cfg 'cfg(procmacro2_backtrace)' --check-cfg 'cfg(procmacro2_nightly_testing)' --check-cfg 'cfg(procmacro2_semver_exempt)' --check-cfg 'cfg(randomize_layout)' --check-cfg 'cfg(span_locations)' --check-cfg 'cfg(super_unstable)' --check-cfg 'cfg(wrap_proc_macro)'`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/memoffset-56ef500c69cb17c6/build-script-build`
         Compiling aho-corasick v1.0.4
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name aho_corasick --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aho-corasick-1.0.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="perf-literal"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "logging", "perf-literal", "std"))' -C metadata=253708068de71af4 -C extra-filename=-48fc69c3fc5d1d41 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern memchr=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libmemchr-40fac172f9f88bd4.rmeta --cap-lints allow`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-build-config-0dd47faad164771d/build-script-build`
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name pyo3_build_config --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-build-config-0.26.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="resolve-config"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("abi3", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313", "abi3-py314", "abi3-py37", "abi3-py38", "abi3-py39", "default", "extension-module", "python3-dll-a", "resolve-config"))' -C metadata=f6a13e46a50b5ca6 -C extra-filename=-bcee1cb8af0c8943 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern target_lexicon=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libtarget_lexicon-d2154df1c4894fbe.rmeta --cap-lints allow`
         Compiling quote v1.0.40
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name quote --edition=2018 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.40/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "proc-macro"))' -C metadata=11f106c17ed7a96a -C extra-filename=-ffdf4406cd228e25 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern proc_macro2=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libproc_macro2-ee3017eaee4c59a1.rmeta --cap-lints allow`
         Compiling syn v2.0.101
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name syn --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.101/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="visit"' --cfg 'feature="visit-mut"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("clone-impls", "default", "derive", "extra-traits", "fold", "full", "parsing", "printing", "proc-macro", "test", "visit", "visit-mut"))' -C metadata=fc43eb23fc905bd4 -C extra-filename=-bf6ea7cd56c60e7a --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern proc_macro2=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libproc_macro2-ee3017eaee4c59a1.rmeta --extern quote=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libquote-ffdf4406cd228e25.rmeta --extern unicode_ident=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libunicode_ident-acbf5eb31f9aaff9.rmeta --cap-lints allow`
         Compiling pyo3-macros-backend v0.26.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-macros-backend-0.26.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no --warn=rust_2018_idioms '--warn=clippy::useless_transmute' '--warn=clippy::used_underscore_binding' --warn=unused_lifetimes --warn=unsafe_op_in_unsafe_fn '--warn=clippy::unnecessary_wraps' '--warn=clippy::todo' --warn=rust_2021_prelude_collisions '--warn=clippy::manual_ok_or' '--warn=clippy::manual_assert' '--warn=clippy::let_unit_value' --warn=invalid_doc_attributes '--warn=clippy::flat_map_option' '--warn=clippy::filter_map_next' '--warn=clippy::explicit_iter_loop' '--warn=clippy::explicit_into_iter_loop' --warn=elided_lifetimes_in_paths '--warn=clippy::dbg_macro' '--warn=clippy::checked_conversions' '--warn=rustdoc::broken_intra_doc_links' '--warn=rustdoc::bare_urls' -C debug-assertions=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("experimental-async", "experimental-inspect"))' -C metadata=1f4097c5f7e29113 -C extra-filename=-f1a128e82fe98aa0 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-macros-backend-f1a128e82fe98aa0 -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern pyo3_build_config=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libpyo3_build_config-bcee1cb8af0c8943.rlib --cap-lints allow`
         Compiling pyo3-ffi v0.26.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-ffi-0.26.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no --warn=rust_2018_idioms '--warn=clippy::useless_transmute' '--warn=clippy::used_underscore_binding' --warn=unused_lifetimes --warn=unsafe_op_in_unsafe_fn '--warn=clippy::unnecessary_wraps' '--warn=clippy::todo' --warn=rust_2021_prelude_collisions '--warn=clippy::manual_ok_or' '--warn=clippy::manual_assert' '--warn=clippy::let_unit_value' --warn=invalid_doc_attributes '--warn=clippy::flat_map_option' '--warn=clippy::filter_map_next' '--warn=clippy::explicit_iter_loop' '--warn=clippy::explicit_into_iter_loop' --warn=elided_lifetimes_in_paths '--warn=clippy::dbg_macro' '--warn=clippy::checked_conversions' '--warn=rustdoc::broken_intra_doc_links' '--warn=rustdoc::bare_urls' -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="extension-module"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("abi3", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313", "abi3-py314", "abi3-py37", "abi3-py38", "abi3-py39", "default", "extension-module", "generate-import-lib"))' -C metadata=03166e851af09255 -C extra-filename=-9c97066496aa580e --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-ffi-9c97066496aa580e -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern pyo3_build_config=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libpyo3_build_config-bcee1cb8af0c8943.rlib --cap-lints allow`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-macros-backend-f1a128e82fe98aa0/build-script-build`
         Compiling pyo3 v0.26.0
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.26.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no --warn=rust_2018_idioms '--warn=clippy::useless_transmute' '--warn=clippy::used_underscore_binding' --warn=unused_lifetimes --warn=unsafe_op_in_unsafe_fn '--warn=clippy::unnecessary_wraps' '--warn=clippy::todo' --warn=rust_2021_prelude_collisions '--warn=clippy::manual_ok_or' '--warn=clippy::manual_assert' '--warn=clippy::let_unit_value' --warn=invalid_doc_attributes '--warn=clippy::flat_map_option' '--warn=clippy::filter_map_next' '--warn=clippy::explicit_iter_loop' '--warn=clippy::explicit_into_iter_loop' --warn=elided_lifetimes_in_paths '--warn=clippy::dbg_macro' '--warn=clippy::checked_conversions' '--warn=rustdoc::broken_intra_doc_links' '--warn=rustdoc::bare_urls' -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="indoc"' --cfg 'feature="macros"' --cfg 'feature="pyo3-macros"' --cfg 'feature="unindent"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("abi3", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313", "abi3-py314", "abi3-py37", "abi3-py38", "abi3-py39", "anyhow", "arc_lock", "auto-initialize", "bigdecimal", "bytes", "chrono", "chrono-local", "chrono-tz", "default", "either", "experimental-async", "experimental-inspect", "extension-module", "eyre", "full", "generate-import-lib", "hashbrown", "indexmap", "indoc", "inventory", "jiff-02", "lock_api", "macros", "multiple-pymethods", "nightly", "num-bigint", "num-complex", "num-rational", "ordered-float", "parking_lot", "py-clone", "pyo3-macros", "rust_decimal", "serde", "smallvec", "time", "unindent", "uuid"))' -C metadata=d2edf07c457c2591 -C extra-filename=-36cc9a021ad9d202 --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-36cc9a021ad9d202 -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --extern pyo3_build_config=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps/libpyo3_build_config-bcee1cb8af0c8943.rlib --cap-lints allow`
           Running `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-ffi-9c97066496aa580e/build-script-build`
         Compiling peg-runtime v0.8.5
           Running `/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name peg_runtime --edition=2021 /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/peg-runtime-0.8.5/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("std", "unstable"))' -C metadata=2a2227c270d4d76f -C extra-filename=-bbdfe5caa497d50f --out-dir /tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/deps --cap-lints allow`
      error: failed to run custom build command for `pyo3-ffi v0.26.0`
      
      Caused by:
        process didn't exit successfully: `/tmp/pip-install-zs0y7mul/libcst_c23b8bd86d324ee688939b2ba5ca79b8/native/target/release/build/pyo3-ffi-9c97066496aa580e/build-script-build` (exit status: 1)
        --- stdout
        cargo:rustc-check-cfg=cfg(Py_LIMITED_API)
        cargo:rustc-check-cfg=cfg(Py_GIL_DISABLED)
        cargo:rustc-check-cfg=cfg(PyPy)
        cargo:rustc-check-cfg=cfg(GraalPy)
        cargo:rustc-check-cfg=cfg(py_sys_config, values("Py_DEBUG", "Py_REF_DEBUG", "Py_TRACE_REFS", "COUNT_ALLOCS"))
        cargo:rustc-check-cfg=cfg(pyo3_disable_reference_pool)
        cargo:rustc-check-cfg=cfg(pyo3_leak_on_drop_without_reference_pool)
        cargo:rustc-check-cfg=cfg(Py_3_7)
        cargo:rustc-check-cfg=cfg(Py_3_8)
        cargo:rustc-check-cfg=cfg(Py_3_9)
        cargo:rustc-check-cfg=cfg(Py_3_10)
        cargo:rustc-check-cfg=cfg(Py_3_11)
        cargo:rustc-check-cfg=cfg(Py_3_12)
        cargo:rustc-check-cfg=cfg(Py_3_13)
        cargo:rustc-check-cfg=cfg(Py_3_14)
        cargo:rustc-check-cfg=cfg(Py_3_15)
        cargo:rerun-if-env-changed=PYO3_CROSS
        cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
        cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
        cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY
      
        --- stderr
        error: the configured Python interpreter version (3.15) is newer than PyO3's maximum supported version (3.14)
        = help: please check if an updated version of PyO3 is available. Current version: 0.26.0
        = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
      warning: build failed, waiting for other jobs to finish...
      error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path native/libcst/Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib --` failed with code 101
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for libcst
  Building wheel for pyyaml (pyproject.toml): started
  Building wheel for pyyaml (pyproject.toml): finished with status 'done'
  Created wheel for pyyaml: filename=pyyaml-6.0.3-cp315-cp315-linux_x86_64.whl size=592451 sha256=c9f949751aecf106d9a4b01d7cb6734063ce56e46571700f56fff728f2ecc6ab
  Stored in directory: /home/runner/.cache/pip/wheels/39/c5/03/188d3f8dc792f835b1e767b5e6e0fec41846dc06f6dd368652
Successfully built metacode pyyaml
Failed to build libcst
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> libcst
Error: Process completed with exit code 1.

There were more lines ouf output, but i skipped some of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions