2 from distutils.core import setup
11 sys.stderr.write('Please install the python pyxml modules\n')
12 sys.stdout.write('You must have this module before you can install texml\n')
15 def get_dtd_location():
17 For now, this is not used
21 return '/home/paul/Documents/data/dtds/'
25 # Take the version from "scripts/texml.py"
27 version_re = re.compile('^VERSION[^"]*"([^"]+)"; # GREPVERSION')
28 f = open(os.path.join('scripts', 'texml.py'))
30 match = version_re.search(line)
32 version = match.group(1)
36 raise "Can't find version"
39 if 'build' in sys.argv:
42 version = get_version()
46 description="Convert TeXML to LaTeX or ConTeXt",
47 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.""",
48 author="Oleg Parashchenko, Paul Tremblay",
49 author_email="olpa@ http://uucode.com/",
51 url = 'http://getfo.org/texml/',
53 scripts=['scripts/texml.py', 'scripts/texml'],
55 ('share/man/man1', ['docs/texml.1']),
56 ('share/doc/texml-%s' % version,
57 glob.glob(os.path.join('docs', '*.html')) +
58 glob.glob(os.path.join('docs', '*.css')) +
59 glob.glob(os.path.join('docs', '*.png')))