Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Dmitry Shachnev Newsgroups: linux.debian.maint.python Subject: Re: Help needed to get Python module of libedlib properly installed Date: Sun, 16 Dec 2018 22:00:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Dec 16 20:54:16 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.381 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, FOURLA=0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, MEDS2=2, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lj1-f195.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HjwBBDR7ZvchDa/gOK3VsCXKnjxBTJmxuKjtTMMwKec=; b=D137oO/5K7L2oyPd4RuNOSI+RG15h4rlxvGLh8vKVJ678nwvCAJKznRGLvtvrgAZDv iAfjmMZNx2KKK7tHGKkiqXmulrd+fsFM3zJ5kk9YJKyGFW5slEm89HXRUVAzk2xG0Z9b Ul52gHJAYFpZjpgD8ggD5SL6o+UaArw5hAisd5hjqnJk1EkVXsD7oy89/9bpkAC87wba xzxfwnxZorAfGauAan90BXGIkVdpjuoV34qNH5jVwqRzDaCD/WPe3CLmlD4E6Z4DXmpe HACTgcAfle96aDedg4GVTQtZqBRn8jnufWIlZx8LyZjcVS+ssSIJhX1KmKazs/QY/Pxj i2RQ== X-Gm-Message-State: AA+aEWYOMeBtyrYzEF8m/GatcDnIMpvDblYI35oAWnF9pMyff4kGNFSE aLGsedsfEyJYD+bWzAhfq1I= X-Google-SMTP-Source: AFSGD/UIdWTucK2Q6CdzYuQHkvh8tFW6C5l7sKWWHQBtPKKsIga9SvrqtY+MDN1qqyJCJKU0/trbxw== X-Received: by 2002:a2e:9849:: with SMTP id e9-v6mr5970656ljj.9.1544993642748; Sun, 16 Dec 2018 12:54:02 -0800 (PST) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailing-List: archive/latest/16614 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20181216205358.GA3145@mitya57.me Approved: robomod@news.nic.it Lines: 115 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org, Debian Med Packaging Team X-Original-Date: Sun, 16 Dec 2018 23:53:58 +0300 X-Original-Message-ID: <20181216205358.GA3145@mitya57.me> X-Original-References: <20181212110242.wrrczo73thiytuk2@an3as.eu> Xref: csiph.com linux.debian.maint.python:11167 --3uo+9/B/ebqu+fSQ Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --BOKacYhQ+x31HxR3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-build-of-Python-bindings.patch" Content-Transfer-Encoding: quoted-printable =46rom 12e2e883f12acf9f18bbf9fbf927c42c8353bcdb Mon Sep 17 00:00:00 2001 =46rom: Dmitry Shachnev 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 (>=3D 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=3Dhardening=3D+all DEB_CMAKE_EXTRA_FLAGS =3D -DCMAKE_BUILD_TYPE=3DRelease =20 %: - dh $@ --buildsystem=3Dpybuild + dh $@ --with python3 =20 override_dh_auto_configure: dh_auto_configure --buildsystem=3Dcmake -- $(DEB_CMAKE_EXTRA_FLAGS) @@ -17,12 +17,13 @@ override_dh_auto_configure: override_dh_auto_build: dh_auto_build --buildsystem=3Dcmake # $(MAKE) --directory=3Dbindings/python - dh_auto_build -O--buildsystem=3Dpybuild -O--source-directory=3Dbindings/p= ython + $(MAKE) --directory=3Dbindings/python edlib pyedlib.bycython.cpp + dh_auto_build --buildsystem=3Dpybuild -- --dir bindings/python =20 override_dh_auto_install: dh_auto_install --buildsystem=3Dcmake # $(MAKE) install --directory=3Dbindings/python - dh_auto_install --buildsystem=3Dpybuild -O--source-directory=3Dbindings/p= ython + dh_auto_install --buildsystem=3Dpybuild -- --dir bindings/python =20 override_dh_install: dh_install --=20 2.19.2 --BOKacYhQ+x31HxR3-- --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE8kKZ/xu8kBi5BqTLYCaTbS8ciuAFAlwWu2MACgkQYCaTbS8c iuAhnA/+JK4tekoiLXKc0hYoFspFMpeMRw7zykgY/QFUHlyVopZBJTQMTXn0nv4K gtwGMJmMj3fb5O4inI5m0tE10o3UlkJxSJAdo9YlGN12wLUDssun3zTaVq7K5W4v oEiVb3xyJfHsiyKDtMF5E/O28TS8QJ6K/r5OmFYSJO/N4ca3W1qh4uoSooi3IioB xst5i0gfip6/OKzxTbA73uHPioo2JUiB0nKqnrWu0XC4mZeTz4upcBm8ae41Hz+P Dv956ExTaImrC8shkBAwaV29SFwd15rh/FcdGd5/+vV5EhQu2A+4KwaNLGDZZTQ0 ibGjO7TbPLeUk02VrW6osZqyDFFxKAeKAc2hxvJXN6em2Cu9VZv6iq6q6DMUMStR +6cvO9s7LtsB7CEMCEmxncFze8q0VOewCGKUmJTW6hGHnJohS42dvk5reS9B1td9 MWpUXUaMgtnyG5cxqbJa6sxxbvRfPhZOrOFMe/SYAoDbPBOpF9S+tn1d9bVrVEDj gS3JlSw6xycXCKBI87gB37f+lU9LiZA4158H2cZhJp1JA3/j5fNwmyV09HcshCC6 DbsvD2pGfCj/4jIb0gz8UluZ3M71LOFfS+/Xh0wI1nqQ2vl+EbNY9203vOtMdD5V zWXGDtiQTxfbZdmvAuyZb49go6u7yid/yxyE2+NLpCb+AvctLyE= =W8vF -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--