From 1bec6dac641610df74cf62e8cf5928a0f3691a6e Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 17 Jun 2024 17:24:23 +0200 Subject: [PATCH] Change `setup.py` call w/ `pip install` @ tests Using this CLI interface has been deprecated in `setuptools` [[1]]. [1]: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html --- testing/acceptance_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 7a03f56bc..0f3b35036 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -1464,7 +1464,10 @@ def test_issue_9765(pytester: Pytester) -> None: } ) - subprocess.run([sys.executable, "setup.py", "develop"], check=True) + subprocess.run( + [sys.executable, "-Im", "pip", "install", "-e", "."], + check=True, + ) try: # We are using subprocess.run rather than pytester.run on purpose. # pytester.run is adding the current directory to PYTHONPATH which avoids