13 | | * Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. |
14 | | * Select '''python_pjsua''' project as the active project. |
15 | | * Build the project |
16 | | * The {{{_pjsua.pyd}}} Python module will be placed in {{{pjsip-apps\lib}}} directory. |
17 | | * 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. |
| 14 | 1. Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. |
| 15 | 1. Select '''python_pjsua''' project as the active project. |
| 16 | 1. Build the project |
| 17 | 1. The {{{_pjsua.pyd}}} Python module will be placed in {{{pjsip-apps\lib}}} directory. |
| 18 | 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. |
20 | | * Go to {{{pjsip-apps/src/python}}} directory. |
21 | | * Run '''{{{'python ./setup.py build'}}}''' |
22 | | * The Python module will be placed in {{{build}}} directory inside current directory. |
23 | | * Alternatively run '''{{{'python ./setup.py install'}}}''' to install both '''_pjsua''' and '''pjsua''' modules to Python's site_packages directory. |
| 21 | 1. Build the PJSIP libraries first with the usual "{{{./configure && make dep && make}}}" commands. |
| 22 | 1. Go to {{{pjsip-apps/src/python}}} directory. |
| 23 | 1. Run '''{{{'python ./setup.py build'}}}''' |
| 24 | 1. The Python module will be placed in {{{build}}} directory inside current directory. |
| 25 | 1. Alternatively run '''{{{'sudo python ./setup.py install'}}}''' to install both '''_pjsua''' and '''pjsua''' modules to Python's {{{site_packages}}} directory. |