[PATCH v4 0/3] pylibfdt: Add installation support

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



This series adds support for installation of the Pylib module. It adjusts
the setup.py file to provide this functionality and the Makefile rules
to call it correctly.

It also adds a way to disable building the Python module. This is useful
since some build systems want to use setup.py to do both the build and
the install step. In this case the correct build commands would be:

   make NO_PYTHON=1
   make install_pylibfdt SETUP_PREFIX=/path/to/install_prefix

Version 3 adds support for running setup.py stand-alone:

   ./pylibfdt/setup.py --install_path [--prefix=/path/to/install_dir]

Changes in v4:
- Fix dependencies to allow Python tests to run from a clean tree
- Install Python library in pylibfdt/ correctly

Changes in v3:
- Update README to suggest using setup.py for an easy install
- Allow setup.py to be run from the base directory
- Make setup.py executable
- Use define..endef instead of line continuations
- Add new patch to move to Makefile constructs for NO_PYTHON
- Update for new test dependency
- Add a new patch to use setup.py to build the swig file

Changes in v2:
- Add new patch to allow setup.py to operation stand-alone
- Rebase to master

Simon Glass (3):
  pylibfdt: Allow setup.py to operate stand-alone
  pylibfdt: Use Makefile constructs to implement NO_PYTHON
  pylibfdt: Use setup.py to build the swig file

 Makefile                   | 16 ++++++--
 README                     | 14 +++++--
 pylibfdt/Makefile.pylibfdt | 30 ++++++--------
 pylibfdt/setup.py          | 98 +++++++++++++++++++++++++++++++++++++++++++---
 tests/Makefile.tests       |  6 +--
 5 files changed, 129 insertions(+), 35 deletions(-)
 mode change 100644 => 100755 pylibfdt/setup.py

-- 
2.12.2.715.g7642488e1d-goog

--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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