Skip to content

[BUG] setup.py develop fails for for setuptools>=65 #1562

@zacsimile

Description

@zacsimile

With newer versions of setuptools, I get the error

Traceback (most recent call last):
  File "setup.py", line 64, in <module>
    from numpy.distutils.core import setup
  File "/Users/zachcm/miniforge3/envs/pyme/lib/python3.8/site-packages/numpy/distutils/core.py", line 24, in <module>
    from numpy.distutils.command import config, config_compiler, \
  File "/Users/zachcm/miniforge3/envs/pyme/lib/python3.8/site-packages/numpy/distutils/command/config.py", line 19, in <module>
    from numpy.distutils.mingw32ccompiler import generate_manifest
  File "/Users/zachcm/miniforge3/envs/pyme/lib/python3.8/site-packages/numpy/distutils/mingw32ccompiler.py", line 28, in <module>
    from distutils.msvccompiler import get_build_version as get_build_msvc_version
ModuleNotFoundError: No module named 'distutils.msvccompiler'

There's a discussion of the source of this error at pypa/setuptools#3505.

Installing setuptools<65 solves the issue. Perhaps we should pin this from now on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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