Ask Your Question
2

SageMath as a regular python package

asked 2018-02-02 17:00:07 -0500

johnny python gravatar image

If one were to endeavor converting SageMath into a regular python package, which parts would be easy to convert and which would be difficult?
Why didn't sage start out as a regular python package in the first place?

I imagine such a conversion project ending up with a package that can be installed with pip or conda. After the package is installed any python script can import sage and can be run with the system's plain old python binary.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-02-04 23:44:17 -0500

slelievre gravatar image

updated 2018-02-14 19:51:36 -0500

conda

SageMath can be installed using conda. See the wiki page:

pip

Making the Sage library pip-installable is the object of:

There is progress on this tracking ticket, but a lot of work remains! Help welcome!

more

For more discussion of distribution and packaging of SageMath, see

and follow links on that page.

edit flag offensive delete link more

Comments

While it is cool that sage is packed as a conda package (I was not aware of that - thanks) it's still not a regular python package in the sense that you can't import it from a regular python script that is being run by a regular python binary.
I was wondering why that is and if converting sage to such a package would be difficult.

johnny python gravatar imagejohnny python ( 2018-02-08 13:55:56 -0500 )edit

I edited my answer, adding the "pip" section to point to the relevant ticket on Sage's Trac server.

slelievre gravatar imageslelievre ( 2018-02-14 04:45:36 -0500 )edit

I guess I was looking for the pip-installable package ticket. Thanks!

johnny python gravatar imagejohnny python ( 2018-02-17 08:00:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-02-02 17:00:07 -0500

Seen: 139 times

Last updated: Feb 14