[Neurodebian-devel] Uploading pyqtgraph packages

Luke Campagnola lcampagn at email.unc.edu
Mon Jan 13 15:12:19 UTC 2014


On Mon, Jan 13, 2014 at 2:00 AM, Yaroslav Halchenko
<debian at onerussian.com>wrote:

>
> On Mon, 13 Jan 2014, Luke Campagnola wrote:
>
> > After my prolonged and daring escape from graduate school, I am finally
> > ready to pick this up again. Here is where I am at:
>
> > 1. I have updated pyqtgraph's debian/ files to make use of pybuild;
> > successfully building .dsc describing 1 source package and 3 binary
> > packages: python-pyqtgraph, python3-pyqtgraph, and python-pyqtgraph-doc.
>
> fancy you ;) it would cost you though:  pybuild is relatively new and
> not available on elderly ubuntus (there is a backport for debian stable
> wheezy so there we all set).  But if you do not care -- me neither twice
> ;)
>

I think for any of the (rare?) elderly instalations, the alternative
installation strategies are sufficiently simple.



> > 2. I ran nd_addistall;
>
> >    - debian-jessie and nd+debian-jessie both had this error:
> >         I: running debootstrap
> >         /usr/sbin/debootstrap
> >         E: No such script: /usr/share/debootstrap/scripts/jessie
> >         E: debootstrap failed
>
> easy one, just symlink to sid
>
> $> ls -l /usr/share/debootstrap/scripts/jessie
> lrwxrwxrwx 1 root root 3 Jul 14  2013
> /usr/share/debootstrap/scripts/jessie -> sid
>

And after that, what command to rebuild just those two distributions?
Alternately: are the commands documented somewhere?


> > 3. running nd_build4all on my .dsc generates this error:
>
> >        dh_install -O--buildsystem=pybuild
> >     dh_install: python-pyqtgraph missing files (usr/lib/python2*),
> aborting
> >     make: *** [binary] Error 2
>
> >     The path in question comes from the debian/*.install files:
> >         debian/python-pyqtgraph.install:
> >             usr/lib/python2*
> >         debian/python3-pyqtgraph.install:
> >             usr/lib/python3*
>
> >     These were added because I otherwise end up with empty packages.
>
> >     The error appears to occur because the dsc describes 3 binary
> packages:
> >         python-pyqtgraph, python3-pyqtgraph, and python-pyqtgraph-doc.
>
> >     In a successful build, the py2 and py3 files are all installed into
> the
> > same fakeroot:
> >         .../python-pyqtgraph-0.9.8/debian/tmp/...
>
> >     ..but when running nd_build4all, each package has its own fakeroot:
> >         /tmp/buildd/python-pyqtgraph-0.9.8/debian/python-pyqtgraph/...
> >         /tmp/buildd/python-pyqtgraph-0.9.8/debian/python3-pyqtgraph/...
>
> >     I suspect this causes dh_install to fail because it can't find
> > python2.7 in
> >     the python3 fakeroot.
>
> hm - interesting if I got it right (too late now to think straight... even
> sent
> out a google recruiter to f.ck off (politely)) you are claiming that in
> your
> local environment (which is?) pybuild results in a different behavior than
> while building in those clean chroots?
>

That appears to be the case. I am building on ubuntu 13.04.

I meant to include this link previously:
https://github.com/lcampagn/pyqtgraph/tree/deb_build
>From there you can run `python setup.py sdist deb --force-version=0.9.8`.
The 'deb' command just creates a deb_build directory and populates it with
the necessary pieces before calling `dh -us -uc`. The --force-version flag
is only needed to circumvent a changelog check that I built in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/neurodebian-devel/attachments/20140113/bf2c2096/attachment.html>


More information about the Neurodebian-devel mailing list