Skip to content

Commit 3e80db8

Browse files
Release Managervbraun
Release Manager
authored andcommitted
Trac #14962: make sure all optional packages work in the git repository
we support them, so we need to make sure they will continue to work Script to systematically try out all optional spkgs: http://boxen.math.w ashington.edu/home/vbraun/Sage/Testing/test_optional_packages.sh The optional databases will be dealt with here, other packages should make separate tickets. Use the following new "upstream" tarballs: * http://boxen.math.washington.edu/home/vbraun/upstream/database_cremona _ellcurve-20121022.tar.bz2 Leave for later, don't work and no SPKG.txt: * cunningham_tables * database_jones_numfield * database_kohel * database_odlyzko_zeta * database_sloane_oeis * database_stein_watkins_mini.p0 Move to experimental (broken with or without git, probably for a long time): * fricas (doesn't build with our ecl) * fricas-aldor (dito) * libcocoa (doesn't build with our gmp/mpir) Delete for other reasons: * jsmath_image_fonts (we switched to mathjax) URL: http://trac.sagemath.org/14962 Reported by: ohanar Ticket author(s): Volker Braun Reviewer(s): Volker Braun
2 parents f0f8c88 + 5b72359 commit 3e80db8

File tree

4 files changed

+150
-0
lines changed

4 files changed

+150
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
= database_cremona_ellcurve =
2+
3+
== Description ==
4+
John Cremona's huge database of elliptic curves
5+
6+
See http://www.warwick.ac.uk/~masgaj/ftp/data/ or
7+
http://sage.math.washington.edu/cremona/INDEX.html
8+
9+
This is an optional package, not included by default.
10+
11+
== SPKG Maintainers ==
12+
* R. Andrew Ohana
13+
14+
== Upstream Contact ==
15+
16+
* Author: John Cremona
17+
18+
* Website: http://www.warwick.ac.uk/~masgaj/ftp/data/
19+
20+
== Update Instructions ==
21+
22+
At the end of either method, copy `SAGE_DATA/cremona/cremona.db` to the src directory of the spkg.
23+
24+
=== Method 1 ===
25+
26+
If the cremona database has already been installed, remove
27+
`SAGE_DATA/cremona/cremona.db`. Run
28+
29+
{{{
30+
sage: sage.databases.cremona.build('cremona','path/to/ecdata.tgz')
31+
}}}
32+
33+
=== Method 2 ===
34+
35+
Install the current version of the spkg, and copy the new files into a new
36+
folder. Then run
37+
38+
{{{
39+
sage: C = sage.databases.cremona.LargeCremonaDatabase('cremona',False)
40+
sage: C._init_from_ftpdata('path/to/said/folder',0)
41+
}}}
42+
43+
This method is much faster, but won't include any potential fixes old entries.
44+
45+
== Changelog ==
46+
47+
=== database_cremona_ellcurve-20121022 (Volker Braun, 7 October 2013) ===
48+
* #14962: Update for the sage-git directory layout
49+
50+
=== database_cremona_ellcurve-20121022 (John Cremona, 22 October 2012) ===
51+
* #13547: Updated the tables to include all conductors up to 300000
52+
53+
=== database_cremona_ellcurve-20121013 (John Cremona, 13 October 2012) ===
54+
* #13547: Updated the tables to include all conductors up to 290000
55+
56+
=== database_cremona_ellcurve-20120928 (John Cremona, 28 September 2012) ===
57+
* #13547: Updated the tables to include all conductors up to 280000
58+
59+
=== database_cremona_ellcurve-20120827 (John Cremona, 27 August 2012) ===
60+
* #13298: Updated the tables to include all conductors up to 270000
61+
62+
=== database_cremona_ellcurve-20120606 (John Cremona, 6 June 2012) ===
63+
* #13095: Updated the tables to include all conductors up to 240000
64+
65+
=== database_cremona_ellcurve-20120302 (R. Andrew Ohana, 2 March 2012) ===
66+
* #12617: Updated the tables to include all conductors up to 230000
67+
68+
=== database_cremona_ellcurve-20120113 (R. Andrew Ohana, 14 January 2012) ===
69+
* Updated the tables to include all conductors up to 220000
70+
71+
=== database_cremona_ellcurve-20111121 (R. Andrew Ohana, 27 November 2011) ===
72+
* Older versions of Sage will now revert to the 20071019.p0 version
73+
* Version number is now based off of Cremona's release of the tables
74+
* Updated the tables to include all conductors up to 210000
75+
76+
=== database_cremona_ellcurve-20111029 (R. Andrew Ohana, 29 October 2011) ===
77+
* Updated the tables to include all conductors up to 200000
78+
* Fixed a mistake in update instructions
79+
80+
=== database_cremona_ellcurve-20110915 (R. Andrew Ohana, 15 September 2011) ===
81+
* Updated the tables to include all conductors up to 190000
82+
* Added directions on how to update database
83+
84+
=== database_cremona_ellcurve-20110809 (R. Andrew Ohana, 9 August 2011) ===
85+
* Updated the tables to include all conductors up to 180000
86+
87+
=== database_cremona_ellcurve-20110801 (R. Andrew Ohana, 1 August 2011) ===
88+
* Updated the database to use SQLite3
89+
* Updated the tables to include all conductors up to 170000
90+
* Introduced a mercurial repository in the spkg
91+
92+
=== database_cremona_ellcurve-20071019.p0 (David Kirkby, 14th Nov 2009) ===
93+
* Fix trac #7464
94+
Remove the '-v' option to 'cp' as '-v' is not a
95+
POSIX option for 'cp' and was not implemented on
96+
Solaris. It is only to display what is actaully being
97+
copied, and so there is no need to use this GNUism.
98+
* Renamed SAGE.txt to SPKG.txt to be like other packages.
99+
* Added an upstream contact, and other data found in
100+
a typical SPKG.txt file
101+
102+
=== previous versions ===
103+
* lost to history
104+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sha1=863a961d723a558fa5d732c24292f63aa5158752
2+
md5=6f4b284c0ff36dc60732c5187d165304
3+
cksum=1392947250
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20121022
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/env bash
2+
###########################################
3+
## database_cremona_ellcurve
4+
###########################################
5+
6+
if [ "x${SAGE_LOCAL}" = x ]; then
7+
echo "SAGE_LOCAL undefined ... exiting"
8+
echo "Maybe run 'sage -sh'?"
9+
exit 1
10+
fi
11+
12+
SAGE_VERSION=`sed -n "s/,.*//;/Version/s/.*Version //p" "${SAGE_LOCAL}/bin/sage-banner"`
13+
SAGE_MAJOR=`echo "${SAGE_VERSION}" | cut -d'.' -f1`
14+
15+
if [ "${SAGE_MAJOR}" -lt "4" -o \( "${SAGE_MAJOR}" -eq "4" -a `echo "${SAGE_VERSION}" | cut -d'.' -f2` -lt "8" \) ]; then
16+
echo "Your copy of Sage cannot use the latest"
17+
echo "version of the database. Please update"
18+
echo "Sage to version 4.8 or later if you"
19+
echo "would like to use more recent versions"
20+
echo "of the Cremona database."
21+
sage -i database_cremona_ellcurve-20071019.p0
22+
exit $?
23+
fi
24+
25+
if [ "x${SAGE_LOCAL}" = x ]; then
26+
echo "SAGE_LOCAL undefined ... exiting"
27+
echo "Maybe run 'sage -sh'?"
28+
exit 1
29+
fi
30+
31+
TARGET="${SAGE_LOCAL}/share/cremona"
32+
if [ ! -d "${TARGET}" ]; then
33+
mkdir "${TARGET}"
34+
fi
35+
36+
cd src
37+
38+
cp * "${TARGET}/"
39+
if [ $? -ne 0 ]; then
40+
echo "Error installing cremona database"
41+
exit 1
42+
fi

0 commit comments

Comments
 (0)