Hi Andreas! On Wed, Dec 12, 2018 at 12:02:42PM +0100, Andreas Tille wrote: > Hi, > > libedlib[1] has a Python3 module which I want to provide in a > python3-edlib package (since it is needed by some other package > I'm working on). I've prepared something in Git[1] but it ends > up with an empty python3-edlib package despite the file > > $(CURDIR)/.pybuild/cpython3_3.6_edlib/build/edlib.cpython-36m-x86_64-linux-gnu.so > > is created. Am I missing something in the final install step? The attached patch should fix the issues. -- Dmitry Shachnev
From 12e2e883f12acf9f18bbf9fbf927c42c8353bcdb Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sun, 16 Dec 2018 23:51:53 +0300
Subject: [PATCH] Fix build of Python bindings
---
debian/control | 2 +-
debian/rules | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index a338d5a..45b3870 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 11~),
d-shlibs,
rename,
cython3,
- python3-dev,
+ python3-all-dev,
python3-setuptools
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/libedlib
diff --git a/debian/rules b/debian/rules
index f37d073..8ab2fed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_CMAKE_EXTRA_FLAGS = -DCMAKE_BUILD_TYPE=Release
%:
- dh $@ --buildsystem=pybuild
+ dh $@ --with python3
override_dh_auto_configure:
dh_auto_configure --buildsystem=cmake -- $(DEB_CMAKE_EXTRA_FLAGS)
@@ -17,12 +17,13 @@ override_dh_auto_configure:
override_dh_auto_build:
dh_auto_build --buildsystem=cmake
# $(MAKE) --directory=bindings/python
- dh_auto_build -O--buildsystem=pybuild -O--source-directory=bindings/python
+ $(MAKE) --directory=bindings/python edlib pyedlib.bycython.cpp
+ dh_auto_build --buildsystem=pybuild -- --dir bindings/python
override_dh_auto_install:
dh_auto_install --buildsystem=cmake
# $(MAKE) install --directory=bindings/python
- dh_auto_install --buildsystem=pybuild -O--source-directory=bindings/python
+ dh_auto_install --buildsystem=pybuild -- --dir bindings/python
override_dh_install:
dh_install
--
2.19.2
Attachment:
signature.asc
Description: PGP signature