Bug#728085: Pyfftw does not build

Andreas Tille andreas at an3as.eu
Thu Feb 13 09:02:24 UTC 2014


Hi Ghislain,

On Thu, Feb 13, 2014 at 08:33:08AM +0000, Ghislain Vaillant wrote:
> I too experience this error when using pbuilder. It builds fine however if
> I install the required dependencies on my machine and then run pbuilder. If
> any of them are missing, for instance the -dbg packages, then pbuilder
> fails.
> 
> pbuilder:
> 
> dpkg-checkbuilddeps: Unmet build dependencies: cython-dbg cython3-dbg
> python-all-dbg python-numpy-dbg python3-numpy-dbg
> ...
> E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1:
> python2.7-dbg setup.py clean
> dh_auto_clean: pybuild --clean -i python{version}-dbg -p 2.7 --dir .
> returned exit code 13
> make: *** [clean] Error 13
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit
> status 2
> 
> 
> I am not familiar enough with pbuilder to debug this. All I did was follow
> the ubuntu wiki page about setting-up pbuilder. It worked like a charm with
> linop, but it was a simple case without compiled extensions. For this
> however, it is different somehow. If anyone has any idea what's going on,
> please feel free to help.

I admit if I would have had a quick clue I would have provided it
immediately.  Despite I'm using pbuilder basically all the time I never
experienced this problem ... most probably since I never added any *-dbg
package to the Build-Dependencies which is IMHO totally void.  Do you
have any reason for this?

So I would recommend:

$ git diff
diff --git a/debian/control b/debian/control
index b272bae..dfc2428 100644
--- a/debian/control
+++ b/debian/control
@@ -6,18 +6,13 @@ Priority: optional
 Build-Depends: cython,
                cython-dbg,
                cython3,
-               cython3-dbg,
                debhelper (>= 9),
                libfftw3-dev (>= 3.3),
                libjs-jquery,
-               python-all-dbg,
                python-all-dev,
                python-numpy,
-               python-numpy-dbg,
-               python3-all-dbg,
                python3-all-dev,
                python3-numpy,
-               python3-numpy-dbg,
                quilt
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/pyfftw.git

in any case.

When speaking about Build-Depends:  Please also remove quilt from
Build-Depends *and* from debian/rules (--with ...,quilt).  This is
redundant when using debian/source/format 3.0 (quilt).

After applying the patch above the package does not yet build since it
runs into:


'build/scripts-2.7' does not exist -- can't clean it
        pybuild --clean -i python{version} -p 3.3 --dir .
I: pybuild base:170: python3.3 setup.py clean 
Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    import numpy
ImportError: No module named 'numpy'
E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1: python3.3 setup.py clean 


if on the building machine the packages python-numpy *and* python3-numpy
are missing.  I have no idea how autobuild machines are dealing with
this but I'd recommend asking for advise at the
debian-python at lists.debian.org mailing list how to sensibly tweak your
clean target to only clean "if necessary" and prevent setup.py from
doing useless things.

Kind regards

        Andreas.

-- 
http://fam-tille.de



More information about the debian-science-maintainers mailing list