From 32dd96424b3ad84d97fbb0c4e56bbe79417d721d Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 28 Nov 2022 10:31:10 -0500 Subject: [PATCH 1/2] Fix the django_template benchmark on cpython main Django has a runtime dependency on distutils, so adding setuptools as a dependency resolves it. This has already been resolved upstream [1], but this allows us to keep using the same version of Django for the benchmark. [1] https://github.com/django/django/pull/14240/files --- .../data-files/benchmarks/bm_django_template/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pyperformance/data-files/benchmarks/bm_django_template/requirements.txt b/pyperformance/data-files/benchmarks/bm_django_template/requirements.txt index 4a3490bf..a22c8e05 100644 --- a/pyperformance/data-files/benchmarks/bm_django_template/requirements.txt +++ b/pyperformance/data-files/benchmarks/bm_django_template/requirements.txt @@ -1,4 +1,5 @@ asgiref==3.3.4 django==3.2.4 pytz==2021.1 +setuptools==65.6.3 sqlparse==0.4.1 From 8fba859e7635df1a4ecbf00389d658be8b3d78c8 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 28 Nov 2022 10:52:03 -0500 Subject: [PATCH 2/2] Also include sympy which has the same issue --- pyperformance/data-files/benchmarks/bm_sympy/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pyperformance/data-files/benchmarks/bm_sympy/requirements.txt b/pyperformance/data-files/benchmarks/bm_sympy/requirements.txt index 652d404d..da67e057 100644 --- a/pyperformance/data-files/benchmarks/bm_sympy/requirements.txt +++ b/pyperformance/data-files/benchmarks/bm_sympy/requirements.txt @@ -1,2 +1,3 @@ mpmath==1.2.1 +setuptools==65.6.3 sympy==1.8