[PATCH 6/6] setup: Add dependencies for Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Gua Guo <gua.guo@xxxxxxxxx>

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 <gua.guo@xxxxxxxxx>
Signed-off-by: Simon Glass <sjg@xxxxxxxxxxxx>
---
This was picked up from:

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

 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@xxxxxxxxxxxx',
+    setup_requires = ['swig'],
     description='Python binding for libfdt',
     ext_modules=[libfdt_module],
     package_dir={'': os.path.join(srcdir, 'pylibfdt')},
-- 
2.34.1





[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux