Skip to content

Commit b838a1f

Browse files
committed
don't check python-hwdata version if not found
1 parent ed4b7c3 commit b838a1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/meson.build

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ python = import('python')
99
python_with_hwdata = python.find_installation('python3',
1010
modules : ['hwdata'],
1111
required : get_option('require-python-hwdata'))
12-
hwdata_version = run_command('python3', '-c',
13-
'from importlib.metadata import version; print(version(\'hwdata\'))').stdout().strip()
1412

1513
if libdrm_dep.found() and libdrm_amdgpu.found()
1614
sources = ['AMD.cpp', 'AMDUtils.cpp', 'Utils.cpp']
1715
cpp_args = []
1816
deps = [ libdrm_amdgpu, libdrm_dep, boost_dep ]
1917
if (python_with_hwdata.found())
18+
hwdata_version = run_command('python3', '-c',
19+
'from importlib.metadata import version; print(version(\'hwdata\'))')
20+
.stdout().strip()
2021
if (hwdata_version.version_compare('<2.4.1'))
2122
warning('python-hwdata 2.4.1 is recommended for PCI.get_subsystem')
2223
endif

0 commit comments

Comments
 (0)