mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Initial import (#877651).
This commit is contained in:
parent
257b1142ac
commit
86f823b2b0
41 changed files with 13000 additions and 0 deletions
36
sagemath-cremona.patch
Normal file
36
sagemath-cremona.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
diff -up sage-5.8/spkg/build/sage-5.8/sage/databases/cremona.py.orig sage-5.8/spkg/build/sage-5.8/sage/databases/cremona.py
|
||||
--- sage-5.8/spkg/build/sage-5.8/sage/databases/cremona.py.orig 2013-02-22 17:33:50.579875129 -0300
|
||||
+++ sage-5.8/spkg/build/sage-5.8/sage/databases/cremona.py 2013-02-22 17:34:05.051875683 -0300
|
||||
@@ -889,14 +889,9 @@ 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"
|
||||
+ + label + " in the default database"
|
||||
raise ValueError(message)
|
||||
|
||||
def iter(self, conductors):
|
||||
@@ -1594,10 +1589,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':
|
Loading…
Add table
Add a link
Reference in a new issue