-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove zodb from sage #10353
Comments
comment:1
Please do not feel offended of my naive question, but what do you think of completely removing ZODB? As far as I understand (by looking at the failing doctests when removing ZODB), only Cremona's database and the Conway polynomials database use it. Ticket #11587 migrates the Cremona's DB to SQLite, so would it not be possible to the same with the Polynomial DB? Are there any optional SPKGs which do depend on ZODB? |
comment:2
I added ZODB to Sage (long ago), and I am definitely +1 to removing it from Sage, if we can figure out how. I think it is a technology whose value (for Sage!) has come and gone. One can do better with SQLite these days. |
comment:3
OK it is really a pain on sage-on-gentoo side and will become worse in a few months (removal from the main tree, zope maintenance is apparently hard that it will be put in its own repo for people who are interested in it). So I am putting my hand up to remove zodb from sage. Anything else apart from conway polynomial database needs to be cleaned and converted to sqlite? |
comment:5
It looks like stein-watkins-ecdb also use zodb. |
comment:6
Hum it looks like sage/databases/stein-watkins-ecdb.py imports sage.databases.db but it is not actually using any of it as far as I can see. So it will be a simple patch to get rid of db.py and compressed_storage.py. |
comment:7
If I'm not wrong, sagenb uses some Python packages which are currently included in zodb spkg (I think zope.interface or stg like that, see #10352). |
comment:8
If I remember the discussion correctly the dependency on zope.interface will be included in a future version of sagenb. My quick check on the current version of sagenb show no import from zope. |
Attachment: trac10353-db-removal.patch.gz this patch remove reference to zodb from the sage library |
comment:9
I just attached a patch to remove zodb references from the sage library. I haven't done the patch for sage-root yet. |
This comment has been minimized.
This comment has been minimized.
Author: François Bissey |
Dependencies: 12205 |
Changed dependencies from 12205 to #12205 |
comment:12
I believe the line in
should be removed completely. |
comment:13
You are right! I probably produced this a bit too close to midnight. I will up a corrected patch shortly. |
remeve reference to zodb in sage_root |
comment:14
Attachment: trac10353-sage_root.patch.gz Patch updated. |
This comment has been minimized.
This comment has been minimized.
comment:16
This causes build problems for sagenb:
|
Work Issues: sagenb |
comment:17
I think this was expected and is sagemath/sagenb#126. |
comment:20
I think this is already fixed, we just need to make a new sagenb tarball. (The only thing sagenb needs to do is package zope.interface, right?) |
comment:22
And now that I look more closely at this ticket's dependencies, Jeroen seems to have already noticed that... sorry for the noise :) |
Changed work issues from sagenb to none |
comment:25
I don't feel like reviewing the Sage library patch, but it builds and works fine now. |
comment:26
It's just removing files and one line that is useless. Christopher, could you give a review to this? |
Reviewer: Jeroen Demeyer |
Merged: sage-5.7.beta1 |
zodb only use the pickle protocol version 1. It is also not used in sage apart from one package that has been migrated away from it in #12205.
There is a zodb mailing list discussion related to the pickle protocol here: http://www.mail-archive.com/[email protected]/msg04628.html
In particular, pickle protocol 1 is hardcoded. But SageObjects/Cython objects must use protocol 2 in many cases:
See also the related ticket #10352.
The suggested option for this ticket is to remove zodb from sage.
Depends on #12205
Depends on #13717
Depends on #13963
CC: @kini
Component: misc
Author: François Bissey
Reviewer: Jeroen Demeyer
Merged: sage-5.7.beta1
Issue created by migration from https://trac.sagemath.org/ticket/10353
The text was updated successfully, but these errors were encountered: