From 2fdf707eceec5f25d4bc9da11e6a15036a246397 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Wed, 26 Jun 2024 09:10:12 -0700 Subject: [PATCH] PYTHON-4507 [v4.8] pip>=21.3 is required for editable installs (#1711) --- doc/changelog.rst | 1 + setup.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index a9fb1f2d80..9f9d3b1503 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -20,6 +20,7 @@ Unavoidable breaking changes - Since we are now using ``hatch`` as our build backend, we no longer have a usable ``setup.py`` file and require installation using ``pip``. Attempts to invoke the ``setup.py`` file will raise an exception. + Additionally, ``pip`` >= 21.3 is now required for editable installs. Changes in Version 4.7.3 ------------------------- diff --git a/setup.py b/setup.py index 9312c68bd4..f371b3d75b 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from __future__ import annotations -msg = "PyMongo>=4.8 no longer supports building via setup.py, use python -m pip install instead" +msg = ( + "PyMongo>=4.8 no longer supports building via setup.py, use python -m pip install instead. If " + "this is an editable install (-e) please upgrade to pip>=21.3 first: python -m pip install --upgrade pip" +) raise RuntimeError(msg)