- 24 Sep, 2021 1 commit
-
-
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.
-
- 23 Sep, 2021 1 commit
-
-
Henry Schreiner authored
-
- 13 Aug, 2021 1 commit
-
-
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
-
- 12 Aug, 2021 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
* Rollback of PR #3030 (Working around Centos 8 failure). * Adding `-DCMAKE_BUILD_TYPE=Release` * Improving existing workaround (undoing the originally intended rollback). * Fixing minor documentation bug.
-
- 30 Jul, 2021 1 commit
-
-
Jerome Robert authored
* mingw64 platform string is like mingw_xxx not "mingw" See https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-python/0099-Change-the-get_platform-method-in-sysconfig-and-dist.patch * Mingw: Do not dllexport exceptions This is a fix for errors like: D:/a/pybind11/pybind11/include/pybind11/detail/common.h:735:23: error: 'dllexport' implies default visibility, but 'class pybind11::builtin_exception' has already been declared with a different visibility 735 | class PYBIND11_EXPORT builtin_exception : public std::runtime_error { | ^~~~~~~~~~~~~~~~~ * GHA: Test Mingw64 build * fix: avoid thin binaries on mingw * fix: drop lto on MinGW * Mingw64: disable PYBIND11_DEPRECATED It trigger many warnings for unknown reasons Co-authored-by:
Henry Schreiner <henryschreineriii@gmail.com>
-
- 27 Jul, 2021 1 commit
-
-
Henry Schreiner authored
-
- 15 Jul, 2021 1 commit
-
-
Henry Schreiner authored
-
- 14 Jul, 2021 1 commit
-
-
Aaron Gokaslan authored
-
- 12 Jul, 2021 1 commit
-
-
Henry Schreiner authored
[skip ci]
-
- 08 Jul, 2021 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
* Splitting out pybind11/stl/filesystem.h. To solve breakages like: https://github.com/deepmind/open_spiel/runs/2999582108 Mostly following the suggestion here: https://github.com/pybind/pybind11/pull/2730#issuecomment-750507575 Except using pybind11/stl/filesystem.h instead of pybind11/stlfs.h, as decided via chat. stl.h restored to the exact state before merging PR #2730 via: ``` git checkout 733f8de2 stl.h ``` * Properly including new stl subdirectory in pip wheel config. This now passes interactively: ``` pytest tests/extra_python_package/ ``` * iwyu cleanup. iwyuh.py -c -std=c++17 -DPYBIND11_TEST_BOOST -Ipybind11/include -I/usr/include/python3.9 -I/usr/include/eigen3 include/pybind11/stl/filesystem.h * Adding PYBIND11_HAS_FILESYSTEM_IS_OPTIONAL. * Eliminating else after return.
-
- 19 Jun, 2021 1 commit
-
-
Robert Schütz authored
-
- 06 May, 2021 1 commit
-
-
Akira Kawata authored
-
- 06 Apr, 2021 1 commit
-
-
Weiming Zhao authored
-
- 08 Feb, 2021 1 commit
-
-
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
-
- 21 Jan, 2021 1 commit
-
-
Henry Schreiner authored
-
- 19 Jan, 2021 1 commit
-
-
Henry Schreiner authored
* style: avoid using unintialized variables Tested with cmake --warn-unintialized -S . -B build * refactor: use function for possibly uninit vars
-
- 14 Jan, 2021 3 commits
-
-
heyer2 authored
* Fix STATIC and SHARED flags not being detected * fix: use classic naming for all lib types Co-authored-by:Henry Schreiner <henryschreineriii@gmail.com>
-
Henry Schreiner authored
Sometimes programmers want to control this, and while it can be changed after the fact, it's commonly set via a CMAKE_ variable; if that variable is set, we should respect that (like the CMAKE_INTERPROCEDURAL_OPTIMIZATION setting).
-
Yannick Jadoul authored
* Disable builds for 3.10.0a4, and enable a nightly 3.10-dev build * Fix job name * Remove deadsnakes job for now * Add deadsnakes jobs * There's no deadsnakes 2.7 * Add 3.10 to versions to be discovered by legacy FindPython, and fix debug input to deadsnakes/action * Try out branch with fix * Update to deadsnakes/action@v2.1.1
-
- 22 Dec, 2020 1 commit
-
-
Henry Schreiner authored
-
- 16 Dec, 2020 1 commit
-
-
Henry Schreiner authored
* fix: regression with installed pybind11 overriding discovered one Closes #2709 * docs: wording incorrect
-
- 15 Nov, 2020 1 commit
-
-
Frank authored
-
- 05 Nov, 2020 1 commit
-
-
Henry Schreiner authored
* fix: match new extension discovery with changes to classic discovery Followup to #2638 - this was fixed in 2.6.0, but only for classic Python * fix: followup to avoid warnings
-
- 03 Nov, 2020 1 commit
-
-
Henry Schreiner authored
-
- 15 Oct, 2020 2 commits
-
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 14 Oct, 2020 2 commits
-
-
Henry Schreiner authored
* feat: basic typing support * docs: mention syncing as suggested by @rwgk * docs: update changelog * docs: copy of warning in limitations
-
Henry Schreiner authored
* fix: ipo should be off for debug or relwithdebinfo Closes #2587 * docs: slightly more detailed about IPO * Update pybind11Common.cmake
-
- 09 Oct, 2020 1 commit
-
-
Henry Schreiner authored
-
- 05 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* fix: find_import didn't work properly for classic tools * ci: fix all files not being checked in style run
-
- 03 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* feat: import check as a common function * docs: add cmake to docs
-
- 02 Oct, 2020 1 commit
-
-
Henry Schreiner authored
-
- 30 Sep, 2020 2 commits
-
-
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 :))
-
Henry Schreiner authored
* ci: releases * docs: minor update form @wjakob * fix: enforce reasonable version of setuptools
-
- 21 Sep, 2020 1 commit
-
-
Henry Schreiner authored
Closes #2515, found by @rhjdjong
-
- 16 Sep, 2020 2 commits
-
-
Henry Schreiner authored
* refactor: drop mkdoc * docs: update changelog
-
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
-
- 06 Sep, 2020 1 commit
-
-
Wenzel Jakob authored
-
- 05 Sep, 2020 1 commit
-
-
Henry Schreiner authored
* fix: use classic extension handling unless otherwise requested * fix: variable must be cached to be used externally
-
- 26 Aug, 2020 1 commit
-
-
Henry Schreiner authored
* fix: respect PYTHON_VERSION if set in classic mode * fix: add warning when using PYTHON_VERSION
-