Edgewall Software

Ticket #6827: trac-setup-data-files.dif

File trac-setup-data-files.dif, 1.4 KB (added by Dave Gynn <dgynn@…>, 9 years ago)

patch to provide data_files for install_data

Line 
1Index: setup.py
2===================================================================
3--- setup.py (revision 6737)
4+++ setup.py (working copy)
5@@ -13,6 +13,7 @@
6 # history and logs, available at http://trac.edgewall.org/log/.
7
8 from setuptools import setup, find_packages
9+import glob
10
11 setup(
12 name = 'Trac',
13@@ -48,6 +49,27 @@
14 'trac.wiki': ['default-pages/*'],
15 'trac.ticket': ['workflows/*.ini'],
16 },
17+
18+ data_files = [ ('share/trac/cgi-bin',
19+ ['cgi-bin/trac.cgi',
20+ 'cgi-bin/trac.fcgi', ]),
21+ ('share/trac/htdocs',
22+ ['trac/htdocs/README', ]
23+ + glob.glob('trac/htdocs/*.*')
24+ + glob.glob('trac/htdocs/css/*.*')
25+ + glob.glob('trac/htdocs/js/*.*')
26+ + glob.glob('trac/htdocs/guide/*.*')
27+ ),
28+ ('share/trac/templates',
29+ ['trac/templates/README',
30+ 'trac/templates/layout.html', ]),
31+ ('share/trac/wiki-macros',
32+ ['wiki-macros/README', ]),
33+ ('share/trac/wiki-default',
34+ glob.glob('trac/wiki/default-pages/*')),
35+ ('share/trac/conf', []),
36+ ('share/trac/plugins', []),
37+ ],
38
39 test_suite = 'trac.test.suite',
40 zip_safe = False,