-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·42 lines (36 loc) · 1.49 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
#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if os.system('./cgx make -c codega/alp/codega.xml'):
exit(1)
setup(name = "codega",
description = "Codega code generator framework",
long_description = """File generator toolkit written in Python
Codeca can be used to generate files from XML inputs using rules
described in Python. The Python handler classes handle each XML node
and generate the corresponding file segment. These segments are then
combined to form the output.
Mainly intended to parse XML files describing data structures and
then generating the serialize/deserialize code in various languages,
but mostly C/C++. However it can be easily used for other purposes
""",
license = "BSD",
version = open("VERSION").read().strip(),
author = "Viktor Hercinger",
author_email = "[email protected]",
maintainer = "Viktor Hercinger",
maintainer_email = "[email protected]",
packages = [ 'codega',
'codega.config',
'codega.commands',
'codega.generator',
'codega.alp',
'codega.alp.generator' ],
package_data = { 'codega' : [ 'config.xsd' ],
'codega.alp' : [ 'alplang.alp' ],
'codega.alp.generator' : [ 'scriptgen.mako' ] },
scripts = [ 'cgx' ],
requires = [ 'lxml' ])