12 | | The SWIG modules for Python and Java are built by invoking ``make`` and ``make install`` manually from ``pjsip-apps/src/swig`` directory. The ``make install`` will install the Python SWIG module to user site-packages directory. |
| 12 | The SWIG modules for Python and Java are built by invoking ``make`` and ``make install`` manually from ``pjsip-apps/src/swig`` directory. The ``make install`` will install the Python SWIG module to user's ``site-packages`` directory. |
| 13 | |
| 14 | Requirements |
| 15 | ------------ |
| 16 | |
| 17 | #. ``JDK``. |
| 18 | #. ``Python``, version 2.7 or above is required. |
| 19 | For **Linux/UNIX**, you will also need ``Python developent package`` (called ``python-devel`` (e.g. on Fedora) or ``python2.7-dev`` (e.g. on Ubuntu)). For **Windows**, you will need MinGW and ``Python SDK`` such as `ActivePython-2.7.5`_ from `ActiveState`_. |
| 20 | |
| 21 | .. _`ActivePython-2.7.5`: http://www.activestate.com/activepython/downloads |
| 22 | .. _`ActiveState`: http://www.activestate.com |
| 23 | |
| 24 | Testing The Installation |
| 25 | ------------------------ |
| 26 | To test the installation, simply run python and import ``pjsua2`` module:: |
| 27 | |
| 28 | $ python |
| 29 | > import pjsua2 |
| 30 | > ^Z |