-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
50 lines (43 loc) · 1.24 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
versions = dict(numpy='1.14.5',
scipy='1.2.1',
pandas='0.25.3',
ftfy='5.5.1',
pyreadstat='1.1.2')
precisions = dict(numpy='==',
scipy='==',
pandas='==',
ftfy='==',
pyreadstat='==')
libs = ['numpy',
'scipy',
'pandas',
'ftfy',
'xmltodict',
'lxml',
'xlsxwriter',
# 'pillow',
'prettytable',
'decorator',
'watchdog',
'requests',
'python-pptx',
'pyreadstat']
def version_libs(libs, precisions, versions):
return [lib + precisions[lib] + versions[lib]
if lib in versions.keys() else lib
for lib in libs]
if sys.platform == 'win32':
INSTALL_REQUIRES = version_libs(libs[2:], precisions, versions)
else:
INSTALL_REQUIRES = version_libs(libs, precisions, versions)
setup(name='quantipy3',
version='0.2.15',
author='Geir Freysson',
author_email='geir@datasmoothie.com',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=INSTALL_REQUIRES,
)