Navigation Menu

Skip to content
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

[TRACKER] Sage migration to python3 #212

Closed
cschwan opened this issue Apr 12, 2013 · 12 comments
Closed

[TRACKER] Sage migration to python3 #212

cschwan opened this issue Apr 12, 2013 · 12 comments

Comments

@cschwan
Copy link
Owner

cschwan commented Apr 12, 2013

This serves as a tracker bug for the python3 status of Sage's dependencies.

READY FOR PYTHON 3.2

  • cvxopt (>=1.1.6 in s-o-g overlay)
  • cython
  • docutils
  • ipython (>= 0.13.1-r1)
  • jinja
  • matplotlib (>= 1.2.0-r2)
  • mpmath
  • numpy
  • pycrypto
  • scipy (>= 0.12.0)
  • sphinx
  • sqlalchemy (>= 0.8.1)
  • sympy (>= 0.7.2-r1 in tree)

READY FOR PYTHON 3.2 BUT NOT IN PORTAGE

NO OFFICIAL SUPPORT FOR PYTHON 3.2 OR UNKNOWN

DEFINITIVELY NOT WORKING WITH PYTHON 3.2

@kiwifb
Copy link
Collaborator

kiwifb commented Jun 18, 2013

It was mentioned on trac that the list is missing PIL (imaging) but then we probably can easily convert to pillow.

@cschwan
Copy link
Owner Author

cschwan commented Jun 18, 2013

I didn't list the indirect dependencies, only the ones Sage is directly depending on. But we could list them as well. For example, the notebook deps have a lot like flask-* which were recently migrated to the python-r1 eclasses. They also support python3.3, but not python3.2 which is marked stable.

@kiwifb
Copy link
Collaborator

kiwifb commented Feb 12, 2014

pexpect (sage-pexpect) can be converted with 2to3.

@gagern
Copy link
Contributor

gagern commented Apr 17, 2014

See also sage tickets with the python3 keyword for an idea of progress towards Python 3 compatibility of sage itself. The two meta-tickets for stage 1 and stage 2 try to organize those.

@kiwifb
Copy link
Collaborator

kiwifb commented Apr 17, 2014

Yes I spotted those but I don't think they list anything about my request for pynac and libcsage to be able to be installed simultaneously for python 2 and 3.
Say what: I patch stuff to enable it and we field test it in Gentoo?

@gagern
Copy link
Contributor

gagern commented Apr 17, 2014

I must confess I haven't followed or searched sage-dev yet, but it is my understanding that before those tickets are addressed, sage under python 3 would hardly be usable. And before it becomes usable, field testing doesn't make much sense. So the way I see it, addressing these tickets on sage trac would be more use. Of course I'd be happy to learn if sage under python 3 were more realistic than I thought it would be.

@kiwifb
Copy link
Collaborator

kiwifb commented Apr 17, 2014

Oh we would need to incorporate some extra patches, but you are right it is probably not quite ripe for it. And I tend to forget the unhappy problem of polybori.

@devurandom
Copy link

webassets works with Python 3, but is a new ebuild in portage: https://bugs.gentoo.org/show_bug.cgi?id=505682

@devurandom
Copy link

From the list above, the following have Python 3 support and are available in Gentoo or this overlay:

  • flask-autoindex
  • flask-babel
  • networkx
  • pexpect
  • rpy
  • twisted (unified ebuild; twisted-mail, twisted-web are no longer being updated separately)
  • webassets

No Python 3 support in Gentoo, but available:

  • flask-openid
  • gdmodule
  • pynac

Completely missing in Gentoo:

  • polybori

@kiwifb
Copy link
Collaborator

kiwifb commented Jul 22, 2017

Things may need updating.

  • sage probably won't need twisted with python 3. twisted is used by the old sage notebook which is deprecated in favor of jupyter.
  • webassets see above
  • pynac now has support for python 3 in this overlay. Hackish to support multiple python at the same time. Out of the box will build with either python 2 or python 3.
  • polybori is abandoned and has been replaced by brial and recently I separated the python part in a sage-brial ebuild which support multiple python.

@kiwifb
Copy link
Collaborator

kiwifb commented Jul 22, 2017

I should add the following: sage 8.0 will build with python 3.6 which is the current target upstream. It builds with python 3.6 but still crash on start up. This is still a work in progress but now sage-on-gentoo tracks the fact that sage builds with python 3.6.

@kiwifb
Copy link
Collaborator

kiwifb commented Oct 19, 2018

While it is not complete, sage now can start with python 3.6. There are still broken part but everything apart from the legacy notebook (which is tacitely deprecated now and will officially be in sage-8.5) and some of its dependencies are now building and installing with python 3.6.

The area still worked on are

  • building the documentation
  • running the doctest suite successfully.

At this stage I think this tracker has served its purpose.

@kiwifb kiwifb closed this as completed Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants