#14075: remove annoying printing of primes in conway polynomials spkg
----------------------------+-----------------------------------------------
Reporter: kcrisman | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: packages | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Comment (by fbissey):
spkg-install in sage-on-gentoo look like this:
{{{
#!/usr/bin/env python
import os
from sage.structure.sage_object import save
install_root = os.path.join('/scratch/portage/sci-mathematics/sage-data-
conway_polynomials-0.4-r1/image/usr/share/sage', 'conway_polynomials')
def create_db():
db = {}
from src import conway_polynomials
for p,n,v in conway_polynomials:
if not db.has_key(p):
db[p] = {}
db[p][n] = v
if not os.path.exists(install_root):
os.makedirs(install_root)
save(db, os.path.join(install_root, 'conway_polynomials.sobj'))
if __name__ == '__main__':
create_db()
}}}
the definition of install_root is gentoo specific, so you shouldn't use
that bit. The rest is ok for consumption in "vanilla" sage.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14075#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.