Skip to content

Commit 9ea9f82

Browse files
gguo11837463sjg20
authored andcommitted
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: devicetree-org/pylibfdt#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>
1 parent 3d5e376 commit 9ea9f82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def run(self):
7676
cmdclass = {'build_py' : BuildPy},
7777
author='Simon Glass',
7878
author_email='sjg@chromium.org',
79+
setup_requires = ['swig'],
7980
description='Python binding for libfdt',
8081
ext_modules=[libfdt_module],
8182
package_dir={'': os.path.join(srcdir, 'pylibfdt')},

0 commit comments

Comments
 (0)