forked from roma-guru/transaq_connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (26 loc) · 1.15 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
# -*- coding: utf-8 -*-
from distutils.core import setup
import platform, os
from urllib2 import urlopen
from warnings import warn
assert(platform.os == 'Windows')
url = "http://www.finam.ru/files/"
dll_file = 'txmlconnector64.dll' if platform.machine() == 'AMD64' else 'txmlconnector.dll'
if not os.path.exists(dll_file):
warn("Transaq Connector DLL not found, downloading from Finam")
open(dll_file, 'wb').write(urlopen(url + dll_file).read())
setup(
name='transaq_connector',
version='1.0',
packages=['transaq'],
package_dir={'transaq': '.'},
package_data={'transaq': [dll_file]},
requires=['eulxml','lxml'],
url='https://github.com/roman-voropaev/transaq_connector',
license='BSD',
author='Roman Voropaev',
author_email='[email protected]',
description='Python Transaq XML Connector',
platforms=['Windows'],
long_description=u"TRANSAQ Connector представляет собой открытый программный интерфейс TRANSAQ (API), который позволяет подключать к торговому серверу TRANSAQ собственные приложения.",
)