@@ -656,22 +656,17 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
656
656
657
657
658
658
class NumPySuite (PySuite ):
659
- VERSION = "v1.23.5"
660
-
661
- PREREQUISITES = """
662
- setuptools==63.1.0
663
- wheel==0.37.1
664
- """
665
-
666
- BENCHMARK_REQ = f"""
667
- asv==0.5.1
668
- distlib==0.3.6
669
- filelock==3.8.0
670
- platformdirs==2.5.2
671
- six==1.16.0
672
- virtualenv==20.16.3
673
- numpy=={ VERSION }
674
- """
659
+ VERSION = "v1.26.4"
660
+
661
+ BENCHMARK_REQ = [
662
+ "asv==0.5.1" ,
663
+ "distlib==0.3.6" ,
664
+ "filelock==3.8.0" ,
665
+ "platformdirs==2.5.2" ,
666
+ "six==1.16.0" ,
667
+ "virtualenv==20.16.3" ,
668
+ f"numpy=={ VERSION } " ,
669
+ ]
675
670
676
671
def name (self ):
677
672
return "numpy-suite"
@@ -730,13 +725,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
730
725
731
726
vm .run (workdir , ["-m" , "venv" , join (workdir , vm_venv )])
732
727
pip = join (workdir , vm_venv , "bin" , "pip" )
733
- requirements_txt = join (workdir , "requirements.txt" )
734
- with open (requirements_txt , "w" ) as f :
735
- f .write (self .PREREQUISITES )
736
- mx .run ([pip , "install" , "-r" , requirements_txt ], cwd = workdir )
737
- with open (requirements_txt , "w" ) as f :
738
- f .write (self .BENCHMARK_REQ )
739
- mx .run ([pip , "install" , "-r" , requirements_txt ], cwd = workdir )
728
+ mx .run ([pip , "install" , * self .BENCHMARK_REQ ], cwd = workdir )
740
729
mx .run (
741
730
[join (workdir , vm_venv , "bin" , "asv" ), "machine" , "--yes" ], cwd = benchdir
742
731
)
0 commit comments