[Debian-science-sagemath] debugging

Jerome BENOIT calculus at rezozer.net
Tue Nov 22 00:30:19 UTC 2016


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



On 19/11/16 01:12, Jerome BENOIT wrote:
> 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.

A dirty but apparently working way is to modify directly


<SAGEMATH>/debian/build/usr/lib/python2.7/dist-packages/sage/interfaces/gap.py


hth,
Jerome
> 
> 
>> Something like this... it should only recompile the affected files.
> 
> Jerome
> 
>> X
> 
> 
> 
> _______________________________________________
> Debian-science-sagemath mailing list
> Debian-science-sagemath at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/debian-science-sagemath
> 

- -- 
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-----

iQQcBAEBCgAGBQJYM5GaAAoJED+SGaZ/NsaLo/wgAJZ6H8AsS9yXFsJ2QgJ8ncQs
Qn5BYVNrsUAJnRxPdcQYl7QjDAhEJu9JeZ5haydhMhd46/DpR3uHRywCBqETgbPt
h+sLOaMrxc1zoL3bhXAY5wH6Jes3/ar5YIKJUwnXhqMs/oPKSBTrlyahmA+Hm9VZ
olT+PgrVEtOwyiX6bX9bMkdK6KxgxMOinY86bN9yKgUaFOdMhcasNfDRiA8MtHqE
zhrlebHix4H0YxF7qwlC+F+gsFWRuRDY1tcDNV8a5k/H7q+Grq8dX804rpzQZJqo
5CJ5IsyasW+ELAHegRWdBud+NaG2tuM0H0fECnupJKlDqzTEHv1/YVPbNbskuiH4
InAdpujiymju+5ptJ7+qFfQMSFIxJD8VThYONFuoSdKedMNjQDZT0bTXxpTFB3o2
oKx+YzjI9Ayzt5XQtyFMkIvCgMC+cDxVoXMXcMJbUw9x179UW07REmqJgPNGJ09c
QvfaXAmePISENQ43vkkKEgBRAwvboHT8DvDh7TKuQiiq5qHTCcty6sYvdXWIINmf
WRkaT6QzUGHKTwsbupNnPTInBuU2V0FV2t97C5lI8CgLL26JMYFYScGHA/wE9BJ5
sh5h6PIRX9OJqk2dlwkB18IR79YQdmhuVP2fRTncD6FvMcaepx/9pwHQC67K8w07
5vuXVZi+dBz+Sb9eHaUbmaEYTzN44LUD5mNQTa4KDBRVgIev3brHMUWojnuZ94oz
DTQibK/aXVygvcimS5E37ivPNH7faLY+3uVfG0kaVS0GlYCALcGaJQvPC6DIbuJc
B+AmxZTttv9vTsdvvKh2bZUm+zfv070FOhCV1LdaZLeW4DKuoZhLAxT+emvIvgAL
OJkpCWacZss7E2H9yHdLHDUWABfOo5tBMuzPhDab42BC3M36gw0H49ZQHlaQzp0y
uZSrDxuOX2KtLfXoCvETy+iK1ZB4vnMwotVBu8G9TCS3AULPa7jLoo93KDcREyn4
/+tLsDMLcHGmIdUG64PVnszs5rim9hoifPt1BD5RR8vuoz1ic0njoGP/Ai/a/4RW
5mq5ICfSHXUlmjeIrNOaDPe2xVVl+Dk7SQAsJYswsqU0LYhrIK4ToPPbhmOl9QYO
o9w6WeauMHOSMt3EETzltaDTWyfZ+F22WP2sL44yd129VLJkw2/LlRsdC3HmqTAW
t1Ql2aTVr/cvcn022t2dMoqYPzMttnUlvBXypqOyzWtCeWFAzj23HJxKsuqygYrt
HYpQzXfcy+FIbpknFQpqVt5Bnbq5cUDT4I9r1PFwDsP1cRJhiYVaGxK+lKTW+Z6G
n+WSZq8jDaGFZpKzZo+rsyQi3LQNI+Q1++giaBQ49huhWgxMHUjeSlCg7voptCg=
=48td
-----END PGP SIGNATURE-----



More information about the Debian-science-sagemath mailing list