setup: Add dependencies for Windows

Windows apparently builds pylibfdt if swig is declared as a dependency
in the setup file. Otherwise it must be installed manually and Windows
does not sport a package manager, so this is hard for users.

This change seems to have no ill effects on Linux, at least.

So add a new setup_requires line.

Commit-notes:
This was picked up from:

https://github.com/devicetree-org/pylibfdt/pull/2
END

Series-to: dtc
Series-cc: Gua Guo <gua.guo@intel.com>, david

Signed-off-by: Gua Guo <gua.guo@intel.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Gua Guo 2024-08-09 06:52:12 -06:00 committed by Simon Glass
parent 3d5e376925
commit 9ea9f825d6

View file

@ -76,6 +76,7 @@ setup(
cmdclass = {'build_py' : BuildPy},
author='Simon Glass',
author_email='sjg@chromium.org',
setup_requires = ['swig'],
description='Python binding for libfdt',
ext_modules=[libfdt_module],
package_dir={'': os.path.join(srcdir, 'pylibfdt')},