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