Changeset 936 for pjproject


Ignore:
Timestamp:
Feb 7, 2007 10:09:19 AM (18 years ago)
Author:
bennylp
Message:

Fixed hardcoded Linux build in Python module's setup.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/py_pjsua/setup.py

    r935 r936  
    11from distutils.core import setup, Extension 
     2import os 
     3 
    24pjproject = "../../../" 
    3 target = "i686-pc-linux-gnu" 
     5 
     6# Determine target 
     7#target = "i686-pc-linux-gnu" 
     8f = os.popen("grep TARGET_NAME ../../../build.mak") 
     9line = f.readline() 
     10tokens = line.split() 
     11found = 0 
     12for token in tokens: 
     13        if token == ":=" or token == "=": 
     14                found = 1 
     15        elif found != 0: 
     16                target = token 
     17                break 
     18 
     19print "Building py_pjsua module for " + target 
     20 
    421setup(name="py_pjsua", version="0.1", 
    522        ext_modules = [ 
Note: See TracChangeset for help on using the changeset viewer.