b876a7e549
python*Packages.sigrok is a version of libsigrok which additionally builds its python bindings. Sadly bindings and package don't seem to be buildable independently of each other without a lot of patching. The main thing we need to do is patch Makefile.am to pass --single-version-externally-managed, so the installed sigrok module ends up in PYTHONPATH properly.
16 lines
620 B
Diff
16 lines
620 B
Diff
diff --git a/Makefile.am b/Makefile.am
|
|
index 280cf64d..e10eb79f 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -888,8 +888,9 @@ $(PDIR)/timestamp: $(PDIR)/sigrok/core/classes.i \
|
|
|
|
python-install:
|
|
$(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)"
|
|
- destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \
|
|
- --prefix "$(prefix)" --exec-prefix "$(exec_prefix)"
|
|
+ destdir='$(DESTDIR)'; $(setup_py) install --root=$${destdir:-/} \
|
|
+ --prefix "$(prefix)" --exec-prefix "$(exec_prefix)" \
|
|
+ --single-version-externally-managed
|
|
|
|
python-clean:
|
|
-$(AM_V_at)rm -f $(PDIR)/timestamp
|