forked from anastasydrew/PyMT5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (30 loc) · 800 Bytes
/
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
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
have_cython = False
if have_cython:
ext_modules = [Extension("pymt5.aes256", ["pymt5/aes256.pyx"]), ]
cmdclass = {'build_ext': build_ext}
else:
ext_modules = [Extension("pymt5.aes256", ["pymt5/aes256.c"]), ]
cmdclass = {}
setup(
name='pymt5',
version='0.2.1',
packages=['pymt5', 'pymt5.structures'],
ext_modules=ext_modules,
cmdclass=cmdclass,
author='gothness',
author_email='[email protected]',
description='Client for MetaTrader 5',
install_requires=[
'Cython==0.28.5',
],
)