.. _spkg_sympy:

sympy: Python library for symbolic mathematics
==============================================

Description
-----------

SymPy is a Python library for symbolic mathematics. It aims to become a
full-featured computer algebra system (CAS) while keeping the code as
simple as possible in order to be comprehensible and easily extensible.
SymPy is written entirely in Python and does not require any external
libraries, except optionally for plotting support.

Website
-------

https://sympy.org/

License
-------

New BSD: http://www.opensource.org/licenses/bsd-license.php


Upstream Contact
----------------

sympy mailinglist: http://groups.google.com/group/sympy

Dependencies
------------

-  Python 2.5 or later


Special Update/Build Instructions
---------------------------------

-  A simple script can be used to ease the updating of the SPKG. See the
   README.

Type
----

standard


Dependencies
------------

- $(PYTHON)
- :ref:`spkg_mpmath`
- $(PYTHON_TOOLCHAIN)

Version Information
-------------------

package-version.txt::

    1.10.1

install-requires.txt::

    sympy >=1.6, <2.0


Equivalent System Packages
--------------------------

conda:

.. CODE-BLOCK:: bash

    $ conda install  sympy


macports:
install the following packages: py-sympy

void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  python3-sympy


See https://repology.org/project/python:sympy/versions


However, these system packages will not be used for building Sage
because using Python site-packages is not supported by the Sage distribution;
see :trac:`29023`

