Open mgorny opened 2 months ago
Bisected to daea1130b4245d23ce000266b1ed5a340d1a1e13.
CC @polmes
With further testing, it seems that this is specifically caused by the policy change to 3.27
.
Hmm, I seem to be able to workaround the problem by specifying -DPYBIND11_FINDPYTHON=OFF
.
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.12.0, also tested on f33f6afb667b6b5c0da7dee98dc02f51b4cc0e96
Problem description
When running
ninja check
on PyPy3.10, I'm getting a failure due to a sub-cmake
invocation failing:Full output
``` $ ninja check [0/2] Re-checking globbed directories... [0/6] cd /tmp/pybind11/build/tests && /tmp/pybind11/.venv/bin/pyth...unique_ptr_member.py /tmp/pybind11/tests/test_virtual_functions.py ========================================================= test session starts ========================================================= platform linux -- Python 3.10.13[pypy-7.3.15-final], pytest-8.1.1, pluggy-1.4.0 C++ Info: 13.2.1 20240210 C++17 __pybind11_internals_v4_gcc_libstdcpp_cxxabi1018__ PYBIND11_SIMPLE_GIL_MANAGEMENT=True PYBIND11_NUMPY_1_ONLY=False rootdir: /tmp/pybind11/tests configfile: pytest.ini collected 617 items / 6 skipped ../../tests/test_async.py .. [ 0%] ../../tests/test_builtin_casters.py ........s.......s... [ 3%] ../../tests/test_call_policies.py X.x..... [ 4%] ../../tests/test_callbacks.py ........s....s. [ 7%] ../../tests/test_chrono.py ........................................... [ 14%] ../../tests/test_class.py .........................x...xx..... [ 20%] ../../tests/test_const_name.py ...................... [ 23%] ../../tests/test_constants_and_functions.py ...... [ 24%] ../../tests/test_copy_move.py ........ [ 25%] ../../tests/test_custom_type_casters.py ... [ 26%] ../../tests/test_custom_type_setup.py ss [ 26%] ../../tests/test_docstring_options.py . [ 26%] ../../tests/test_enum.py .......... [ 28%] ../../tests/test_eval.py .x.. [ 29%] ../../tests/test_exceptions.py .......x...........s...... [ 33%] ../../tests/test_factory_constructors.py ............... [ 35%] ../../tests/test_gil_scoped.py .......................................................................................... [ 50%] ../../tests/test_iostream.py ...................... [ 53%] ../../tests/test_kwargs_and_defaults.py ........ [ 55%] ../../tests/test_local_bindings.py .......... [ 56%] ../../tests/test_methods_and_attributes.py ............xx......... [ 60%] ../../tests/test_modules.py ......s [ 61%] ../../tests/test_multiple_inheritance.py .x.x.............. [ 64%] ../../tests/test_opaque_types.py ... [ 65%] ../../tests/test_operator_overloading.py ..... [ 65%] ../../tests/test_pickling.py ...xx... [ 67%] ../../tests/test_python_multiple_inheritance.py .. [ 67%] ../../tests/test_pytypes.py .............................s..............xx................................................. [ 82%] ../../tests/test_sequences_and_iterators.py ................ [ 85%] ../../tests/test_smart_ptr.py ............. [ 87%] ../../tests/test_stl.py .........s............. [ 91%] ../../tests/test_stl_binders.py ..s........... [ 93%] ../../tests/test_tagbased_polymorphic.py . [ 93%] ../../tests/test_thread.py .. [ 94%] ../../tests/test_type_caster_pyobject_ptr.py ................ [ 96%] ../../tests/test_union.py . [ 96%] ../../tests/test_unnamed_namespace_a.py .... [ 97%] ../../tests/test_unnamed_namespace_b.py . [ 97%] ../../tests/test_vector_unique_ptr_member.py .... [ 98%] ../../tests/test_virtual_functions.py ...x...... [100%] ============================================================== XFAILURES ============================================================== ____________________________________________________________ test_alive_gc ____________________________________________________________ capture =Reproducible example code
Is this a regression? Put the last known working version here if it is.
2.11.1