Skip to content

Installation fails due to PyObjC using deprecated Setuptools APIs (pkg_resources & setuptools.command.test) #23

Description

@TheGittyPerson

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions