Skip to content

DOC: add more prominent warnings to pin setuptools - #22154

Merged
mattip merged 1 commit into
numpy:mainfrom
rgommers:warning-pin-setuptools
Aug 21, 2022
Merged

mattip merged 1 commit into
numpy:mainfrom
rgommers:warning-pin-setuptools

Conversation

@rgommers

Copy link
Copy Markdown
Member

Closes gh-22135

[skip github]
[skip azp]

The way this looks in for downstream package authors:

image

And in the reference guide for numpy.distutils:

image

@mattip mattip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a merge conflict

does major releases often and they may contain breaking changes to
``distutils``. ``numpy.distutils`` is deprecated and will *not* be updated
anymore for new ``setuptools`` versions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe turn it around:

Note ``setuptools`` releases often and may break ``numpy.distutils``, which
will *not* be updated anymore for new ``setuptools`` versions. It is therefore
recommended to set an upper version bound in your build configuration for the
last known version of ``setuptools`` that works with your build.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, good suggestion - done

@charris

charris commented Aug 20, 2022

Copy link
Copy Markdown
Member

@rgommers Needs rebase.

@rgommers
rgommers force-pushed the warning-pin-setuptools branch from bfe0c06 to ad4d292 Compare August 21, 2022 15:29
@mattip

mattip commented Aug 21, 2022

Copy link
Copy Markdown
Member

here and here are the rendered warnings. LGTM. Looking forward to removing this all when we remove numpy.distutils.

@mattip
mattip merged commit 8d45b9b into numpy:main Aug 21, 2022
@mattip

mattip commented Aug 21, 2022

Copy link
Copy Markdown
Member

Thanks @rgommers

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: numpy.distutils fails with setuptools==65

3 participants