sagemath/sagemath-cremona.patch
Jerry James eaa777c690 Update to sagemath 8.4.
Also:
- Build for python 3 instead of python 2 due to upcoming python 2 removal.
- Add -python3 and -escape patches to fix problems with python 3.
- Drop -nofstring patch, only needed for python 2.
- Drop upstreamed -eclib patch.
- Switch from atlas to openblas and rename -atlas patch to -openblas.
- Add -buildroot patch and only build cython interfaces once.
2018-11-01 19:25:26 -06:00

43 lines
2 KiB
Diff

diff -up src/sage/databases/cremona.py.orig src/sage/databases/cremona.py
--- src/sage/databases/cremona.py.orig 2018-10-17 17:13:36.000000000 -0600
+++ src/sage/databases/cremona.py 2018-10-25 13:24:02.644939224 -0600
@@ -53,7 +53,6 @@ from sage.misc.prandom import randint
import sage.schemes.elliptic_curves.constructor as elliptic
from .sql_db import SQLDatabase, verify_column
-from sage.misc.package import is_package_installed
from sage.env import CREMONA_MINI_DATA_DIR, CREMONA_LARGE_DATA_DIR
from sage.misc.all import walltime
@@ -825,14 +824,6 @@ class MiniCremonaDatabase(SQLDatabase):
if N < self.largest_conductor():
message = "There is no elliptic curve with label " + label \
+ " in the database"
- elif is_package_installed('database_cremona_ellcurve'):
- message = "There is no elliptic curve with label " + label \
- + " in the currently available databases"
- else:
- message = "There is no elliptic curve with label " \
- + label + " in the default database; try installing " \
- + "the optional package database_cremona_ellcurve which " \
- + "contains the complete Cremona database"
raise ValueError(message)
ainvs = eval(c[0])
data = {'cremona_label': label,
@@ -1673,10 +1664,12 @@ def CremonaDatabase(name=None,mini=None,
if name is None and not set_global:
return _db
if set_global and name is None:
- if is_package_installed('database_cremona_ellcurve'):
- name = 'cremona'
- else:
- name = 'cremona mini'
+ # currently the sagemath rpm package only installs cremona mini
+ #if is_package_installed('database_cremona_ellcurve'):
+ # name = 'cremona'
+ #else:
+ # name = 'cremona mini'
+ name = 'cremona mini'
if name == 'cremona':
mini = False
elif name == 'cremona mini':