File tree 2 files changed +27
-18
lines changed
2 files changed +27
-18
lines changed Original file line number Diff line number Diff line change 1
- pyinstaller
1
+ pyinstaller==3.6
2
2
pyinstaller-hooks
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
import re
3
+ import platform
3
4
4
5
try :
5
6
import distro
6
7
distro , version , _ = distro .linux_distribution (full_distribution_name = False )
7
- except ModuleNotFoundError :
8
+ except ImportError :
8
9
distro = version = ''
9
10
11
+ platform_name = platform .system ()
12
+
10
13
# Default to CentOS7
11
14
data_files = [('/usr/lib/systemd/system' , ['pkg/source/hubble.service' ]),
12
15
('/etc/hubble' , ['conf/hubble' ]), ]
16
+ dependencies = [
17
+ 'pycryptodome' ,
18
+ 'cryptography' ,
19
+ 'pyopenssl>=16.2.0' ,
20
+ 'requests>=2.13.0' ,
21
+ 'daemon' ,
22
+ 'pygit2<0.27.0' ,
23
+ 'salt-ssh==2019.2.3' ,
24
+ 'gitpython' ,
25
+ 'pyinotify' ,
26
+ 'cffi' ,
27
+ 'croniter' ,
28
+ 'vulners' ,
29
+ 'ntplib' ,
30
+ 'patch==1.*' ,
31
+ ]
13
32
14
33
if distro == 'redhat' or distro == 'centos' :
15
34
if version .startswith ('6' ):
22
41
data_files = [('/etc/init.d' , ['pkg/hubble' ]),
23
42
('/etc/hubble' , ['conf/hubble' ]), ]
24
43
44
+ if platform_name == 'Windows' :
45
+ dependencies .remove ('pyinotify' )
46
+ dependencies .append ('argparse' )
47
+ dependencies .append ('pprint' )
48
+
25
49
with open ('hubblestack/__init__.py' , 'r' ) as fd :
26
50
version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
27
51
fd .read (), re .MULTILINE ).group (1 )
45
69
tests_require = [
46
70
'mock' ,
47
71
],
48
- install_requires = [
49
- 'pycryptodome' ,
50
- 'cryptography' ,
51
- 'pyopenssl>=16.2.0' ,
52
- 'requests>=2.13.0' ,
53
- 'daemon' ,
54
- 'pygit2<0.27.0' ,
55
- 'salt-ssh==2019.2.3' ,
56
- 'gitpython' ,
57
- 'pyinotify' ,
58
- 'cffi' ,
59
- 'croniter' ,
60
- 'vulners' ,
61
- 'ntplib' ,
62
- 'patch==1.*' ,
63
- ],
72
+ install_requires = dependencies ,
64
73
data_files = data_files ,
65
74
options = {
66
75
# 'build_scripts': {
You can’t perform that action at this time.
0 commit comments