-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (52 loc) · 1.83 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
52
53
54
55
56
#!/usr/bin/env python3
import re, os
from setuptools import find_packages, setup
_version = open('./VERSION').read()
_major = re.findall(r'VERSION_MAJOR\W+=\W+(\d+)', _version)[0]
_minor = re.findall(r'VERSION_MINOR\W+=\W+(\d+)', _version)[0]
try:
_patch = re.findall(r'VERSION_PATCH\W+=\W+(\d+)', _version)[0]
except:
_patch = '0'
_version = '.'.join((_major, _minor, _patch))
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
pass
def get_tag(self):
(impl, abi, plat_name) = _bdist_wheel.get_tag(self)
impl, abi = 'py3', 'none'
return (impl, abi, plat_name)
pass
if __name__ == '__main__':
setup(
name = 'pyvdm',
version = _version,
description = 'Pyvdm is a simple python implementation for VDM.',
url = 'https://github.com/VDM-Maintainer-Group/virtual-domain-manager',
author = 'iamhyc',
author_email = '[email protected]',
#
install_requires = ['PyQt5', 'posix-ipc', 'psutil', 'requests',
'dbus-python', 'halo', 'termcolor', 'pyyaml',
'keyring', 'cryptography', 'pynput'],
package_dir = {'': 'build'},
packages = find_packages(where='build'),
package_data = {
"" : ["daemon/*.so"],
"pyvdm": ["assets/*", "assets/*/*", "gui/qml/*.qml"],
},
include_package_data=True,
entry_points = {
'console_scripts': [
'pyvdm = pyvdm.core.manager:main',
'pyvdm-tray = pyvdm.gui.tray:main',
'sbs = pyvdm.build:main'
]
},
cmdclass={
'bdist_wheel': bdist_wheel, # type: ignore
}
)