Skip to content

setuptools.windows_support requires ctypes support even on non-Windows #2234

@ronaldoussoren

Description

@ronaldoussoren

The module setuptools.windows_support unconditionally imports "ctypes", even though this module is only used when running on a Windows machine. The result of this is that setuptools is unusable on systems without ctypes (in my case because I'm running macOS on arm64 where the patches needed to get ctypes support haven't been merged yet).

Environment Details

  • Operating System and version: macOS 11, arm64
  • Python version: 3.10 (trunk)
  • Python installed how: Manually
  • Virtualenv version (if using virtualenv): n/a

Command(s) that triggered the warning/error (and output):

python setup.py install     # for a project using setuptools in its setup.py file 

Command(s) used to install setuptools (and output): Setuptools was installed when building python "make install".

Versions:

% pip list
Package    Version
---------- -------
pip        20.1.1
setuptools 47.1.0

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