1. Mar 03, 2022
  2. Mar 02, 2022
    • Stefano Rivera's avatar
      Use sysconfig in Python >= 3.10 (#3764) · 465b2e0b
      Stefano Rivera authored
      * Use sysconfig in Python >= 3.10
      
      Rely on sysconfig for installation paths for Python >= 3.10. distutils
      has been deprecated and will be removed.
      
      Fixes: #3677
      
      * Explicitly select the posix_prefix scheme for platinclude on Debian
      
      Debian's default scheme is posix_local, for installing locally-built
      packages to /usr/local/.  We want to find the Python headers in /usr/,
      so search posix_prefix.
      465b2e0b
    • Henry Schreiner's avatar
      ci: fix PyPy (#3768) · 5f9b090a
      Henry Schreiner authored
      * chore: minor fixes for newer PyPys
      
      * ci: fix issue with PyPy
      5f9b090a
  3. Mar 01, 2022
  4. Feb 26, 2022
  5. Feb 24, 2022
  6. Feb 21, 2022
  7. Feb 19, 2022
    • Peter Hawkins's avatar
      Fix exception handling when pybind11::weakref() fails. (#3739) · 44596bc4
      Peter Hawkins authored
      
      
      * Clear Python error state if pybind11::weakref() fails.
      
      The weakref() constructor calls pybind11_fail() without clearing any
      Python interpreter error state. If a client catches the C++ exception
      thrown by pybind11_fail(), the Python interpreter will be left in an
      error state.
      
      * Add test case for failing to create weakref
      
      * Add Debug asserts for pybind11 fail
      
      * Make error handling more pythonic
      
      * Does this fix PyPy?
      
      * Adapt test to PyPy differences
      
      * Simplify test to remove redundancy
      
      Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
      44596bc4
  8. Feb 16, 2022
  9. Feb 15, 2022
  10. Feb 12, 2022
  11. Feb 11, 2022
  12. Feb 10, 2022
  13. Feb 09, 2022
  14. Feb 08, 2022
  15. Feb 06, 2022
    • Michał Górny's avatar
      tests: update catch to 2.13.5 to fix glibc 2.34 failures (#3679) · 96b943be
      Michał Górny authored
      * Download catch for MinGw
      
      * Fix rest of MinGW
      
      * fix: update catch to 2.13.5 to fix glibc 2.34 failures
      
      Update the downloaded Catch version to 2.13.5, in order to fix build
      failure on glibc 2.34:
      
      ```
      In file included from /usr/include/signal.h:328,
                       from /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:8030,
                       from /tmp/pybind11/tests/test_embed/catch.cpp:13:
      /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:10818:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
      10818 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
            |                                                          ^~~~~~~~~~~
      In file included from /usr/include/python3.9/Python.h:36,
                       from /tmp/pybind11/include/pybind11/detail/common.h:215,
                       from /tmp/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pybind11/include/pybind11/embed.h:12,
                       from /tmp/pybind11/tests/test_embed/catch.cpp:4:
      /usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
        640 | extern long int sysconf (int __name) __THROW;
            |                 ^~~~~~~
      In file included from /tmp/pybind11/tests/test_embed/catch.cpp:13:
      /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:10877:45: error: size of array ‘altStackMem’ is not an integral constant-expression
      10877 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
            |                                             ^~~~~~~~~~~~
      ```
      
      The newest Catch version cannot be used yet because of regression:
      https://github.com/catchorg/Catch2/pull/2364
      
      
      
      * fix: add option for _ check, only define on pybind11
      
      * Revert "fix: add option for _ check, only define on pybind11"
      
      This reverts commit 86817db488c547816e21e20d678db318bb286384.
      
      * fix: only undef _ for catch cpp creation.
      
      Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
      Co-authored-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
      96b943be
    • Sebastian Koslowski's avatar
      94a94872
  16. Feb 04, 2022
  17. Feb 03, 2022