On Thu, Aug 31, 2023 at 6:39 PM Kevin Sheppard <kevin.k.shepp...@gmail.com> wrote:
> > > On Sun, Aug 21, 2022 at 6:36 PM Ralf Gommers <ralf.gomm...@gmail.com> > wrote: > >> Hi all, >> >> After setuptools 65.0 was released a few days ago, all users of >> numpy.distutils had their builds broken. This is already fixed in >> setuptools 65.0.2 because the breakage was particularly bad. However, the >> next breakage may not be fixed anymore (and more breakages *are* expected). >> So this is a good time to remind you all that you should put an upper bound >> on the setuptools version you allow in the releases of your package - to >> the last version that is known to work with your package. >> >> Our official stance here is that setuptools versions >=60 are not >> supported - see the "deprecating numpy.distutils" thread: >> https://mail.python.org/archives/list/numpy-discussion@python.org/message/PMU4P4YRP2FZA2Z6Z6Z74ZFYD6PCRXQ5/. >> Newer versions may work for you, depending on what features you use. They >> don't for NumPy and for SciPy; both projects pin to 59.X to avoid problems. >> >> For the recent issue with setuptools 65.0.0, see >> https://github.com/numpy/numpy/issues/22135. We have also made the >> warnings about this topic in our docs more explicit, see >> https://github.com/numpy/numpy/pull/22154. >> >> Cheers, >> Ralf >> >> >> _______________________________________________ >> NumPy-Discussion mailing list -- numpy-discussion@python.org >> To unsubscribe send an email to numpy-discussion-le...@python.org >> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ >> Member address: kevin.k.shepp...@gmail.com > > > Is there a good way to pin <2 this when using oldest-supported-numpy? > oldest-supported-numpy gives you build-time `==` constraints. So you already have fixed (<2.0) versions there. What you are asking about is related to runtime upper bounds I think, not build-time? The way to do that is to use dependencies = ["numpy<2.0"] # or: "numpy>=1.22.4,<2.0" in your pyproject.toml. This question is unrelated to an upper bound on setuptools, right? Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com