~roguescholar/boost/+git/python:pr/normalize-link-defines

Last commit made on 2023-12-22
Get this branch:
git clone -b pr/normalize-link-defines https://git.launchpad.net/~roguescholar/boost/+git/python

Branch merges

Branch information

Name:
pr/normalize-link-defines
Repository:
lp:~roguescholar/boost/+git/python

Recent commits

f09045a... by Peter Dimov <email address hidden>

Normalize static/dynamic link macros and avoid redefinition warnings

47d5bc7... by Stefan Seefeld

Revert "Remove obsolete Jamfile"

508da1d... by Stefan Seefeld

Fix windows CI builds.

271bcea... by Stefan Seefeld

Don't attempt to deploy documentation from PRs.

fdd3e8b... by Stefan Seefeld

Remove obsolete Jamfile

a218bab... by Victor Stinner <email address hidden>

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

41e208e... by Denis Arnaud <email address hidden>

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.

f028aa4... by Hajo Kirchhoff <email address hidden>

-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.

a060d43... by Hajo Kirchhoff <email address hidden>

-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.

8dd1511... by Stefan Seefeld

Use the /python//numpy target instead of [ numpy.include ] (fixes #361)