Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7312515
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/setup.py b/setup.py
index e8a83eb2..7163a903 100755
--- a/setup.py
+++ b/setup.py
@@ -1,72 +1,66 @@
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from distutils.command.build_scripts import build_scripts
import re
import os
import glob
from setup_pjsip import PJSIP_build_ext
version = re.match("^.*?=\s\"(.*?)\"",open(os.path.join(os.path.dirname(__file__), "sipsimple", "__init__.py")).readline()).group(1)
title = "SIP SIMPLE client"
description = "Python SIP SIMPLE client library using PJSIP"
scripts = [os.path.join('scripts', x) for x in os.listdir('scripts') if re.match('^sip_.*\\.py$', x) or re.match('^xcap_.*\\.py$', x)]
data_files = glob.glob(os.path.join('share/sipclient', '*.wav'))
if os.name == 'posix':
class my_build_scripts(build_scripts):
"remove .py extension from the scripts"
def run (self):
res = build_scripts.run(self)
for script in self.scripts:
filename = os.path.basename(script)
if filename.endswith('.py'):
path = os.path.join(self.build_dir, filename)
print 'renaming %s -> %s' % (path, path[:-3])
os.rename(path, path[:-3])
else:
my_build_scripts = build_scripts
setup(name = "sipclient",
version = version,
- author = "Ruud Klaver",
- author_email = "ruud@ag-projects.com",
+ author = "AG Projects",
+ author_email = "support@ag-projects.com",
url = "http://sipsimpleclient.com",
description = title,
long_description = description,
- license = "Commercial",
- license = "GPL",
platforms = ["Platform Independent"],
classifiers = [
- #"Development Status :: 1 - Planning",
- #"Development Status :: 2 - Pre-Alpha",
- #"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
#"Development Status :: 5 - Production/Stable",
#"Development Status :: 6 - Mature",
- #"Development Status :: 7 - Inactive",
"Intended Audience :: Service Providers",
"License :: Commercial",
"License :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: C"
],
packages = ["sipsimple", "sipsimple.green", "sipsimple.clients", "sipsimple.applications", "sipsimple.configuration", "sipsimple.configuration.backend"],
package_data = {
'sipsimple.applications' : ['xml-schemas/*']
},
data_files = [('share/sipclient', data_files)],
scripts = scripts,
ext_modules = [
Extension(name = "sipsimple.core",
sources = ["sipsimple/core.pyx", "sipsimple/core.pxd"] + glob.glob(os.path.join("sipsimple", "core.*.pxi")))
],
cmdclass = { 'build_scripts' : my_build_scripts,
'build_ext': PJSIP_build_ext }
)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Feb 1, 6:42 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3488873
Default Alt Text
(3 KB)
Attached To
Mode
rPYNSIPSIMPLE python3-sipsimple
Attached
Detach File
Event Timeline
Log In to Comment