2 from distutils.core import setup
9 # Take the version from "scripts/texml.py"
11 version_re = re.compile('^VERSION[^"]*"([^"]+)"; # GREPVERSION')
12 f = open(os.path.join('scripts', 'texml.py'))
14 match = version_re.search(line)
16 version = match.group(1)
20 raise "Can't find version"
24 version = get_version()
28 description="Convert TeXML to LaTeX or ConTeXt",
29 long_description = """TeXML is an XML syntax for TeX. The processor transforms the TeXML markup into the TeX markup, escaping special and out-of-encoding characters. The intended audience is developers who automatically generate [La]TeX or ConTeXt files.""",
30 author="Oleg Parashchenko, Paul Tremblay",
31 author_email="olpa@ http://uucode.com/",
33 url = 'http://getfo.org/texml/',
35 scripts=['scripts/texml.py', 'scripts/texml'],
37 ('share/man/man1', ['docs/texml.1']),
38 ('share/doc/texml-%s' % version,
39 glob.glob(os.path.join('docs', '*.html')) +
40 glob.glob(os.path.join('docs', '*.css')) +
41 glob.glob(os.path.join('docs', '*.png')))