Path: csiph.com!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Christian Kastner Newsgroups: linux.debian.maint.python Subject: Re: Packaging a python module when already using cmake buildsystem Date: Fri, 25 Sep 2020 13:30:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Sep 25 11:24:10 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.331 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, NICE_REPLY_A=-2.13] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 Dkim-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=20200417.ckk.user; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:References:To:Subject:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=REcnQgO0y+mfYIrX6U0CKxm+W/NHq0J96PrfwAYFDYg=; b=KiEEVX68BD2alxcv4oEv3PR4d1 RQuI3XxTHZnMCFfkWwzds3/jNr3jx6yFXRCdpIsL9JPjBpF/LJ78Bx7mnjR+++sXO4Iu+RCZ6pN8S vUhdK+6SyyaeIE61yNcEihkRD7WTaVoacLpEJcolw56JGW1UvoYEBFeAxskQiK0NW+xmvViD0a1YU JTyulW0ZtbUIbXzSnGxaP027pqkExuDSBCnJMlv1wGmhAxYukNCutqizNDKBGQADn+KbvZaSbqYuY vPm2QfiF88LuLgr7XF4hV2+d4a5C/Lkz0ie+Khx3+h2KpeVVDIrX5V8asIYf1wbX6fePLIuBLmTeD ARCNyaBLgOP9DJf3Uy18o8XNNr3bX5EFa+wWoh6QlkZ9tso/btVvQ0ChY23c8uC6vlwyvJckHk8Mu BACyoF7VfSYiU6s7VIrCbZbxu9fOiMh/SVxMrqUoIT3yeADO3C5QYtvxUCAefe78PeeNH2G1rGgKx 11jzSVkcpEH5QexJ7ug+qjUNgxU/eCvahKjS/enTX+xjKg+XvI4dvLMlVN9mfNOQjFriVOEMY7ZSv Tszgft/3axvQZhz5nChRcuGyBR92mlNnjW5GtFLufY4yNBXFdtJ1QZ1Pt4ROn3oHvOY1nxbBa6F6T dt+fNLVzAdlOUZ/ZY5pVP1UNxZ/uyBaei4628Ndvs=; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/18658 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/8a7bab3c-95f7-6114-041e-682fd2d1dbde@debian.org Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 25 Sep 2020 13:06:12 +0200 X-Original-Message-ID: <8a7bab3c-95f7-6114-041e-682fd2d1dbde@debian.org> X-Original-References: Xref: csiph.com linux.debian.maint.python:12900 On 2020-09-24 13:22, Francis Murtagh wrote: > I'm trying to package a newly added python component of our > tool https://tracker.debian.org/pkg/armnn. > > It has a setup.py and uses SetupTools and DistUtils so I was hoping to > add --with Python3 and hope that a lot of magic would be done by pybuild. > However as I'm already using cmake as the build system I can't stick > pybuild in there. You can pass --buildsystem to individual targets, so something like this might work (haven't tried it though): override_dh_auto_build: dh_auto_build --buildsystem=cmake dh_auto_build --buildsystem=pybuild If that particular example doesn't work, I'm sure that a closely related one should (I've seen it before, but unfortunately don't recall where). I did a quick search on codesearch.debian.net and here's one example of a d/rules using two separate build systems: https://sources.debian.org/src/python-tenacity/6.2.0-4/debian/rules/?hl=16#L16 Best, Christian