libgnt/libgnt

Parents d8762e1bb08e
Children 317da829d6be
Update our python searching since not every distro ships a python3-embed.pc file

Testing Done:
compiled

Reviewed at https://reviews.imfreedom.org/r/833/
  • +17 -4
    meson.build
  • --- a/meson.build Fri Jul 23 04:04:00 2021 -0500
    +++ b/meson.build Fri Jul 23 16:49:19 2021 -0500
    @@ -205,10 +205,23 @@
    ]
    # Check for Python headers
    -python_dep = dependency('python3-embed', required: false)
    -if not python_dep.found()
    - python_dep = dependency('python3', required : false)
    -endif
    +_PYTHONS = [
    + ['python-3.10-embed', '>=3.10'],
    + ['python-3.9-embed', '>=3.9'],
    + ['python-3.8-embed', '>=3.8'],
    + ['python3-embed', '>=3.8'],
    + ['python3', '>=3.8'],
    + ['python-3.7', '>=3.7'],
    + ['python-3.7m', '>=3.7'],
    + ['python-3.6', '>=3.6'],
    + ['python-3.6m', '>=3.6'],
    +]
    +foreach _PYTHON : _PYTHONS
    + python_dep = dependency(_PYTHON[0], version : _PYTHON[1], required: false)
    + if python_dep.found()
    + break
    + endif
    +endforeach
    gnt_config.set('USE_PYTHON', python_dep.found())
    configure_file(output : 'gntconfig.h',