[Debian-science-sagemath] debugging

Jerome BENOIT jgmb31 at rezozer.net
Sat Nov 19 01:12:25 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/
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYL6b5AAoJEPw+mZ1FPb5mk4oP+gMDN+FKR+XG1fU1P9FfB6kA
GYKZQ/+nS1uDtYG/JSVQzvLdKZ9brsbVJFIlhFIKkXyfg0TW+qFf7YdkftkMXC8r
8ALmvEbpK/FDE5mkDvCJScxYG2A5IxsJdXXYHDsQF1GBLZH1/Cumz+YKQ9190777
CwRW5DMIYgH5Gaci2iGWgBgYPxjRAFaH2XtQ5otQIBmltbS6PHC4BQhdE1Lg6OI+
Y6UZtKxwG4b3O/SxtV7IgBEWvamAdIogmUdfmh4Ws2ObAWOiW4Rm+8vvTEx85oPU
At3kTycCtIQKal1kAnBY++l0//K0CunmqMFLhDx7RElAVvD2qki3XYQYUuC/SrNB
069FFNRK94xYOH7V/Uy1/mgsSfZiiV+U86OuZJmSlICO2FiHhry8C/y9mmUjS9Ym
DlT7XSqeVxEl1n++jo25Q/PUP65u52A1XXNnPgkkoF/fFrf4YFsIdtdZ4xJ7BFWK
rzIVBou3nSsQZHarISUoRPgwWwO9sGnoNDp7kyPVHizMtf0ApOz8QC5ga9VuJrNE
vpDj/ln8K7vblpPd+fHAuUh44Cf9rg8IK7NwOUwfoSEpXf9GW46YlzOJC7FzUQ4w
r45Xs9xpjfFXkBTdl3cV/6slc559PRIKR6QM22vbztIpAhpJC+VOUaYXWQbYEKl3
utvglXy+O47jm/6b7z3P
=DYcC
-----END PGP SIGNATURE-----



More information about the Debian-science-sagemath mailing list