-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
executable file
·42 lines (34 loc) · 961 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
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
import os
from distutils.core import setup, Command
from distutils.dir_util import remove_tree
SCRIPT_NAME = "yaffshiv"
class CleanCommand(Command):
description = "Clean Python build directories"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
try:
remove_tree("build")
except KeyboardInterrupt as e:
raise e
except Exception:
pass
try:
remove_tree("dist")
except KeyboardInterrupt as e:
raise e
except Exception:
pass
setup(name = SCRIPT_NAME,
version = "0.1",
description = "YAFFS extraction tool",
author = "Craig Heffner",
url = "https://github.com/devttys0/%s" % SCRIPT_NAME,
requires = [],
scripts = [os.path.join("src", SCRIPT_NAME)],
cmdclass = {'clean' : CleanCommand}
)