removed obsolete issues (many of them fixed with AE)
[docutils.git] / sandbox / paultremblay / rst_to_docbook / setup.py
blob4a93d08807865f395c75f5f1d294536b7e825f13
1 #!/usr/bin/env python
2 import sys, os
3 from distutils.core import setup
5 from distutils.core import setup
8 # get the location for the data
9 var_file_exists = os.path.isfile('var_file')
10 if not var_file_exists:
11 sys.stderr.write('Please run python configure.py first\n')
12 sys.exit(1)
13 read_obj = open('var_file', 'r')
14 lines = read_obj.readlines()
15 data_location = lines[0]
16 data_xslt_location = os.path.join(data_location, '.rst_to_docbook', 'xslt_stylesheets')
17 data_config_location = os.path.join(data_location, '.rst_to_docbook')
18 read_obj.close()
22 setup(name="rst_to_docbook",
23 version=".1",
24 description="convert rst to docbook.",
25 author="Paul Tremblay",
26 author_email="phthenry@earthlink.net",
27 packages=['rst_to_docbook'],
28 data_files = [(data_xslt_location,
30 'data/xslt_stylesheets/reStruct_field_names_tokenize.xsl',
31 'data/xslt_stylesheets/reStruct_field_names.xsl',
32 'data/xslt_stylesheets/reStruct_to_docbook.xsl',
33 'data/xslt_stylesheets/reStructure_to_docbook.xsl'
36 (data_config_location, ['data/configure'])
39 scripts=["scripts/rst2docbook.py"],
42 ## os.remove('var_file')