diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-02-07 10:09:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-02-07 10:09:19 +0000 |
commit | 24c80b6eb9732bc4e96a264dfe9b1dacd19f2983 (patch) | |
tree | d9fcad6279cc42027a28841b41efc0a29b2f6adf /pjsip-apps/src/py_pjsua/setup.py | |
parent | 30d07e3ce129a165ed797f3ddd39371a4d16a1b6 (diff) |
Fixed hardcoded Linux build in Python module's setup.py
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@936 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/py_pjsua/setup.py')
-rw-r--r-- | pjsip-apps/src/py_pjsua/setup.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pjsip-apps/src/py_pjsua/setup.py b/pjsip-apps/src/py_pjsua/setup.py index 5112f581..c7c50338 100644 --- a/pjsip-apps/src/py_pjsua/setup.py +++ b/pjsip-apps/src/py_pjsua/setup.py @@ -1,6 +1,23 @@ from distutils.core import setup, Extension +import os + pjproject = "../../../" -target = "i686-pc-linux-gnu" + +# Determine target +#target = "i686-pc-linux-gnu" +f = os.popen("grep TARGET_NAME ../../../build.mak") +line = f.readline() +tokens = line.split() +found = 0 +for token in tokens: + if token == ":=" or token == "=": + found = 1 + elif found != 0: + target = token + break + +print "Building py_pjsua module for " + target + setup(name="py_pjsua", version="0.1", ext_modules = [ Extension("py_pjsua", |