Skip to content

setuptools 75.0.1 breaks numpy.distutils test #5493

Open

Description

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

With the recent update of setuptools, numpy.distutils no longer works and produces errors:

Screenshot 2024-09-18 at 15 13 18

We have already attempted to address this in conda-build, e.g.:

try:
# numpy.distutils deprecated in Python 3.12+
# see https://numpy.org/doc/stable/reference/distutils_status_migration.html
import numpy.distutils.core
numpy_setup = numpy.distutils.core.setup
numpy.distutils.core.setup = setup
except ImportError:
log.debug("Failed to import numpy for setup patch. Is numpy installed?")

What else should we, can we do here?

See the recipe that breaks when using numpy 2.0.1 + setuptools 75.1.0 for more context.

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

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

Metadata

Assignees

Labels

in-progressissue is actively being worked onseverity::1blocker; broken functionality with no workaroundsource::anacondacreated by members of Anaconda, Inc.type::bugdescribes erroneous operation, use severity::* to classify the typetype::testingissues about tests or the test infrastructure

Type

No type

Projects

  • Status

    🏗️ In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions