1 --- setup.py 2008-11-13 19:41:28.000000000 +0100
2 +++ setup.pypatch 2008-12-04 10:42:25.000000000 +0100
6 # if python docutils are installed, generate HTML documentation.
7 -if os.path.exists('/usr/bin/rst-buildhtml'):
8 - os.system('/usr/bin/rst-buildhtml')
9 +#if os.path.exists('/usr/bin/rst-buildhtml'):
10 +# os.system('/usr/bin/rst-buildhtml')
12 -readme = open('index.rst').read() # read in documentation file
13 -readme = string.replace(readme,'**','') # remove restructuredtext markup
14 +#readme = open('index.rst').read() # read in documentation file
15 +#readme = string.replace(readme,'**','') # remove restructuredtext markup
17 # split documentation by text titles and put each title and its text body
18 # into a dictionary: title is the key, text body is the value.
19 -readme_split = re.split('\n(.*?)\n====+?\n\n',readme)
22 -while i < len(readme_split):
23 - readme_db[readme_split[i]] = readme_split[i + 1]
25 +#readme_split = re.split('\n(.*?)\n====+?\n\n',readme)
28 +#while i < len(readme_split):
29 +# readme_db[readme_split[i]] = readme_split[i + 1]
32 -main_title = readme_split[1] + '\n' # main title goes alone
33 +#main_title = readme_split[1] + '\n' # main title goes alone
35 # if not present, generate portio.c source file.
36 # Replace template tag "DOCUMENTATION" into C source with documentation
37 # text read from README. Add backslash iand new line at end of each line
38 # (C multiline string syntax).
39 if not os.path.exists('portio.c'):
40 - doc = main_title + '\n' + readme_db["Module reference"]
41 - doc = string.replace(doc,'\n','\\n\\\n')
42 +# doc = main_title + '\n' + readme_db["Module reference"]
43 +# doc = string.replace(doc,'\n','\\n\\\n')
44 source = open('portio.c.in').read()
45 source = source % {'DOCUMENTATION':doc}
46 open('portio.c','w').write(source)
48 url = 'http://portio.inrim.it',
49 license = 'http://www.gnu.org/licenses/gpl.txt',
50 platforms = ['Linux'],
51 - description = main_title,
52 +# description = main_title,
53 classifiers = filter(None, classifiers.split("\n")),
54 - long_description = readme_db["Module reference"],
55 +# long_description = readme_db["Module reference"],
56 ext_modules = [module])