-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
133 lines (121 loc) · 4.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/usr/bin/env python
# Copyright (C) 2002-2006 Salomon Automation
# Copyright (C) 2006 Joerg Faschingbauer
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
from distutils.core import setup
import os
import sys
def recdir(dir, suffix, result):
locals = []
if os.path.isdir(dir):
for entry in os.listdir(dir):
fullname = os.path.join(dir, entry)
if os.path.isfile(fullname) and fullname.endswith(suffix):
locals.append(fullname)
elif os.path.isdir(fullname):
if entry in ['CVS', '.svn']: continue
recdir(fullname, suffix, result)
pass
pass
pass
if locals:
result.append((dir, locals))
pass
return result
datafiles = []
#datafiles.extend(recdir('share/confix/autoconf-archive/m4src', '.m4', []))
#datafiles.extend(recdir('share/confix/autoconf-archive/htmldoc', '.html', []))
# scripts to put in the auxdir.
datafiles.extend([('share/confix/kde-hack',
['share/confix/kde-hack/conf.change.pl',
'share/confix/kde-hack/config.pl'])])
# this should be imported from the current directory ...
from libconfix.core.utils import const
setup(
name="Confix",
license="LGPL",
url="http://confix.sf.net/",
version=const.CONFIX_VERSION,
description="A Build Tool Based on Automake",
author="Joerg Faschingbauer",
author_email="[email protected]",
# argh. have to name every single subdirectory (at least until I
# find a better way.)
packages=[
'libconfix',
'libconfix.setups',
'libconfix.core',
'libconfix.core.hierarchy',
'libconfix.core.hierarchy.tests',
'libconfix.core.machinery',
'libconfix.core.machinery.tests',
'libconfix.core.utils',
'libconfix.core.utils.tests',
'libconfix.core.filesys',
'libconfix.core.filesys.tests',
'libconfix.core.filesys.tests.automake',
'libconfix.core.filesys.tests.inmem',
'libconfix.core.tests',
'libconfix.core.digraph',
'libconfix.core.digraph.tests',
'libconfix.plugins.make',
'libconfix.plugins.make.tests',
'libconfix.plugins',
'libconfix.plugins.automake',
'libconfix.plugins.automake.pkg_config',
'libconfix.plugins.automake.pkg_config.tests',
'libconfix.plugins.automake.script',
'libconfix.plugins.automake.script.tests',
'libconfix.plugins.automake.c',
'libconfix.plugins.automake.c.tests',
'libconfix.plugins.automake.c.tests.library_dependencies',
'libconfix.plugins.automake.plainfile',
'libconfix.plugins.automake.plainfile.tests',
'libconfix.plugins.automake.tests',
'libconfix.plugins.automake.tests.exename',
'libconfix.plugins.automake.tests.readonly_prefixes',
'libconfix.plugins.automake.tests.check',
'libconfix.plugins.automake.tests.relocated_headers',
'libconfix.plugins.script',
'libconfix.plugins.cmake',
'libconfix.plugins.cmake.tests',
'libconfix.plugins.c',
'libconfix.plugins.c.setups',
'libconfix.plugins.c.setups.tests',
'libconfix.plugins.c.setups.tests.explicit',
'libconfix.plugins.c.relocated_headers',
'libconfix.plugins.c.relocated_headers.tests',
'libconfix.plugins.c.tests',
'libconfix.plugins.c.tests.clusterer',
'libconfix.plugins.c.tests.regressions',
'libconfix.plugins.plainfile',
'libconfix.plugins.plainfile.tests',
'libconfix.plugins.idl',
'libconfix.plugins.idl.tests',
'libconfix.plugins.tests',
'libconfix.frontends',
'libconfix.frontends.tests',
'libconfix.frontends.confix2',
'libconfix.frontends.confix2.tests',
'libconfix.tests',
'libconfix.testutils',
],
data_files=datafiles,
scripts=['scripts/confix2.py',
'scripts/writedot.py',
'scripts/confix-output.py',
'scripts/confix-package-properties.py',
'scripts/dump-repofile.py',
],
)