Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Uwe Steinmann Newsgroups: linux.debian.maint.python Subject: Best practice on how to package a python module along with a c++ program Date: Fri, 08 May 2020 14:10:02 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri May 8 12:07:27 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 365 seconds by postgrey-1.36 at bendel; Fri, 08 May 2020 12:07:15 UTC MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LiQwW4YX+w4axhAx" Content-Disposition: inline X-Mailing-List: archive/latest/18248 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20200508105908.GG4188@t560.steinmann.cx Approved: robomod@news.nic.it Lines: 52 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 8 May 2020 12:59:08 +0200 X-Original-Message-ID: <20200508105908.GG4188@t560.steinmann.cx> Xref: csiph.com linux.debian.maint.python:12560 --LiQwW4YX+w4axhAx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, not sure if this is the right list, but it was my closes guess. I'm packaging a c++ program (horizon-eda) which also contains a python module written in c++. Upstream's Makefile has a target 'pymodule' and 'make pymodule' creates horizon.so in the build directory. According to upstream this has to be copied =D1=96nto python's sys.path I thought about overriding dh_auto_build with override_dh_auto_build: make pymodule dh_auto_build which should at least build the module. But it still needs to be installed at the right place. What would be the preferred way? Uwe --=20 MMK GmbH, Fleyer Str. 196, 58097 Hagen Uwe.Steinmann@mmk-hagen.de Tel: 02331 840446 Fax: 02331 843920 --LiQwW4YX+w4axhAx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE3CvlpjXW3PCUob0wN8K0+GQhOf8FAl61O3gACgkQN8K0+GQh Of9ccw//eJpawsC1baJQmHxlJI7od5DwkyupS0WXSEDMZWD47fDEaf4r/RaySS5F 38QvB+vxkaLnIu/OVS+ufUM/6WZKkTmKbKfXg5xS+6zyH6bvSrjxPqNWlew1NEzV JegbgXP2xf+Xs/SMdJVOZv4fdoNPNFxCcrJpoRzrk4QD90q9jdhzqaF4Dj/cELID Ch/Q0+QqFY5l2QWd5ouO4zUm7cNXx+QCd0aR4ywkQM7cu9c33UJWf+Sdn2OFn2VJ jvyoK7uPBZELdXwQdoIHNESP50u4e8NBBIiQjLcnUezDSSU43hlWM9I9bUeRiSdl VvtQUEnV10BbBQQmLdx1+v7D5/qLkWWRykmdKParIjyqo8MF+xD5TA5VhEMbKcZi BPNUs8EtNFdx0wbdPMQcazboZ6hRBf2fAV/BlB84fdN02+sP61CxvMQZ4+SKUbTX NN2a9YQetk3xx9jWkzDh6FhijdvAI5f1yx7QK42TyL2/LCRnI2c35QpB5GJbO13C y74q7HwasSy72sSaCbO+7f30tlcCZmQjTFuwjmMManr6kWLz5UxX5YGxsUXV7AAJ 4E5EMgPZvq4J7+9NH8/L2BtbAZSvFrQSbtA6sKIfphuq2TyxhMCC3s+F6ruh1Wc5 75pYNiXVYUku0q985QS/Nh3eUFVUAZkdsiTeDWu+noZJUL5T4RQ= =Q3/x -----END PGP SIGNATURE----- --LiQwW4YX+w4axhAx--