Skip to content

Commit

Permalink
setup: Add dependencies for Windows
Browse files Browse the repository at this point in the history
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 <[email protected]>, david

Signed-off-by: Gua Guo <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
gguo11837463 authored and sjg20 committed Aug 13, 2024
1 parent 3d5e376 commit 9ea9f82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def run(self):
cmdclass = {'build_py' : BuildPy},
author='Simon Glass',
author_email='[email protected]',
setup_requires = ['swig'],
description='Python binding for libfdt',
ext_modules=[libfdt_module],
package_dir={'': os.path.join(srcdir, 'pylibfdt')},
Expand Down

0 comments on commit 9ea9f82

Please sign in to comment.