forked from LinuxTeam-teilar/cronos.teilar.gr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (51 loc) · 1.37 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
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptest import test
import os, sys
if sys.argv[1] == 'install':
'''
Rename local_settings.py in order to
be excluded from setup.py install command
'''
ORIG_NAME = 'cronos/local_settings.py'
TEMP_NAME = 'cronos/local_settings.py1'
try:
os.rename(ORIG_NAME, TEMP_NAME)
except:
pass
setup(
name='cronos',
version='0.3-dev',
description='Django application that collects announcements and other \
personal data for students of TEI of Larissa',
author='cronos development team',
author_email='[email protected]',
url='http://cronos.teilar.gr',
license='AGPLv3',
packages=find_packages(),
include_package_data=True,
data_files=[
('', ['LICENSE', 'manage.py']),
('bin', [
'bin/update_cronos.sh',
'bin/logs_create_fix_perms.sh',
'bin/get_full_production_db.sh'
]),
('configs', [
'configs/apache.conf',
'configs/cron.d_cronos',
'configs/logrotate.d_cronos',
'configs/logrotate.d_cronos-dev',
'configs/syslog-ng.conf'
]),
],
cmdclass={'test': test},
)
if sys.argv[1] == 'install':
'''
Restore local_settings.py
'''
try:
os.rename(TEMP_NAME, ORIG_NAME)
except:
pass