1. 24 Sep, 2021 1 commit
    • 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
  2. 23 Sep, 2021 1 commit
  3. 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
  4. 12 Aug, 2021 1 commit
  5. 30 Jul, 2021 1 commit
  6. 27 Jul, 2021 1 commit
  7. 15 Jul, 2021 1 commit
  8. 14 Jul, 2021 1 commit
  9. 12 Jul, 2021 1 commit
  10. 08 Jul, 2021 1 commit
  11. 19 Jun, 2021 1 commit
  12. 06 May, 2021 1 commit
  13. 06 Apr, 2021 1 commit
  14. 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
  15. 21 Jan, 2021 1 commit
  16. 19 Jan, 2021 1 commit
  17. 14 Jan, 2021 3 commits
  18. 22 Dec, 2020 1 commit
  19. 16 Dec, 2020 1 commit
  20. 15 Nov, 2020 1 commit
  21. 05 Nov, 2020 1 commit
  22. 03 Nov, 2020 1 commit
  23. 15 Oct, 2020 2 commits
  24. 14 Oct, 2020 2 commits
  25. 09 Oct, 2020 1 commit
  26. 05 Oct, 2020 1 commit
  27. 03 Oct, 2020 1 commit
  28. 02 Oct, 2020 1 commit
  29. 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
  30. 21 Sep, 2020 1 commit
  31. 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
  32. 06 Sep, 2020 1 commit
  33. 05 Sep, 2020 1 commit
  34. 26 Aug, 2020 1 commit