ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 17 Feb 2018 08:00:37 -0600SageMath as a regular python packagehttp://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/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.
Fri, 02 Feb 2018 17:00:07 -0600http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/Answer by slelievre for <p>If one were to endeavor converting SageMath into a regular python package, which parts would be easy to convert and which would be difficult? <br>
Why didn't sage start out as a regular python package in the first place? </p>
<p>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.</p>
http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?answer=40977#post-id-40977## conda
SageMath **can be installed using conda**. See the wiki page:
- **[SageMath conda packaging](https://wiki.sagemath.org/Conda)**
## pip
Making the Sage library **pip-installable** is the object of:
- [Sage trac ticket **#21507: Make sagelib a pip-installable Python source package, listed on PyPI**](https://trac.sagemath.org/ticket/21507).
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
- **[SageMath distribution and packaging](https://wiki.sagemath.org/Distribution)**
and follow links on that page.Sun, 04 Feb 2018 23:44:17 -0600http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?answer=40977#post-id-40977Comment by johnny python for <h2>conda</h2>
<p>SageMath <strong>can be installed using conda</strong>. See the wiki page:</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Conda">SageMath conda packaging</a></strong></li>
</ul>
<h2>pip</h2>
<p>Making the Sage library <strong>pip-installable</strong> is the object of:</p>
<ul>
<li><a href="https://trac.sagemath.org/ticket/21507">Sage trac ticket <strong>#21507: Make sagelib a pip-installable Python source package, listed on PyPI</strong></a>.</li>
</ul>
<p>There is progress on this tracking ticket, but a lot of work remains! Help welcome!</p>
<h2>more</h2>
<p>For more discussion of <strong>distribution and packaging of SageMath</strong>, see</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Distribution">SageMath distribution and packaging</a></strong></li>
</ul>
<p>and follow links on that page.</p>
http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41163#post-id-41163I guess I was looking for the pip-installable package ticket. Thanks!Sat, 17 Feb 2018 08:00:37 -0600http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41163#post-id-41163Comment by slelievre for <h2>conda</h2>
<p>SageMath <strong>can be installed using conda</strong>. See the wiki page:</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Conda">SageMath conda packaging</a></strong></li>
</ul>
<h2>pip</h2>
<p>Making the Sage library <strong>pip-installable</strong> is the object of:</p>
<ul>
<li><a href="https://trac.sagemath.org/ticket/21507">Sage trac ticket <strong>#21507: Make sagelib a pip-installable Python source package, listed on PyPI</strong></a>.</li>
</ul>
<p>There is progress on this tracking ticket, but a lot of work remains! Help welcome!</p>
<h2>more</h2>
<p>For more discussion of <strong>distribution and packaging of SageMath</strong>, see</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Distribution">SageMath distribution and packaging</a></strong></li>
</ul>
<p>and follow links on that page.</p>
http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41119#post-id-41119I edited my answer, adding the "pip" section to point to the relevant ticket on Sage's Trac server.Wed, 14 Feb 2018 04:45:36 -0600http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41119#post-id-41119Comment by johnny python for <h2>conda</h2>
<p>SageMath <strong>can be installed using conda</strong>. See the wiki page:</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Conda">SageMath conda packaging</a></strong></li>
</ul>
<h2>pip</h2>
<p>Making the Sage library <strong>pip-installable</strong> is the object of:</p>
<ul>
<li><a href="https://trac.sagemath.org/ticket/21507">Sage trac ticket <strong>#21507: Make sagelib a pip-installable Python source package, listed on PyPI</strong></a>.</li>
</ul>
<p>There is progress on this tracking ticket, but a lot of work remains! Help welcome!</p>
<h2>more</h2>
<p>For more discussion of <strong>distribution and packaging of SageMath</strong>, see</p>
<ul>
<li><strong><a href="https://wiki.sagemath.org/Distribution">SageMath distribution and packaging</a></strong></li>
</ul>
<p>and follow links on that page.</p>
http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41036#post-id-41036While 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.Thu, 08 Feb 2018 13:55:56 -0600http://ask.sagemath.org/question/40947/sagemath-as-a-regular-python-package/?comment=41036#post-id-41036