zopefoundation / Acquisition

Acquisition is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in.
Other
12 stars 12 forks source link

Uses deprecated API PyEval_CallObjectWithKeywords, raises warnings under 3.10 #55

Closed sallner closed 8 months ago

sallner commented 2 years ago

Deprecation Warning during installation

What I did:

I was running the tests of Zope with tox in a fresh environment with no pre-compiled eggs.

What I expect to happen:

Installation without any warnings.

What actually happened:

Getting distribution for 'Acquisition==4.8'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
src/Acquisition/_Acquisition.c: In function ‘CallMethod’:
src/Acquisition/_Acquisition.c:133:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  133 |     result = PyEval_CallObjectWithKeywords(callable, args, kwargs);
      |     ^~~~~~
In file included from /usr/include/python3.10/Python.h:144,
                 from include/ExtensionClass/ExtensionClass.h:83,
                 from src/Acquisition/_Acquisition.c:15:
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Got Acquisition 4.8.

What version of Python and Zope/Addons I am using:

Linux Python 3.10 via tox Zope on this commit https://github.com/zopefoundation/Zope/tree/314683f66cc705d162a35436b1c7178ddb5f409d