Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11870 > unrolled thread

Re: dh-python does not stop if there is error during the byte-compiling

Started byDrew Parsons <dparsons@debian.org>
First post2019-10-07 12:10 +0200
Last post2019-10-07 12:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  Re: dh-python does not stop if there is error during the  byte-compiling Drew Parsons <dparsons@debian.org> - 2019-10-07 12:10 +0200

#11870 — Re: dh-python does not stop if there is error during the byte-compiling

FromDrew Parsons <dparsons@debian.org>
Date2019-10-07 12:10 +0200
SubjectRe: dh-python does not stop if there is error during the byte-compiling
Message-ID<yOy7L-1ZA-7@gated-at.bofh.it>
Frederik wrote:
> 
> Hello, in one of my package (pymca), there is a syntax error like this.
> 
> byte-compiling 
> /builds/science-team/pymca/debian/output/pymca-5.5.2+dfsg/debian/python-pymca5/usr/lib/python2.7/dist-packages/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py 
> to ChimeraStack.pyc
>   File 
> "/usr/lib/python2.7/dist-packages/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py", 
> line 72
>     with h5py.File(filename, mode='r') as f
>                                           ^
> SyntaxError: invalid syntax
> 
> (missing ':' at the end of the line) but this does not stop the build 
> process.
> 
> Is it normal ?



The error got through both dh_auto_install and pybuild --install.  I'm 
pretty sure dh_auto_install will halt on error (or more correctly 
debian/rules will halt when dh_auto_install returns an error).  I would 
have thought pybuild would also catch the error and pass it on to 
dh_auto_install.  Could it be that upstream setup.py returns 0 when the 
SyntaxError happens or something similar, i.e. ignores the error? The 
problem must be either there or in pybuild.

Drew

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web