Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Markus Frosch Newsgroups: linux.debian.maint.python Subject: Re: Packaging a python module when already using cmake buildsystem Date: Fri, 25 Sep 2020 11:10:01 +0200 Message-ID: References: X-Original-To: Gregor Riepl , debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Sep 25 09:08:49 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.363 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, SARE_MSGID_LONG40=0.637] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 X-Greylist: delayed 466 seconds by postgrey-1.36 at bendel; Fri, 25 Sep 2020 09:08:37 UTC Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Last-Tls-Session-Version: TLSv1.3 X-Mailing-List: archive/latest/18656 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1a21a06ef66bb8193ce24e14d2c86778142816a0.camel@debian.org Approved: robomod@news.nic.it Lines: 22 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 25 Sep 2020 11:00:41 +0200 X-Original-Message-ID: <1a21a06ef66bb8193ce24e14d2c86778142816a0.camel@debian.org> X-Original-References: <196751ca-e8fc-f975-e869-8a5b352531e0@gmail.com> Xref: csiph.com linux.debian.maint.python:12899 On Thu, 2020-09-24 at 22:01 +0200, Gregor Riepl wrote: > > 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. > > We use both pybuild and cmake for a couple of SIP packages: > https://salsa.debian.org/3dprinting-team/libarcus > > However, in this case, upstream doesn't provide a setup.py at all, so > cmake is used automatically. > > I do believe that you can force the use of cmake by adding a "--with > cmake" - have you tried that? Here is another example: https://salsa.debian.org/pkg-rpm-team/createrepo-c/-/blob/debian/master/debian/rules -- markus@lazyfrosch.de https://lazyfrosch.de