- 10 Feb, 2022 1 commit
-
-
Henry Schreiner authored
-
- 31 Jan, 2022 1 commit
-
-
Mattia Basaglia authored
* Fix module extension detection for python 3.10 * Fix for python < 3.10 * Use importlib
-
- 21 Dec, 2021 1 commit
-
-
Henry Schreiner authored
-
- 16 Nov, 2021 1 commit
-
-
Sergiu Deitsch authored
-
- 27 Oct, 2021 1 commit
-
-
Henry Schreiner authored
-
- 26 Oct, 2021 1 commit
-
-
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
-
- 24 Sep, 2021 2 commits
-
-
Henry Schreiner authored
-
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 2 commits
-
-
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>
-
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>
-
- 29 Jul, 2021 1 commit
-
-
Henry Schreiner authored
-
- 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
-