-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
28 lines (25 loc) · 823 Bytes
/
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
try:
from setuptools import setup
from setuptools.command.build_py import build_py
except ImportError:
from distutils.core import setuptools
from distutils.command.build import build
class NPMInstall(build):
def run(self):
self.run_command("npm install casperjs phantomjs")
build.run(self)
config = {
'description': 'RanDep Ransomware Deployment Classifier',
'author': 'Gavin Hull',
'url': 'https://github.com/Hullgj/report-parser/blob/master/report_parser',
'download_url': 'https://github.com/Hullgj/report-parser.git',
'author_email': '[email protected]',
'version': '0.1',
'install_requires': ['nose', 'plotly'],
'packages': ['report_parser'],
'name': 'report_parser',
'cmdclass' : {
'npm_install': NPMInstall
},
}
setup(**config)