Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11870
| Path | csiph.com!3.us.feeder.erje.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod |
|---|---|
| From | Drew Parsons <dparsons@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: dh-python does not stop if there is error during the byte-compiling |
| Date | Mon, 07 Oct 2019 12:10:01 +0200 |
| Message-ID | <yOy7L-1ZA-7@gated-at.bofh.it> (permalink) |
| X-Original-To | frederic-emmanuel.picca@synchrotron-soleil.fr, debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Mon Oct 7 10:00:48 2019 |
| Old-Return-Path | <dparsons@debian.org> |
| X-Amavis-Spam-Status | No, score=-7.701 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -3.5 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Organization | The Debian Project |
| Reply-To | dparsons@debian.org |
| Mail-Reply-To | dparsons@debian.org |
| X-Sender | dparsons@debian.org |
| User-Agent | Roundcube Webmail/1.3.8 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/17411 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/819e2c18d011e47b76a75deda68e2d67@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 07 Oct 2019 18:00:36 +0800 |
| X-Original-Message-ID | <819e2c18d011e47b76a75deda68e2d67@debian.org> |
| Xref | csiph.com linux.debian.maint.python:11870 |
Show key headers only | View raw
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
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
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
csiph-web