= Build and Installation = [[TracNav(Python_SIP/TOC)]] == Getting the Module == #getting The Python module source codes along with some samples are included in PJSIP distribution, in [source:pjproject/trunk/pjsip-apps/src/python pjproject/pjsip-apps/src/python] directory. [[BR]] == Building The Modules == #build === Linux === ==== Requirements ==== 1. '''Python''': this normally should have been installed on every Linux. 1. '''Python development package''', to build the C extension. ==== Building the Module ==== Using Python build script: 1. Build the PJSIP libraries first with the usual "{{{./configure && make dep && make}}}" commands. 1. Go to {{{pjsip-apps/src/python}}} directory. 1. Run '''{{{'sudo python ./setup.py install'}}}''' or just '''{{{sudo make'''}}} Sample session: {{{ #!sh $ cd your-pjsip-root-dir $ ./configure && make dep && make $ cd pjsip-apps/src/python $ sudo make }}} === Microsoft Windows === ==== Requirements ==== 1. '''Python SDK''' 1. '''Optional: debug package''' ==== Building the Module ==== Using Microsoft Visual Studio projects: 1. Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. 1. Select '''python_pjsua''' project as the active project. 1. Build the project 1. The {{{_pjsua.pyd}}} Python module will be placed in {{{pjsip-apps\lib}}} directory. 1. Copy {{{_pjsua.pyd}}} and {{{pjsua.py}}} from {{{pjsip-apps\src\python}}} directory to Python's site_packages directory (see Python manual for this), or alternatively add the directories where these files reside to your {{{PYTHONPATH}}} environment variable.