Skip to content

BUG: Avoid importing numpy.distutils on import numpy.testing#20906

Merged
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
charris:backport-20831
Jan 27, 2022
Merged

BUG: Avoid importing numpy.distutils on import numpy.testing#20906
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
charris:backport-20831

Conversation

@charris
Copy link
Member

@charris charris commented Jan 27, 2022

Backport of #20831.

Move the offending imports into the functions that use them so that
numpy.distutils is only loaded if those functions are required.

Fixes #20769.

…0769)

Move the offending imports into the functions that use them so that
numpy.distutils is only loaded if those functions are required.
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jan 27, 2022
@charris charris added this to the 1.22.2 release milestone Jan 27, 2022
@charris charris merged commit cb69266 into numpy:maintenance/1.22.x Jan 27, 2022
@charris charris deleted the backport-20831 branch January 27, 2022 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants