- Feb 27, 2023
-
-
Wenzel Jakob authored
On macOS, extension library builds usually rely on the flag ``-undefined dynamic_lookup`` to get the linker to temporarily accept missing CPython API symbols. As the name implies, those symbols are then dynamically resolved when Python imports such an extension library. Binaries produced in this way are more portable since they don't contain a hardcoded path to the CPython library. This is critical when distributing binary wheels on PyPI, etc.. When targeting macOS>=12, XCode recently started to generate a somewhat ominous warning: ``-undefined dynamic_lookup may not work with chained fixups`` For further detail on what chained fixups are, see the following informative WWDC https://developer.apple.com/videos/play/wwdc2022/110362/ (the relevant part starts about 20mins into the video) The message that the dynamic resolution functionality became broken. I reported this to Apple via feedback request FB11767124. Apple investigated the request and updated the behavior of ``ld`` starting with XCode 14.3b1+: it now disables the fixup chain linker optimization whenever ``-undefined dynamic_lookup`` is specified. The feedback from Apple also stated that the parameter ``-Wl,-no_fixup_chains`` should be specified on pre-14.3 XCode versions to ensure correct behavior. This commit realizes those changes by passing a flag to *always* disable fixup chains. Related discussion is available in the CPython repository (https://github.com/python/cpython/issues/97524).
-
- Feb 23, 2023
-
-
Eli Schwartz authored
Without this, it's impossible to get feature parity between detection mechanisms. Both the pkg-config file and the cmake config set their versions, but the python probe script didn't provide an option for this. So you could print the compiler flags for using it, but you could not check what you got.
-
- Feb 22, 2023
-
-
Henry Schreiner authored
-
- Feb 21, 2023
-
-
xkszltl authored
This comment is unrelated to having T in tparam or not. Probably a typo. Copied the correct one here. Resolve https://github.com/pybind/pybind11/issues/4518
-
- Feb 18, 2023
-
-
Henry Schreiner authored
Signed-off-by:Henry Schreiner <henryschreineriii@gmail.com>
-
Ralf W. Grosse-Kunstleve authored
``` flake8...................................................................Failed - hook id: flake8 - exit code: 1 pybind11/setup_helpers.py:177:13: B028 No explicit stacklevel keyword argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user. warnings.warn("You cannot safely change the cxx_level after setting it!") ^ ```
-
- Feb 16, 2023
-
-
Ralf W. Grosse-Kunstleve authored
* Revert "Go back to CMake 3.25.2 (#4496)" This reverts commit b8f28551. * Apply patch provided by @bradking (with pre-commit cmake-format auto fixes). https://github.com/pybind/pybind11/pull/4503#issuecomment-1424768172
-
Henry Schreiner authored
Signed-off-by:Henry Schreiner <henryschreineriii@gmail.com>
-
- Feb 10, 2023
-
-
Dustin Spicuzza authored
* Always display python type information in cast errors * Address comments * Update comment
-
Mike Essenmacher authored
-
- Feb 08, 2023
-
-
Ralf W. Grosse-Kunstleve authored
-
Ralf W. Grosse-Kunstleve authored
This reverts commit b2c1978c. See #4500 for background.
-
- Feb 07, 2023
-
-
pre-commit-ci[bot] authored
updates: - [github.com/PyCQA/pylint: v2.16.0 → v2.16.1](https://github.com/PyCQA/pylint/compare/v2.16.0...v2.16.1 ) Co-authored-by:
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-
Aaron Gokaslan authored
* Keep registered types until after Py_Finalize(). Fix #4459 * Address reviewer comments
-
- Feb 06, 2023
-
-
dependabot[bot] authored
Bumps [ilammy/msvc-dev-cmd](https://github.com/ilammy/msvc-dev-cmd) from 1.12.0 to 1.12.1. - [Release notes](https://github.com/ilammy/msvc-dev-cmd/releases) - [Commits](https://github.com/ilammy/msvc-dev-cmd/compare/v1.12.0...v1.12.1 ) --- updated-dependencies: - dependency-name: ilammy/msvc-dev-cmd dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Feb 05, 2023
-
-
Aaron Gokaslan authored
-
- Feb 02, 2023
-
-
Henry Schreiner authored
Signed-off-by:Henry Schreiner <henryschreineriii@gmail.com>
-
- Feb 01, 2023
-
-
Daniel Jacobs authored
* Use PyConfig_InitPythonConfig instead of PyConfig_InitIsolatedConfig * add unit test for default python configuration --------- Co-authored-by:Daniel Jacobs <daniel.jacobs@is4s.com>
-
Ralf W. Grosse-Kunstleve authored
-
- Jan 20, 2023
-
-
Ralf W. Grosse-Kunstleve authored
* Resolve flake8 error by replacing `pytest.raises(Exception)` with `SystemError` * Also remove the obsolete comment. * Tweak comment instead of removing it.
-
- Jan 19, 2023
-
-
albanD authored
* Make sure to properly untrack gc objects before freeing them * style: pre-commit fixes * Fix lint * Add comment about where the original track comes from Co-authored-by:pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-
- Jan 15, 2023
-
-
Ralf W. Grosse-Kunstleve authored
-
- Jan 13, 2023
-
-
Ralf W. Grosse-Kunstleve authored
-
- Jan 04, 2023
-
-
Henry Schreiner authored
Signed-off-by:Henry Schreiner <henryschreineriii@gmail.com>
-
Henry Schreiner authored
* docs: update changelog for v2.10.3 Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> * chore: bump versions for 2.10.3 Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> * chore: fix make changelog script with entry is empty Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com>
-
- Jan 03, 2023
-
-
pre-commit-ci[bot] authored
updates: - [github.com/asottile/pyupgrade: v3.3.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.3.0...v3.3.1) - [github.com/PyCQA/isort: 5.10.1 → 5.11.4](https://github.com/PyCQA/isort/compare/5.10.1...5.11.4) - [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0) - [github.com/PyCQA/pylint: v2.15.8 → v2.15.9](https://github.com/PyCQA/pylint/compare/v2.15.8...v2.15.9) - [github.com/shellcheck-py/shellcheck-py: v0.8.0.4 → v0.9.0.2](https://github.com/shellcheck-py/shellcheck-py/compare/v0.8.0.4...v0.9.0.2) - [github.com/pre-commit/mirrors-clang-format: v15.0.4 → v15.0.6](https://github.com/pre-commit/mirrors-clang-format/compare/v15.0.4...v15.0.6 ) Co-authored-by:
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-
cyy authored
* fix incorrect variable check * remove duplicated check * remove unneeded const cast
-
Ralf W. Grosse-Kunstleve authored
* Remove clang 10 C++20 (it broke recently), add clang 15 C++20 while we are at it. * No luck trying clang15: Error response from daemon: manifest for silkeh/clang:15 not found: manifest unknown: manifest unknown. Giving up, this needs to be a separate PR.
-
- Jan 02, 2023
-
-
Ralf W. Grosse-Kunstleve authored
* Fix `detail::obj_class_name()` to work correctly for meta classes. * Adjust expected name for PyPy
-
- Dec 31, 2022
-
-
Ethan Steinberg authored
* First * Fixs * Improve * Additional assertions comment * Improve docs
-
- Dec 29, 2022
-
-
kajananchinniah authored
-
- Dec 28, 2022
-
-
Aaron Gokaslan authored
* chore: update clang-tidy to 15 * Add git * Add NOLINTNEXTLINE for assignment in if * Update CONTRIBUTING.md * Add NOLINTNEXTLINE where needed * Add one more NOLINTNEXTLINE * stl_bind: make more readable * Another missing NOLINTNEXTLINE * Match style elsewhere * Apply reviewer suggestion. Mark false positive
-
- Dec 21, 2022
-
-
Henry Schreiner authored
Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com>
-
Henry Schreiner authored
* docs: changelog for next version Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> * docs: address feedback Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com>
-
- Dec 20, 2022
-
-
Ethan Steinberg authored
* First * Fix centos 7 again :( * Fix minor nits
-
Henry Schreiner authored
Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by:
Henry Schreiner <henryschreineriii@gmail.com>
-
- Dec 16, 2022
-
-
Martin Blanchard authored
* IPO/LTO support for ICX (IntelLLVM) compiler https://github.com/pybind/pybind11/issues/4080 * style: pre-commit fixes * Add WARNING/HELP WANTED comment. Co-authored-by:
Martin Blanchard <martin.blanchard@siemens.com> Co-authored-by:
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by:
Ralf W. Grosse-Kunstleve <rwgk@google.com>
-
Ralf W. Grosse-Kunstleve authored
* Revert "Systematically add `-DCMAKE_VERBOSE_MAKEFILE=ON` to obtain full command lines related to `-Wodr` (#4398)" This reverts commit ff42f525. * Set `env: VERBOSE: 1` as suggested by @henryiii * Set `env: VERBOSE: 1` also in all other .yml files using cmake
-
- Dec 15, 2022
-
-
Martin Blanchard authored
Allow CMake find_package() from multiple directories. https://github.com/pybind/pybind11/issues/4400 Co-authored-by:
Martin Blanchard <martin.blanchard@siemens.com>
-