From 18d0b851366fd80ca7420e3a791742e96b9b5ecf Mon Sep 17 00:00:00 2001 From: Gua Guo Date: Sun, 11 Aug 2024 09:02:48 -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. Signed-off-by: Gua Guo Signed-off-by: Simon Glass Message-ID: <20240811150248.7537-6-sjg@chromium.org> Signed-off-by: David Gibson --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 52844ce..6efdae6 100755 --- a/setup.py +++ b/setup.py @@ -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')},