forked from Komnomnomnom/swigibpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (45 loc) · 1.86 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""Setup file for packaging swigibpy"""
import os
from distutils.core import setup, Extension
from distutils.util import get_platform
###
IB_DIR = 'IB_965'
VERSION = '0.2.2'
libraries = []
if(get_platform().startswith('win')):
libraries.append('ws2_32')
ib_module = Extension('_swigibpy',
sources=[IB_DIR +
'/PosixSocketClient/EClientSocketBase.cpp',
IB_DIR +
'/PosixSocketClient/EPosixClientSocket.cpp',
IB_DIR + '/swig_wrap.cpp'],
include_dirs=[IB_DIR,
IB_DIR + '/PosixSocketClient',
IB_DIR + '/Shared'],
define_macros=[ ('IB_USE_STD_STRING', '1') ],
libraries=libraries
)
setup (version=VERSION,
name='swigibpy',
author="Kieran O'Mahony",
author_email="[email protected]",
url = "http://komnomnomnom.github.com/swigibpy/",
license = 'New BSD License',
description="""Third party Python API for Interactive Brokers""",
long_description=file(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
keywords = ["interactive brokers", "tws"],
ext_modules=[ib_module],
py_modules=["swigibpy"],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business :: Financial",
],
)