-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
49 lines (41 loc) · 1020 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
42
43
44
45
46
47
48
49
from distutils.core import setup
from glob import glob
import os
import sys
import curtin
def is_f(p):
return os.path.isfile(p)
def in_virtualenv():
try:
if sys.real_prefix == sys.prefix:
return False
else:
return True
except AttributeError:
return False
USR = "usr" if in_virtualenv() else "/usr"
setup(
name="curtin",
description='The curtin installer',
version=curtin.__version__,
author='Scott Moser',
author_email='scott.moser@canonical.com',
license="AGPL",
url='http://launchpad.net/curtin/',
packages=[
'curtin',
'curtin.block',
'curtin.deps',
'curtin.commands',
'curtin.net',
'curtin.reporter',
'curtin.reporter.legacy',
],
scripts=glob('bin/*'),
data_files=[
(USR + '/share/doc/curtin',
[f for f in glob('doc/*') if is_f(f)]),
(USR + '/lib/curtin/helpers',
[f for f in glob('helpers/*') if is_f(f)])
]
)