commit | c001fc01a43e7a06447c06ea3d50bd60641322b8 | [log] [tgz] |
---|---|---|
author | Rob Herring <[email protected]> | Thu Feb 03 12:04:07 2022 -0600 |
committer | David Gibson <[email protected]> | Fri Feb 04 18:52:36 2022 +1100 |
tree | 26440a76e179450c07084ddcfe65086e69b407d4 | |
parent | 26c54f840d2340271f305c04f0d66bafac93274f [diff] |
pylibfdt: fix swig build in install A 'pip install' is silently broken unless the tree is dirty and contains pylibfdt/libfdt.py. The problem is a known issue[1] with SWIG and setuptools where the 'build_py' stage needing module.py runs before the 'build_ext' stage which generates it. The work-around is to override 'build_py' to run 'build_ext' first. [1] https://stackoverflow.com/questions/50239473/building-a-module-with-setuptools-and-swig Signed-off-by: Rob Herring <[email protected]> Message-Id: <[email protected]> Signed-off-by: David Gibson <[email protected]>