1. 26 Oct, 2021 1 commit
    • Henry Schreiner's avatar
      fix: improve support for Python 3.11-dev (#3368) · e7e2c79f
      Henry Schreiner authored
      * ci: support Python 3.11-dev
      
      Also update 3.10 to final, better PyPy usage
      
      * fix: use PyFrame_GetCode on Python 3.9+
      
      * ci: some bitiness of pypy not supported on win
      
      * chore: update CMake support to 3.22rc1 to quiet warning
      
      * fix: use dev version of py to fix Py 3.11
      
      * tests: print proper Eigen version
      
      * ci: include pypy2, not sure why
      
      * ci: avoid running on Python 3.11 for now
      
      * ci: fix runs
      
      * ci: simpler PyPy usage, drop unmaintained scipy + pypy index
      
      * ci: only binary numpy, wait on pypy 3.8
      
      * refactor: address review
      e7e2c79f
  2. 24 Sep, 2021 2 commits
    • Henry Schreiner's avatar
    • Wenzel Jakob's avatar
      CMake: react to python version changes · 409be833
      Wenzel Jakob authored
      The new FindPython-based variant of the CMake scripts caches information
      about the chosen Python version that can become stale. For example,
      suppose I configure a simple pybind11-based project as follows
      
      ```
      cmake -S . -B build -GNinja -DPython_ROOT=<path to python 3.8>
      ```
      
      which will generate `my_extension.cpython-38-x86_64-linux-gnu.so`.
      A subsequent change to the python version like
      
      ```
      cmake -S . -B build -GNinja -DPython_ROOT=<path to python 3.9>
      ```
      
      does not update all necessary build system information. In particular,
      the compiled file is still called
      `my_extension.cpython-38-x86_64-linux-gnu.so`.
      
      This commit fixes the problem by detecting changes in
      `Python_EXECUTABLE` and re-running Python as needed.
      
      Note that the previous way of detecting Python does not seem to be
      affected, it always specifies the right suffix.
      409be833
  3. 23 Sep, 2021 1 commit
  4. 13 Aug, 2021 1 commit
    • Aaron Gokaslan's avatar
      maint(precommit): Apply isort (#3195) · 9df2f1ff
      Aaron Gokaslan authored
      * Apply isort
      
      * Tweak isort config
      
      * Add env.py as a known_first_party
      
      * Add one missing known first party
      
      * Make config compat with older isort versions
      
      * Add another comment
      
      * Revert pyproject setting
      9df2f1ff
  5. 12 Aug, 2021 1 commit
  6. 30 Jul, 2021 1 commit
  7. 27 Jul, 2021 1 commit
  8. 15 Jul, 2021 1 commit
  9. 14 Jul, 2021 1 commit
  10. 12 Jul, 2021 1 commit
  11. 08 Jul, 2021 1 commit
  12. 19 Jun, 2021 1 commit
  13. 06 May, 2021 1 commit
  14. 06 Apr, 2021 1 commit
  15. 08 Feb, 2021 1 commit
    • Axel Huebl's avatar
      MSVC but not Clang: /MP (#2824) · c78dfb69
      Axel Huebl authored
      On Windows, clang-cl does not understand /MP.
      ```
      clang-cl: warning: argument unused during compilation: '/MP' [-Wunused-command-line-argument]
      ```
      with Clang 10.0.0
      c78dfb69
  16. 21 Jan, 2021 1 commit
  17. 19 Jan, 2021 1 commit
  18. 14 Jan, 2021 3 commits
  19. 22 Dec, 2020 1 commit
  20. 16 Dec, 2020 1 commit
  21. 15 Nov, 2020 1 commit
  22. 05 Nov, 2020 1 commit
  23. 03 Nov, 2020 1 commit
  24. 15 Oct, 2020 2 commits
  25. 14 Oct, 2020 2 commits
  26. 09 Oct, 2020 1 commit
  27. 05 Oct, 2020 1 commit
  28. 03 Oct, 2020 1 commit
  29. 02 Oct, 2020 1 commit
  30. 30 Sep, 2020 2 commits
    • Wenzel Jakob's avatar
      Check if module file extension could be queried correctly (#2538) · 3232e59b
      Wenzel Jakob authored
      On very incomplete python installations (e.g. within Docker), it's
      possible that distutils is not installed. In that case, the
      ``execute_command`` statement that queries distutils for the Python
      module extension fails, and pybind11 uses the empty string. This commit
      adds an extra check that causes a CMake failure with more actionable
      information (just spent a lot of time trying to track down this problem :))
      3232e59b
    • Henry Schreiner's avatar
      ci: releases (#2530) · 82dbc5b7
      Henry Schreiner authored
      * ci: releases
      
      * docs: minor update form @wjakob
      
      * fix: enforce reasonable version of setuptools
      82dbc5b7
  31. 21 Sep, 2020 1 commit
  32. 16 Sep, 2020 2 commits
    • Henry Schreiner's avatar
      refactor: drop mkdoc and update changelog (#2491) · e37921d7
      Henry Schreiner authored
      * refactor: drop mkdoc
      
      * docs: update changelog
      e37921d7
    • Henry Schreiner's avatar
      feat: setup.py redesign and helpers (#2433) · fd61f503
      Henry Schreiner authored
      * feat: setup.py redesign and helpers
      
      * refactor: simpler design with two outputs
      
      * refactor: helper file update and Windows support
      
      * fix: review points from @YannickJadoul
      
      * refactor: fixes to naming and more docs
      
      * feat: more customization points
      
      * feat: add entry point pybind11-config
      
      * refactor: Try Extension-focused method
      
      * refactor: rename alt/inplace to global
      
      * fix: allow usage with git modules, better docs
      
      * feat: global as an extra (@YannickJadoul's suggestion)
      
      * feat: single version location
      
      * fix: remove the requirement that setuptools must be imported first
      
      * fix: some review points from @wjacob
      
      * fix: use .in, add procedure to docs
      
      * refactor: avoid monkeypatch copy
      
      * docs: minor typos corrected
      
      * fix: minor points from @YannickJadoul
      
      * fix: typo on Windows C++ mode
      
      * fix: MSVC 15 update 3+ have c++14 flag
      
      See <https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019>
      
      * docs: discuss making SDists by hand
      
      * ci: use pep517.build instead of manual setup.py
      
      * refactor: more comments from @YannickJadoul
      
      * docs: updates from @ktbarrett
      
      * fix: change to newly recommended tool instead of pep517.build
      
      This was intended as a proof of concept; build seems to be the correct replacement.
      
      See https://github.com/pypa/pep517/pull/83
      
      * docs: updates from @wjakob
      
      * refactor: dual version locations
      
      * docs: typo spotted by @wjakob
      fd61f503
  33. 06 Sep, 2020 1 commit