forked from ajenti/ajenti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·46 lines (37 loc) · 1.2 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
40
41
42
43
44
45
46
#!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import os
import ajenti
__requires = filter(None, open('requirements.txt').read().splitlines())
exclusion = [
'ajenti.plugins.elements',
'ajenti.plugins.ltfs',
'ajenti.plugins.ltfs*',
'ajenti.plugins.vh',
'ajenti.plugins.vh*',
'ajenti.plugins.custom*',
'ajenti.plugins.test*',
]
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:
data_files=[
('/etc/ajenti', ['packaging/files/config.json']),
('/etc/init.d', ['packaging/files/ajenti']),
('/var/lib/ajenti/plugins', ['packaging/files/.placeholder']),
]
else:
data_files = []
setup(
name='ajenti',
version=ajenti.__version__,
install_requires=__requires,
description='The server administration panel',
author='Eugeny Pankov',
author_email='e@ajenti.org',
url='http://ajenti.org/',
packages=find_packages(exclude=['reconfigure', 'reconfigure.*'] + exclusion),
package_data={'': ['content/*.*', 'content/*/*.*', 'content/*/*/*.*', 'layout/*.*', 'locales/*/*/*.mo']},
scripts=['ajenti-panel', 'ajenti-ssl-gen', 'ajenti-ipc'],
data_files=data_files,
)