First time here? Check out the FAQ!

Ask Your Question
2

SageMath as a regular python package

asked 7 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

slelievre gravatar image

updated 7 years ago

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.

Preview: (hide)
link

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 ( 7 years ago )

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

slelievre gravatar imageslelievre ( 7 years ago )

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

johnny python gravatar imagejohnny python ( 7 years ago )

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: 7 years ago

Seen: 2,528 times

Last updated: Feb 15 '18