[Debian-science-sagemath] Possible fix for fplll/fpylll issue with default strategy path

Ximin Luo infinity0 at debian.org
Mon Aug 7 16:14:00 UTC 2017


Julien Puydt:
> Hi,
> 
> I just pushed to fplll's Debian git repository a tentative 5.1.0-3 which
> would fix the recently reported issue with fpylll : I rewrote the patch
> for the default strategies path changes.
> 
> I'm a bit at loss on how to check if that really fixes anything : I
> tried to build fpylll (success), but then trying to "import fpylll" in
> python gave:
> RuntimeError: You must get the file local/bin/sage-maxima.lisp
> 
> so I can't really test seriously...
> 

I can reproduce this, it works if you uninstall sage (but of course we have to fix it properly).

The underlying issue is caused by the fact that Sage sets things like SAGE_LOCAL outside of python itself, so that one gets e.g.:

$ python -c 'from sage.env import DOT_SAGE, SAGE_SCRIPTS_DIR; print(SAGE_SCRIPTS_DIR)'
$SAGE_LOCAL/bin
$ sage -c 'from sage.env import DOT_SAGE, SAGE_SCRIPTS_DIR; print(SAGE_SCRIPTS_DIR)'
/usr/share/sagemath/bin

I would guess that this also affects upstream Sage, but perhaps the issue is hidden somehow (Debian uses a different "sage-env" shell script).

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Debian-science-sagemath mailing list