PyXA
PyXA copied to clipboard
Installation fails due to PyObjC using deprecated Setuptools APIs (pkg_resources & setuptools.command.test)
I tried installing PyXA using pip, but the installation failed while building the PyObjC dependency. Here’s part of the error output:
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
pyobjc_setup.py:15: UserWarning: pkg_resources is deprecated as an API.
import pkg_resources
pyobjc_setup.py:87: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
class oc_test(test.test):
pyobjc_setup.py:89: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
According to some research, the issue comes from PyObjC’s setup script (pyobjc_setup.py), which still uses deprecated Setuptools APIs pkg_resources (removed soon in Setuptools ≥ 81) and setuptools.command.test (already removed)
Just reporting this in case PyXA needs an update to handle recent Setuptools changes