/srv/irclogs.ubuntu.com/2019/08/05/#launchpad.txt

=== viv`d is now known as vivid
chillysurferhello! i've successfully pushed up a new package to my ppa and i'm seeing the following build error in my ppa:20:38
chillysurfersubprocess.CalledProcessError: Command '['sudo', '/usr/sbin/chroot', '/home/buildd/build-PACKAGEBUILD-17374618/chroot-autobuild', 'linux64', 'env', 'LANG=C', 'DEBIAN_FRONTEND=noninteractive', 'TTY=unknown', '/usr/bin/apt-get', '-uy', 'update']' returned non-zero exit status 10020:38
chillysurferRUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=chroot --series=bionic --arch=amd64 PACKAGEBUILD-1737461820:38
chillysurferScanning for processes to kill in build PACKAGEBUILD-1737461820:38
chillysurferany thoughts on what i could be doing wrong?20:39
chillysurferi retried and i'm seeing this error now: error: binary build with no binary artifacts found21:16
chillysurferthis is a dpkg-biuldpackage failure21:16
cjwatsonchillysurfer: Your debian/rules is empty, which really isn't going to go well22:13
chillysurfercjwatson: ahh i see. but in the instance where i don't really need much to happen, as this is a python package, what should go in my rules file?22:14
chillysurferi am running `python3 setup.py install` in the postinst script22:14
cjwatsonYou're what22:14
chillysurfershould that naturally be in rules instead?22:14
cjwatsonNo22:14
cjwatsonchillysurfer: I suggest running lintian before you upload - you may not necessarily want to do absolutely everything it says, but it has lots of alarming red output in your case that corresponds to real errors22:15
chillysurferok trying that now22:15
cjwatsonchillysurfer: Let me dig up the relevant bits of the Debian Python wiki for you22:15
chillysurfercjwatson: i really appreciate that22:16
chillysurferah lintian explains a lot22:16
chillysurferbasically the rules file is a Makefile with required targets?22:16
cjwatsonYes, but there are a lot of helpers that can make it pretty simple22:16
chillysurfercjwatson: oh nice, that'd be helpful22:16
cjwatsonSo is this a library or an application?22:16
chillysurfertechnically both22:17
chillysurferbut let's call it an application22:17
chillysurferto install it (both the application and the library) just need to `python3 setup.py install`22:17
chillysurfercjwatson: ah is `dh` the helper you're talking about?22:18
cjwatsonStart with https://wiki.debian.org/Python/LibraryStyleGuide22:19
cjwatsonAnd adjust as needed - you'll probably want to drop any Python 2 bits there22:19
cjwatsonI strongly suggest setting yourself up for local builds since it will make it much easier to iterate22:20
cjwatsonhttps://wiki.ubuntu.com/SimpleSbuild if you don't already have something22:20
cjwatsondh is the main entry point to most of the modern helpers, yes22:20
chillysurfercjwatson: oh wow this information is really great22:21
chillysurferthank you!22:21
cjwatson(https://wiki.debian.org/Python/AppStyleGuide does exist too, but it's mostly elaborations on top of the library style guide; I think you're better off starting with the library guide and making whatever small adjustments are needed)22:21
cjwatsonnp22:21
cjwatsonGeneral way to think about rules vs. stuff like postinst: the job of the rules file is essentially to prepare a filesystem tree plus some metadata that can be packed up into a deb22:22
cjwatsonThe postinst runs on the installed system22:22
chillysurfercjwatson: ahhh ok22:22
chillysurferthat makes much more sense22:22
cjwatsonIf you can, you should avoid writing a postinst22:23
chillysurferyeah sounds like i used it in all the wrong ways22:23
cjwatson(debhelper will often write out postinst fragments for you, but at least those are centrally-maintained and well-debugged)22:23
cjwatsonchillysurfer: So actually I think you probably just want https://wiki.debian.org/Python/Pybuild22:25
chillysurfercjwatson: yeah reading through the style guide it seems like the case22:26
cjwatsonAh, LibraryStyleGuide links to that, as you were :)22:26
chillysurferbut still things i need to do with dh i think22:26
cjwatsonRight, pybuild is part of dh-python which is a debhelper extension22:26
chillysurferahhh22:26
chillysurferthat makes sense22:26

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!