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


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

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

Started byPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
First post2019-10-06 11:00 +0200
Last post2019-10-07 21:50 +0200
Articles 2 — 2 participants

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


Contents

  dh-python does not stop if there is error during the byte-compiling PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2019-10-06 11:00 +0200
    Re: dh-python does not stop if there is error during the  byte-compiling Michael Kesper <mkesper@schokokeks.org> - 2019-10-07 21:50 +0200

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

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2019-10-06 11:00 +0200
Subjectdh-python does not stop if there is error during the byte-compiling
Message-ID<yOayt-3GJ-3@gated-at.bofh.it>
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

byte-compiling /builds/science-team/pymca

(missing ':' at the end of the line) but this does not stop the build process.

Is it normal ?

Cheers

Frederic

[toc] | [next] | [standalone]


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

FromMichael Kesper <mkesper@schokokeks.org>
Date2019-10-07 21:50 +0200
SubjectRe: dh-python does not stop if there is error during the byte-compiling
Message-ID<yOHb4-7Ay-15@gated-at.bofh.it>
In reply to#11866

[Multipart message — attachments visible in raw view] — view raw

Hi Frederic,

On 06.10.19 10:37, PICCA Frederic-Emmanuel 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
> 
> byte-compiling /builds/science-team/pymca
> 
> (missing ':' at the end of the line) but this does not stop the build process.

As far as I understand the sourcecode from glancing at it, that is not intended (except for pypy3compile due to its freshness).
So maybe it would be helpful to look at the options with which you called the whole process.

Best wishes
Michael

[toc] | [prev] | [standalone]


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


csiph-web