-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·44 lines (33 loc) · 875 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
#!/usr/bin/env python
import io
import os
from setuptools import setup
import dice
def get_config_dir():
settings_system_wide = os.path.join('/etc')
settings_local_install = os.path.join('etc')
if 'VIRTUAL_ENV' in os.environ:
return settings_local_install
else:
return settings_system_wide
def get_data_files():
data_files = [(get_config_dir(), ['etc/dice.conf'])]
return data_files
def get_packages():
packages = [
'dice',
'dice/utils',
]
return packages
setup(
name='dice',
version=dice.__version__,
url='http://github.com/Hao-Liu/dice/',
license='GNU General Public License v2',
author='Hao Liu',
author_email='[email protected]',
description='A random testing framework',
scripts=['scripts/dice'],
packages=get_packages(),
data_files=get_data_files(),
)