-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (33 loc) · 1.13 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
from setuptools import setup
import os
import platform
import subprocess
from setuptools.command.install import install
try:
from post_setup import main as post_install
except ImportError:
post_install = lambda: None
class MyInstall(install):
def run(self):
install.run(self)
post_install()
if platform.system() == 'Windows':
vboxDest = os.environ.get("VBOX_INSTALL_PATH", None)
if vboxDest is None:
raise Exception("No VBOX_INSTALL_PATH defined, exiting")
old_path = os.getcwd()
os.chdir(os.path.join(vboxDest, 'sdk', 'install'))
subprocess.call(['py', '-2', 'vboxapisetup.py', 'install'])
os.chdir(old_path)
setup(name='mits',
version='2.0.0-rc.1',
description='Testing integration system for Medusa security system',
url='https://github.com/medusa-team/medusa-testing-environment',
author='Roderik Ploszek',
author_email='[email protected]',
license='MIT',
packages=['mits'],
install_requires=['paramiko==1.16.0', 'scp==0.10.2', 'pyyaml'],
zip_safe=True,
include_package_data=True,
cmdclass={'install': MyInstall})