[Debian-science-sagemath] debugging

Jerome BENOIT calculus at rezozer.net
Sat Nov 19 01:12:54 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi XI,

On 19/11/16 00:48, Ximin Luo wrote:
> Jerome BENOIT:
>> Hello,
>>
>> Let assume taht I am in sagemath/sage . When I enter
>>
>> $ ./sage -t -d --long src/sage/interfaces/gap.py
>>
>> I get the desire output, and I can play with Pdb .
>>
>> Now, if I modify src/sage/interfaces/gap.py by hand ,
>> it appears that the modifications are not taking into account:
>> what do I miss ?
>>
>
> Hey Jerome, there are a few nuances with the sage testing process.
>
> The doctest examples are read directly from sage/src/sage. If you edit a test case, you don't need to run the steps that Tobias mentioned.
>
> However the actual sage code is run from the "installed copy" in debian/build/usr/lib/blah blah blah. So if you edit Sage code (i.e. outside of the docstrings) then you'll need to reinstall to debian/build.
>
> Tobias' way might work, but if you have trouble with it, what I normally do is force debhelper to do a rebuild:

It works, but a tiny modication involves the whole building.

>
> $ for i in debian/*.debhelper.log; do sed -i -e '/dh_auto_build/d' $i; done
> $ DEB_BUILD_PROFILES=pkg.sagemath.ccache DEB_BUILD_OPTIONS="nodoc nocheck" debian/rules build
> # ^ if you are impatient you can even ctrl-C this after setup.py finishes the "copying to debian/build" step
> $ ( cd sage; ./sage -t -d --long src/sage/interfaces/gap.py )

I am sorry to observe that it does not work.

>
> Something like this... it should only recompile the affected files.

Jerome
>
> X
>

- -- 
Jerome BENOIT, Ph.D. | jgmbenoit-at+rezozer*dot_net
http://www.rezozer.net/

- -- 
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B
-----BEGIN PGP SIGNATURE-----

iQQcBAEBCgAGBQJYL6cWAAoJED+SGaZ/NsaLGV0f/3MPQa/waIMTh2HnJGNQtFdl
hZIL4QVaJYsUmAo1sokkc3s5DbkXWEWZAQuGygZ+bTE8ZPdRXchfqBXf+l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Ghai6mJFvIrC2SvJ62W3BTI1okCFM+GOGSrXqP5a2
LWmF3NwpxGIgKhooeOkjn3UgE3KN7iBX6s0Qk2pvoRrNV8FSzXR0esUPRvLw0rzP
lWdNpbBcz/0gM1QQqysfNsJ9p7T/M46xGm9JonnUaVjPsT6gK4lIA73GIn2Dyuz7
j/DWOacUXMPJl2kO4bX3iK57LoW7WcEyXdziqqqoS2or2eExlDvDJa/mmE9jOw8=
=qBeS
-----END PGP SIGNATURE-----



More information about the Debian-science-sagemath mailing list