Changes between Initial Version and Version 1 of Python_SIP/Build_Install


Ignore:
Timestamp:
Jul 22, 2008 9:44:08 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Build_Install

    v1 v1  
     1= PJSUA Python Module = 
     2 
     3[[TracNav(Python_SIP/TOC)]] 
     4 
     5== Getting the Module == #getting 
     6 
     7The 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. 
     8 
     9 
     10== Building The Modules == #build 
     11 
     12Using Microsoft Visual Studio projects: 
     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. 
     18 
     19Using Python build script: 
     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. 
     24