Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12900
| From | Christian Kastner <ckk@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Packaging a python module when already using cmake buildsystem |
| Date | 2020-09-25 13:30 +0200 |
| Message-ID | <ASU5j-7Nd-3@gated-at.bofh.it> (permalink) |
| References | <ASRTP-6Ak-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Re: Packaging a python module when already using cmake buildsystem Christian Kastner <ckk@debian.org> - 2020-09-25 13:30 +0200
csiph-web