Changes between Version 3 and Version 4 of Python_SIP/Build_Install
- Timestamp:
- Jul 24, 2008 9:19:29 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Python_SIP/Build_Install
v3 v4 10 10 11 11 == Building The Modules == #build 12 === Linux === 13 ==== Requirements ==== 12 14 15 1. '''Python''': this normally should have been installed on every Linux. 16 1. '''Python development package''', to build the C extension. 17 18 ==== Building the Module ==== 19 Using Python build script: 20 1. Build the PJSIP libraries first with the usual "{{{./configure && make dep && make}}}" commands. 21 1. Go to {{{pjsip-apps/src/python}}} directory. 22 1. Run '''{{{'sudo python ./setup.py install'}}}''' or just '''{{{sudo make'''}}} 23 24 Sample session: 25 26 {{{ 27 #!sh 28 29 $ cd your-pjsip-root-dir 30 $ ./configure && make dep && make 31 $ cd pjsip-apps/src/python 32 $ sudo make 33 }}} 34 35 === Microsoft Windows === 36 37 ==== Requirements ==== 38 39 1. '''Python SDK''' 40 1. '''Optional: debug package''' 41 42 ==== Building the Module ==== 13 43 Using Microsoft Visual Studio projects: 14 44 1. Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. … … 18 48 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. 19 49 20 Using Python build script: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.26