Stefan Seefeld
8b7a8ccc85
Test multiple Python versions.
2025-03-18 16:00:49 -04:00
Aditya Pillai
3e7be69e1e
Conditionally use Py_REFCNT
boost-1.89.0
boost-1.88.0
2025-03-10 15:10:12 -04:00
Aditya Pillai
cbdf1ce2a1
Use Py_REFCNT instead of ->ob_refcnt
...
Py_REFCNT was stabilized in 3.9, uses this official API instead of the
`ob_refcnt` field that doesn't exist in the free-threaded build of 3.13.
2025-03-10 15:10:12 -04:00
Stefan Seefeld
4fe3403584
Make sure to pass C++ version to preprocessor as well.
boost-1.88.0.beta1
2025-02-01 22:55:02 -05:00
Stefan Seefeld
b1b43f1e1a
Fix homebrew include path.
2025-02-01 22:55:02 -05:00
Peter Dimov
7b1960446b
Merge pull request #470 from boostorg/pr/fix-iterator-detail
...
Replace use of boost/iterator/detail/enable_if.hpp
2025-02-01 19:35:16 +02:00
Peter Dimov
2dc5a92727
Replace use of boost/iterator/detail/enable_if.hpp
2025-01-28 02:27:49 +02:00
sdarwin
4fc3afa3ac
Support newer version of Sphinx
2024-10-10 09:28:59 -04:00
Vitaly Buka
ff0ae9b29d
dynamic_cast before destructor
...
Call to the destructor ends lifetime of the object, including vptr
used by dynamic_cast.
boost-1.87.0
boost-1.87.0.beta1
2024-09-22 12:30:12 -04:00
Daniel Laügt
b988d70207
Alignment fixes
2024-09-21 21:56:41 -04:00
Stefan Seefeld
b3a28d7033
Use the expected return type.
2024-09-18 21:09:05 -04:00
Stefan Seefeld
3ea0cb8501
Upgrade CI platforms.
2024-09-18 21:09:05 -04:00
Jakob van Santen
95e53011d8
Conditionalize nested test for py2
...
__qualname__ didn't exist before python 3.3. Skip checks that depend on it if running in earlier Python versions
2024-09-18 10:36:45 -04:00
Jakob van Santen
301256cf1e
Avoid setting __doc__ on instance methods
2024-09-18 10:36:45 -04:00
Jakob van Santen
c76d67ef3f
Ensure that virtual default implementation has the same kwargs as dispatcher
2024-09-17 17:07:44 -04:00
Jakob van Santen
0102b31945
Unwrap back_reference in get_pytype()
...
This prevents back_reference parameters from decaying to "object" in py signatures
2024-09-17 17:07:44 -04:00
Jakob van Santen
4c6f40fb82
Add generated docstrings to property fget/fset
2024-09-17 17:07:44 -04:00
Jakob van Santen
d1910f3d65
Avoid degrading slice to object in generated sig
2024-09-17 17:07:44 -04:00
Jakob van Santen
c4e3b13dc2
Use qualname for enum repr
2024-09-17 17:07:44 -04:00
Jakob van Santen
a498e2458c
Qualify types defined in other modules
2024-09-17 17:07:44 -04:00
Jakob van Santen
7a3cc07042
Emit qualfied names in docstrings
2024-09-17 17:07:44 -04:00
Jakob van Santen
58b1a010bb
Set __qualname__ for Python >= 3.3
2024-09-17 17:07:44 -04:00
Rene Rivera
8ca8724ad9
Update build deps.
2024-08-18 13:16:00 -04:00
Rene Rivera
5a8d096135
Split b2 dependencies into public and private.
2024-08-18 13:16:00 -04:00
Rene Rivera
30bdbf3ae2
Move inter-lib dependencies to a project variable and into the build targets.
2024-08-18 13:16:00 -04:00
Rene Rivera
5a07cdb96b
Bump B2 require to 5.2
2024-08-18 13:16:00 -04:00
Rene Rivera
06fa956fe8
Add requires-b2 check to top-level build file.
2024-08-18 13:16:00 -04:00
Rene Rivera
9ab1742c46
Add missing NO_LIB usage requirements.
2024-08-18 13:16:00 -04:00
Rene Rivera
071b0bc964
Switch to library requirements instead of source. As source puts extra source in install targets.
2024-08-18 13:16:00 -04:00
Rene Rivera
d8d9861036
Put back removing qualified boostcpp tag. As we need it until the Jamroot removes the qualified tag.
2024-08-18 13:16:00 -04:00
Rene Rivera
f6d20e1099
Make the library modular usable.
2024-08-18 13:16:00 -04:00
Billy K. Poon
99a5352b5c
Another fix for numpy 2.0
...
- Compare pointers directly instead of using PyArray_EquivTypes
2024-07-16 14:15:12 -04:00
Konstantin Podsvirov
1fed0824ad
Fix typo in numpy tutorial
2024-07-01 15:29:32 -04:00
Alexis DUBURCQ
0474de0f6c
Support numpy 2.0.0b1
2024-05-06 09:51:13 +02:00
Peter Dimov
6c3f3ecacf
Normalize static/dynamic link macros and avoid redefinition warnings
2023-12-22 08:14:53 -05:00
Stefan Seefeld
47d5bc76f6
Revert "Remove obsolete Jamfile"
boost-1.83.0.beta1
boost-1.86.0.beta1
boost-1.86.0
boost-1.85.0.beta1
boost-1.85.0
boost-1.84.0.beta1
boost-1.84.0
boost-1.81.0
boost-1.83.0
boost-1.82.0.beta1
boost-1.82.0
2022-09-05 21:43:23 -04:00
Stefan Seefeld
508da1d198
Fix windows CI builds.
2022-08-24 13:02:31 -04:00
Stefan Seefeld
271bcea8bf
Don't attempt to deploy documentation from PRs.
2022-08-24 13:02:31 -04:00
Stefan Seefeld
fdd3e8b2c1
Remove obsolete Jamfile
2022-08-24 13:02:31 -04:00
Victor Stinner
a218babc8d
Fix enum_type_object type on Python 3.11
...
The enum_type_object type inherits from PyLong_Type which is not tracked
by the GC. Instances doesn't have to be tracked by the GC: remove the
Py_TPFLAGS_HAVE_GC flag.
The Python C API documentation says:
"To create a container type, the tp_flags field of the type object
must include the Py_TPFLAGS_HAVE_GC and provide an implementation of
the tp_traverse handler."
https://docs.python.org/dev/c-api/gcsupport.html
The new exception was introduced in Python 3.11 by:
https://github.com/python/cpython/issues/88429
2022-04-26 09:42:26 -04:00
Denis Arnaud
41e208ecb5
Update call_method.hpp
...
Was missing from https://github.com/boostorg/python/pull/320
I've tested it on one of my projects with (that patch on) Boost.Python/Boost 1.76.0 and it works well. Without that patch, there is a deprecation error.
2022-03-19 13:06:49 -04:00
Hajo Kirchhoff
f028aa4076
-fix: issue #239 exec_file does not close the FILE handle. Note: Using FILE* is a bad choice here because of possible exceptions, but Py_RunFile is a C function. This fix works, because Py_RunFile - as a C function - does not throw exceptions.
2021-08-10 12:25:40 -04:00
Hajo Kirchhoff
a060d43bf2
-fix: boost::python::exec_file completely broken when PY_VERSION_HEX >= 0x03010000. Bug: char* f pointed to a temporary buffer returned by PyBytes_AsString. This buffer was released when Py_DECREF(fb) was called. As a result, f pointed to invalid memory when being passed to Py_RunFile.
2021-08-10 12:25:40 -04:00
Stefan Seefeld
8dd1511773
Use the /python//numpy target instead of [ numpy.include ] ( fixes #361 )
boost-1.81.0.beta1
boost-1.80.0.beta1
boost-1.80.0
boost-1.79.0.beta1
boost-1.79.0
boost-1.78.0.beta1
boost-1.78.0
boost-1.77.0.beta1
boost-1.77.0
2021-07-04 15:29:43 -04:00
Peter Dimov
909a4d1530
Merge branch 'master' into develop
2021-06-10 02:46:19 +03:00
TaWeiTu
aee2667407
Fix deprecated usage of <boost/bind.hpp>
...
Replace <boost/bind.hpp> with <boost/bind/bind.hpp> and use namespace
boost::placeholders when necessary.
2021-06-09 07:16:19 -04:00
Peter Dimov
209179fa09
Add CMakeLists.txt
2021-06-04 03:10:21 +03:00
Stefan Seefeld
5e77eabb63
Revert previous commit until 'Boost.Build' is ready.
2021-05-26 07:46:42 -04:00
Peter Dimov
ecda18f01e
Use the /python//numpy target instead of [ numpy.include ] ( fixes #361 )
2021-05-24 18:54:56 -04:00
Stefan Seefeld
2a82afdf6d
Upgrade base image & build prerequisites.
2021-04-30 22:59:25 -04:00