mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
The DTC version in version_gen.h causes a warning with setuptools: setuptools/dist.py:501: UserWarning: The version specified ('1.6.1-g5454474d') \ is an invalid version, this may not work as expected with newer versions of \ setuptools, pip, and PyPI. Please see PEP 440 for more details. It also creates an unnecessary dependency on the rest of the build system(s). Switch to use setuptools_scm instead to get the version for pylibfdt. Signed-off-by: Rob Herring <robh@kernel.org> Message-Id: <20211111011135.2386773-3-robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
12 lines
413 B
Meson
12 lines
413 B
Meson
setup_py = find_program('setup.py')
|
|
setup_py = [setup_py.path(), '--quiet', '--top-builddir', meson.current_build_dir() / '..']
|
|
|
|
custom_target(
|
|
'pylibfdt',
|
|
input: 'libfdt.i',
|
|
output: '_libfdt.so',
|
|
command: [setup_py, 'build_ext', '--build-lib=' + meson.current_build_dir()],
|
|
build_by_default: true,
|
|
)
|
|
|
|
meson.add_install_script(setup_py, 'install', '--prefix=' + get_option('prefix'), '--root=$DESTDIR')
|