Commit b838a1f 1 parent ed4b7c3 commit b838a1f Copy full SHA for b838a1f
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ python = import('python')
9
9
python_with_hwdata = python.find_installation(' python3' ,
10
10
modules : [' hwdata' ],
11
11
required : get_option (' require-python-hwdata' ))
12
- hwdata_version = run_command (' python3' , ' -c' ,
13
- ' from importlib.metadata import version; print(version(\' hwdata\' ))' ).stdout().strip()
14
12
15
13
if libdrm_dep.found() and libdrm_amdgpu.found()
16
14
sources = [' AMD.cpp' , ' AMDUtils.cpp' , ' Utils.cpp' ]
17
15
cpp_args = []
18
16
deps = [ libdrm_amdgpu, libdrm_dep, boost_dep ]
19
17
if (python_with_hwdata.found())
18
+ hwdata_version = run_command (' python3' , ' -c' ,
19
+ ' from importlib.metadata import version; print(version(\' hwdata\' ))' )
20
+ .stdout().strip()
20
21
if (hwdata_version.version_compare(' <2.4.1' ))
21
22
warning (' python-hwdata 2.4.1 is recommended for PCI.get_subsystem' )
22
23
endif
You can’t perform that action at this time.
0 commit comments