Skip to content

sapling cli build issues with python 3.13 #980

Description

@yiding

PyObject_AsCharBuffer has been deprecated in python 3 and removed as of python 3.13 in favor of PyObject_GetBuffer + PyBuffer_Release.

Currently mpatch.c is the only file that uses this old API.

if (PyObject_AsCharBuffer(tmp, &buffer, (Py_ssize_t*)&blen))


pipes, uu modules has been removed in 3.13, which is referenced in

https://github.com/facebook/sapling/blob/main/eden/scm/lib/python-modules/codegen/src/pycompile.py#L232

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions