##// END OF EJS Templates
Fixed setupbase.py and MANIFEST.in to reflect all the changes to docs. Currently,...
Brian E Granger -
Show More
@@ -13,20 +13,15 b' graft IPython/config'
13 13 graft IPython/testing
14 14 graft IPython/tools
15 15
16 graft doc
17 exclude doc/\#*
18 exclude doc/*.1
19 exclude doc/ChangeLog.*
20 exclude doc/update_version.sh
16 graft docs
17 exclude docs/\#*
18 exclude docs/man/*.1
19 exclude docs/ChangeLog.*
21 20
22 21 # There seems to be no way of excluding whole subdirectories, other than
23 22 # manually excluding all their subdirs. distutils really is horrible...
24 exclude doc/attic/*
25 exclude doc/build/doctrees/*
26 exclude doc/build/html/_sources/*
27 exclude doc/build/html/_static/*
28 exclude doc/build/html/*
29 exclude doc/build/latex/*
23 exclude docs/attic/*
24 exclude docs/build/*
30 25
31 26 global-exclude *~
32 27 global-exclude *.flc
@@ -88,17 +88,21 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):"
88 88 "cd doc && gzip -9c pycolor.1 > pycolor.1.gz"),
89 89 ]
90 90
91 # Only build the docs is sphinx is present
91 92 try:
92 93 import sphinx
93 94 except ImportError:
94 95 pass
95 96 else:
97 # BEG: This is disabled as I am not sure what to depend on.
98 # I actually don't think we should be automatically building
99 # the docs for people.
96 100 # The do_sphinx scripts builds html and pdf, so just one
97 101 # target is enough to cover all manual generation
98 to_update.append(
99 ('doc/manual/ipython.pdf',
100 ['IPython/Release.py','doc/source/ipython.rst'],
101 "cd doc && python do_sphinx.py")
102 # to_update.append(
103 # ('doc/manual/ipython.pdf',
104 # ['IPython/Release.py','doc/source/ipython.rst'],
105 # "cd docs && python do_sphinx.py")
102 106 )
103 107 [ target_update(*t) for t in to_update ]
104 108
@@ -148,19 +148,15 b' def find_data_files():'
148 148 # We only need to exclude from this things NOT already excluded in the
149 149 # MANIFEST.in file.
150 150 exclude = ('.sh','.1.gz')
151 docfiles = filter(lambda f:file_doesnt_endwith(f,exclude),glob('doc/*'))
152 examfiles = filter(isfile, glob('doc/examples/*.py'))
153 manfiles = filter(isfile, glob('doc/manual/*'))
154 manstatic = filter(isfile, glob('doc/manual/_static/*'))
155 manpages = filter(isfile, glob('doc/*.1.gz'))
156 scriptfiles = filter(isfile, ['scripts/ipython','scripts/pycolor',
157 'scripts/irunner'])
151 # We need to figure out how we want to package all of our rst docs?
152 # docfiles = filter(lambda f:file_doesnt_endwith(f,exclude),glob('docs/*'))
153 examfiles = filter(isfile, glob('docs/examples/core/*.py'))
154 examfiles.append(filter(isfile, glob('docs/examples/kernel/*.py')))
155 manpages = filter(isfile, glob('docs/man/*.1.gz'))
158 156 igridhelpfiles = filter(isfile, glob('IPython/Extensions/igrid_help.*'))
159 157
160 data_files = [('data', docdirbase, docfiles),
158 data_files = [#('data', docdirbase, docfiles),
161 159 ('data', pjoin(docdirbase, 'examples'),examfiles),
162 ('data', pjoin(docdirbase, 'manual'),manfiles),
163 ('data', pjoin(docdirbase, 'manual/_static'),manstatic),
164 160 ('data', manpagebase, manpages),
165 161 ('data',pjoin(docdirbase, 'extensions'),igridhelpfiles),
166 162 ]
General Comments 0
You need to be logged in to leave comments. Login now