From 9ea9f825d6440489fdcbd6c18e81ad2c0cfba010 Mon Sep 17 00:00:00 2001 From: Gua Guo Date: Fri, 9 Aug 2024 06:52:12 -0600 Subject: [PATCH] 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 , david Signed-off-by: Gua Guo Signed-off-by: Simon Glass --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 52844ce0..6efdae6c 100755 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ def run(self): 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')},